Created
August 19, 2025 18:41
-
-
Save mwender/fd9b4d2a6e51af4742a971c20d5f31c2 to your computer and use it in GitHub Desktop.
[Save Specified Frame of a Video] Save a specified frame of a .mov with ffmpeg #cli
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
| # Save the first frame of a .mov file as a JPEG using ffmpeg | |
| # Basic usage: | |
| ffmpeg -i input.mov -frames:v 1 -q:v 2 firstframe.jpg | |
| # Options explained: | |
| # -i input.mov -> Input video file | |
| # -frames:v 1 -> Extract just 1 frame | |
| # -q:v 2 -> JPEG quality (lower = better, range 2–31) | |
| # firstframe.jpg -> Output file name | |
| # Example: grab a frame at 5 seconds into the video | |
| ffmpeg -ss 00:00:05 -i input.mov -frames:v 1 -q:v 2 frame5s.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment