Skip to content

Instantly share code, notes, and snippets.

@lightscalar
Last active March 13, 2018 14:39
Show Gist options
  • Save lightscalar/412dc2c6a1ca40b4f194142640311fbf to your computer and use it in GitHub Desktop.
Save lightscalar/412dc2c6a1ca40b4f194142640311fbf to your computer and use it in GitHub Desktop.
Grabbing frames and creating movies...

To grab frames from a video:

ffmpeg -y -i "xdfo.wmv" -qscale 0 -r 30 "./xdfo/xdfo.%05d.jpg" 

To do the reverse, to generate a movie from a sequence of frames:

ffmpeg -f image2 -r 30 -i img.%04d.png -vb 20M -vcodec mpeg4 -y movie_filtered.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment