Skip to content

Instantly share code, notes, and snippets.

@martynjarvis
Last active August 29, 2015 14:14
Show Gist options
  • Save martynjarvis/0a6d08549d942ecad573 to your computer and use it in GitHub Desktop.
Save martynjarvis/0a6d08549d942ecad573 to your computer and use it in GitHub Desktop.
Create screenshots using ffmpeg/avconv

Create screenshots using ffmpeg/avconv

Create screenshots selecting only I frames that differ:

ffmpeg -i <input_filename>.ts -f image2 -vf "select='eq(pict_type,I)'" -vsync 2 out%02d.png

Create single screenshot 1 second in:

ffmpeg -ss 1 -i <input_filename>.ts -f image2 -vf "select='eq(pict_type,I)'" -vframes 1 -vsync 2 <output_filename>.png

Stitch screenshots together:

convert <individual_images>.png +append <output_filename>.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment