Created
November 2, 2021 18:58
-
-
Save jkeefe/740193b2efad792bbc665fe06c86a916 to your computer and use it in GitHub Desktop.
Extract first frame from a video as an image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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