Attract-Mode Support Forum

Related Stuff => Emulators => Topic started by: tom75000 on July 25, 2022, 12:50:56 PM

Title: Extrcat one frame from videos
Post by: tom75000 on July 25, 2022, 12:50:56 PM
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
Title: Re: Extrcat one frame from videos
Post by: jedione on July 25, 2022, 12:57:41 PM
windows. print screen /// is as basic as it can get....right, :P
Title: Re: Extrcat one frame from videos
Post by: JonahUK on July 25, 2022, 12:58:35 PM
ffmpeg will do it and you can batch it too.

Code: [Select]
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")

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: [Select]
-vf scale=iw/2:ih/2:force_original_aspect_ratio=decrease:force_divisible_by=2 instead of
Code: [Select]
-vframes 1 -s 640x480
Title: Re: Extrcat one frame from videos
Post by: tom75000 on July 25, 2022, 02:31:18 PM
Thank you. I'll try tomorrow!
Title: Re: Extrcat one frame from videos
Post by: manzarek on November 16, 2022, 08:41:52 AM
Thank you. ;)