From: Steven Baltakatei Sandoval Date: Thu, 11 Apr 2024 19:02:55 +0000 (+0000) Subject: feat(user/mp4_make480.sh):Do .MP4 as well as .mp4 files X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/35ccc7696545160b3d4249e0e3c5a11a37742d28?ds=sidebyside feat(user/mp4_make480.sh):Do .MP4 as well as .mp4 files --- diff --git a/user/mp4_make480.sh b/user/mp4_make480.sh index abe5120..e460449 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.0 +# Version: 0.1.1 # 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; @@ -24,7 +24,7 @@ check_input() { declare -p dir_in dir_out; # debug }; convert_video() { - find "$dir_in" -mindepth 1 -maxdepth 1 -type f -name "*.mp4" | \ + find "$dir_in" -mindepth 1 -maxdepth 1 -type f -iname "*.mp4" | \ parallel job_ffmpeg "{}" "$path_out"; }; job_ffmpeg() {