Forum > Audio and Video

Grab images using PasLibVLC

(1/2) > >>

pcurtis:
I'm pulling my hair out here.

How do I sequence a video and take snapshots?

For example I have a clip of 10000ms and want to take a snapshot every 1000ms.

With no useful docs and the fact that PasLibVLC won't run in the IDE makes this trivial task a nightmare.

Jurassic Pork:
hello,
to grab an image every seconds with ffmpeg:

--- Quote ---ffmpeg -vsync 0 -i file.mp4 -vf fps=1,select='not(mod(t,1))' -frame_pts 1 temp\file.%d.jpg

--- End quote ---

Friendly, J.P

pcurtis:
Thanks, can a list of times be passed to ffmpeg? For example I want an image after 10, 39, 57 seconds?

Zvoni:

--- Quote from: pcurtis on May 31, 2021, 01:28:48 pm ---Thanks, can a list of times be passed to ffmpeg? For example I want an image after 10, 39, 57 seconds?

--- End quote ---

Look at the "map"-option
http://johnriselvato.com/ffmpeg-how-to-extract-screenshots-from-multiple-parts-of-a-video/

ffmpeg -i input.mp4 -map 0:v -ss 00:00:10 -frames:v 1 frame_10.png -map 0:v -ss 00:00:39 -frames:v 1 frame_39.png .... and so on

pcurtis:
Thanks, been looking everywhere for that.

Navigation

[0] Message Index

[#] Next page

Go to full version