Как включить функцию «strictlimit» для устройства с файловой системой (Debian 8)

Благодаря Гордону Дэвиссону мне удалось решить проблему. Вот полный рабочий скрипт, если кто-то столкнется с этой проблемой в будущем.

#!/bin/bash -e
find /videos/. -type f -exec sh -c 'h=$(date -d @$(stat -c %Y "$1") +%-H); [ "$h" -ge 00 ] && [ "$h" -lt 12 ]' sh {} \; -print | while IFS= read -r i;
do 
    ffmpeg -y -i "$i" -vcodec libx264 -crf 27 -preset veryfast -movflags +faststart -c:a copy -threads 14 /output/"$(basename "$i".ts)".mp4 </dev/null
    rm -f -- "$i"
done
1
19.11.2017, 15:30
1 ответ

В sysfs такой настройки нет. Патч не был принят в основную ветку. Вам понадобится ядро ​​с установленным патчем.

https://lore.kernel.org/lkml/20131122154505.3e686fcfc584534d555399e5@linux-foundation.org/

Well the patch is certainly simple and straightforward enough and seems like it will be useful. The main (and large!) downside is that it adds to the user interface so we'll have to maintain this feature and its functionality for ever.

Given this, my concern is that while potentially useful, the feature might not be sufficiently useful to justify its inclusion. So we'll end up addressing these issues by other means, then we're left maintaining this obsolete legacy feature.

So I'm thinking that unless someone can show that this is good and complete and sufficient for a "large enough" set of issues, I'll take a pass on the patch.

0
28.01.2020, 00:45

Теги

Похожие вопросы