Skip to content

Instantly share code, notes, and snippets.

@teeparham
Created February 26, 2018 23:35
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 teeparham/f6854fc698413c923d7581e6d31b830c to your computer and use it in GitHub Desktop.
Save teeparham/f6854fc698413c923d7581e6d31b830c to your computer and use it in GitHub Desktop.
ffmpeg video conversion for browsers
# -movflags +faststart
# combine series of pngs into a mp4 movie
# frame-0001.png
# frame-0002.png
ffmpeg -framerate 0.3 -i frame-%04d.png -vf scale=752:424 -vcodec h264 -pix_fmt yuv420p -an -crf 15 -r 24 -y out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment