Author Topic: Extrcat one frame from videos  (Read 1843 times)

tom75000

  • Full Member
  • ***
  • Posts: 64
    • View Profile
Extrcat one frame from videos
« 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

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Extrcat one frame from videos
« Reply #1 on: July 25, 2022, 12:57:41 PM »
windows. print screen /// is as basic as it can get....right, :P
help a friend....

JonahUK

  • Full Member
  • ***
  • Posts: 32
  • Don't like what I say or how I answer? IDGAF.
    • View Profile
    • My Channel
Re: Extrcat one frame from videos
« Reply #2 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
« Last Edit: July 25, 2022, 01:01:02 PM by JonahUK »

tom75000

  • Full Member
  • ***
  • Posts: 64
    • View Profile
Re: Extrcat one frame from videos
« Reply #3 on: July 25, 2022, 02:31:18 PM »
Thank you. I'll try tomorrow!

manzarek

  • Sr. Member
  • ****
  • Posts: 147
    • View Profile
    • YouTube
Re: Extrcat one frame from videos
« Reply #4 on: November 16, 2022, 08:41:52 AM »
Thank you. ;)
Mame Fighting