Created
August 2, 2022 08:27
-
-
Save mattak/0709fb2479f96da6c5a97ac9ccb61fc8 to your computer and use it in GitHub Desktop.
Revisions
-
mattak created this gist
Aug 2, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/sh set -xe if [ $# -eq 0 ]; then echo "usage: <input_mp4>" exit 1 fi f1=$1 f2=${f1%.*}_small.mp4 ffmpeg -y -i $f1 -vf 'scale=320:trunc(ow/a/2)*2' $f2