Created
October 15, 2017 15:51
-
-
Save evandrododo/7e9b65490f75bc789365d03387e24df6 to your computer and use it in GitHub Desktop.
Converte os gifs da pasta em mp4
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 | |
shopt -s nullglob | |
for f in *.gif | |
do | |
ffmpeg -i $f -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" $f.mp4 | |
echo "Arquivo convertido para mp4 - $f" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment