Skip to content

Instantly share code, notes, and snippets.

@rcombs
Created October 2, 2013 02:50
Show Gist options
  • Save rcombs/6788457 to your computer and use it in GitHub Desktop.
Save rcombs/6788457 to your computer and use it in GitHub Desktop.
# RGB48
ffmpeg -ss start_time_in_seconds -i "infile.mkv" -ss offset_from_keyframe_in_seconds "outfile.png"
# RGB24 (via imagemagick):
ffmpeg -ss start_time_in_seconds -i "infile.mkv" -ss offset_from_keyframe_in_seconds \
-vframes 1 -f image2 -vcodec png - | convert - -depth 8 "outfile.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment