Skip to content

Instantly share code, notes, and snippets.

@ippsketch
Created May 25, 2021 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ippsketch/412f9b28658a02fff3d4d127016ee341 to your computer and use it in GitHub Desktop.
Save ippsketch/412f9b28658a02fff3d4d127016ee341 to your computer and use it in GitHub Desktop.
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