Related Stuff > Emulators

Extrcat one frame from videos

(1/1)

tom75000:
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

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

JonahUK:
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 ---

tom75000:
Thank you. I'll try tomorrow!

manzarek:
Thank you. ;)

Navigation

[0] Message Index

Go to full version