User Tools

Site Tools


ffmpeg:video:frame:extract_frames

ffmpeg - Video - Frame - Extract Frames

Extract a single frame at a specific time mark

ffmpeg -ss 00:23:00 -i input.mkv -frames:v 1 out1.jpg

NOTE: This extracts a single frame at the exact 23:00 time mark.


Extract a single frame

ffmpeg -i input.mp4 %02d_out.jpg -frames:v 1

NOTE: Write a single image.


Extract a sequence of frames

ffmpeg -i input.mp4 %02d_out.jpg

NOTE: The output needs to be an image sequence pattern.

  • %02d: This is a pattern for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.

Extract resized

ffmpeg -i $(video_in) -vf scale=-1:$(resize_width),fps=$(FPS) $(path)/$(name)_%02d_out.jpg

References

ffmpeg/video/frame/extract_frames.txt · Last modified: 2025/05/27 09:07 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki