From 2b3cf8badab9ecf4704cd1de124f9f8621d00034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 11 Apr 2026 18:45:10 +0200 Subject: [PATCH] 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 --- scripts/compress-videos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compress-videos.sh b/scripts/compress-videos.sh index bf6f604..5f02ae5 100644 --- a/scripts/compress-videos.sh +++ b/scripts/compress-videos.sh @@ -29,7 +29,7 @@ find "$CONTENT_DIR" -name "*.mp4" | while IFS= read -r src; do -c:a aac \ -b:a 64k \ -loglevel error \ - -y "$tmp" + -y "$tmp" < /dev/null 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")