Skip to content

Instantly share code, notes, and snippets.

@danpetrv
Last active January 17, 2020 13:35
Show Gist options
  • Save danpetrv/397315b3a07b68f8d1353aedbbe93413 to your computer and use it in GitHub Desktop.
Save danpetrv/397315b3a07b68f8d1353aedbbe93413 to your computer and use it in GitHub Desktop.
Get the first frame of the video using ffmpeg library
# I've cobbled up this command line from various answers that works great for me to get the absolutely first frame out from a video.
# I use this to save a thumbnail screenshot for the video.
ffmpeg -i inputfile.mkv -vf "select=eq(n\,0)" -q:v 3 output_image.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment