From ba98d97928b64a229d37bf405969b315adecc9da Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Thu, 11 Apr 2024 20:11:26 +0000 Subject: [PATCH] feat(user/mp4_make480.sh):Use default audio instead of copy --- user/mp4_make480.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/mp4_make480.sh b/user/mp4_make480.sh index e460449..8799a2e 100644 --- a/user/mp4_make480.sh +++ b/user/mp4_make480.sh @@ -5,7 +5,7 @@ # arg2 dir output dir (optional) # Output: dir ./out/ # file ./out/[files]_480.mp4 -# Version: 0.1.1 +# Version: 0.1.2 # Depends: GNU parallel 20161222, ffmpeg 4.3.6-0 # Ref/Attrb: [1]: FFmpeg wiki: https://trac.ffmpeg.org/wiki/Scaling declare -g dir_in dir_out; @@ -34,7 +34,7 @@ job_ffmpeg() { path_out=./"$dir_out"/"${file_in%.mp4}"_480.mp4; opt_scale="scale=-2:480"; # See [1] declare -p path_in path_out file_in dir_out path_out opt_scale; - ffmpeg -nostdin -i "$path_in" -vf "$opt_scale" -c:a copy "$path_out" 1>/dev/random 2>&1; + ffmpeg -nostdin -i "$path_in" -vf "$opt_scale" "$path_out"; }; export -f job_ffmpeg; -- 2.30.2