fix: redirect ffmpeg stdin from /dev/null in compress-videos.sh

FFmpeg inside a find|while pipe was consuming the remaining filenames
from stdin as interactive commands, causing parse errors. Adding
< /dev/null isolates ffmpeg from the pipe so find can feed all paths
to the while loop uninterrupted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 18:45:10 +02:00
parent 1f24ee8276
commit 2b3cf8bada
+1 -1
View File
@@ -29,7 +29,7 @@ find "$CONTENT_DIR" -name "*.mp4" | while IFS= read -r src; do
-c:a aac \ -c:a aac \
-b:a 64k \ -b:a 64k \
-loglevel error \ -loglevel error \
-y "$tmp" -y "$tmp" < /dev/null
src_size=$(stat -c%s "$src" 2>/dev/null || stat -f%z "$src") src_size=$(stat -c%s "$src" 2>/dev/null || stat -f%z "$src")
tmp_size=$(stat -c%s "$tmp" 2>/dev/null || stat -f%z "$tmp") tmp_size=$(stat -c%s "$tmp" 2>/dev/null || stat -f%z "$tmp")