Last active
March 11, 2019 10:38
-
-
Save tdhooper/839cccb8c17a99a211d0f7ea916b4d2c to your computer and use it in GitHub Desktop.
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/sh | |
frames=/tmp/makemp4-frames | |
rm -r $frames | |
mkdir $frames | |
for i in {1..3}; do | |
for file in *.png; do | |
cp $file "$frames/$i-$file" | |
done | |
done | |
ffmpeg -pattern_type glob -i "$frames/*.png" -f mp4 -y -vcodec libxvid -qmin 3 -qmax 5 -g 300 -flags +mv4 output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment