Created
May 25, 2021 19:10
-
-
Save ippsketch/412f9b28658a02fff3d4d127016ee341 to your computer and use it in GitHub Desktop.
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 characters
for i in *.gif; | |
do name=`echo "$i" | cut -d'.' -f1` | |
tmp = ${name:0:5} | |
echo "$tmp" | |
ffmpeg -i "$i" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "${name}.mp4" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment