Related Stuff > Emulators

Extrcat one frame from videos


Hi,I have a lot of video snap. I'm looking for a software to extract one frame for each video. Can you help me?
Thx a lot

windows. print screen /// is as basic as it can get....right, :P

ffmpeg will do it and you can batch it too.

--- Code: ---md screenshot
for %%g in ("path\to\videos\*.mp4") do (path\to\ffmpeg\ffmpeg.exe -ss 15 -i "%%g" -vframes 1 -s 640x480 "screenshot\%%~ng.jpg")
--- End code ---

that will create a screenshot folder, export a frame from the video at 15 secs at a size of 640x480 then save the image to the screenshot folder named the same as the video.
Change the size to suit etc

If you want to keep the correct aspect ratio, then use
--- Code: ----vf scale=iw/2:ih/2:force_original_aspect_ratio=decrease:force_divisible_by=2
--- End code ---
instead of
--- Code: ----vframes 1 -s 640x480
--- End code ---

Thank you. I'll try tomorrow!

Thank you. ;)


[0] Message Index

Go to full version