Skip to content

Instantly share code, notes, and snippets.

@tdhooper
Last active March 11, 2019 10:38
Show Gist options
  • Save tdhooper/839cccb8c17a99a211d0f7ea916b4d2c to your computer and use it in GitHub Desktop.
Save tdhooper/839cccb8c17a99a211d0f7ea916b4d2c to your computer and use it in GitHub Desktop.
#!/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