Skip to content

Instantly share code, notes, and snippets.

@jkeefe
Created November 2, 2021 18:58
Show Gist options
  • Save jkeefe/740193b2efad792bbc665fe06c86a916 to your computer and use it in GitHub Desktop.
Save jkeefe/740193b2efad792bbc665fe06c86a916 to your computer and use it in GitHub Desktop.
Extract first frame from a video as an image
ffmpeg -i infile.mp4 -vf "select=eq(n\,0)" -q:v 3 outfile.jpg
# from https://stackoverflow.com/questions/4425413/how-to-extract-the-1st-frame-and-restore-as-an-image-with-ffmpeg/4425466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment