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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user