Created
January 9, 2018 15:59
-
-
Save lux/b624d5cfeb2681a6ef5b8c5bdf5607b6 to your computer and use it in GitHub Desktop.
Quick script ot convert a folder of gifs to mp4 with web-optimal settings (note: requires ffmpeg)
This file contains 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
#!/bin/bash | |
for i in *.gif; do | |
ffmpeg -i "$i" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "${i%.*}.mp4"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment