Skip to content

Instantly share code, notes, and snippets.

@mwender
Created August 19, 2025 18:41
Show Gist options
  • Select an option

  • Save mwender/fd9b4d2a6e51af4742a971c20d5f31c2 to your computer and use it in GitHub Desktop.

Select an option

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
# 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