[FFmpeg-user] obtaining an image from a video stream

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Aug 3 21:40:45 CEST 2012


LsBender <mlefe74 <at> gmail.com> writes:

> I've finally made it, thanks to your help, by using this command line: 
> 
> ffmpeg -vf select="eq(pict_type\,PICT_TYPE_I)" 
> -i rtsp://<my-ip-address>/stream1 -vsync 2 -f image2
> -vframes 5 "frame-%02d.png"

It is extremely unlikely that this command does what you want - 
ordering of options is relevant for ffmpeg and you invoke a 
filter before decoding a picture which probably is not what 
you intended.

(And you don't need -f image2 - ffmpeg knows what .png is.)

Can you tell me what effect -vsync 2 has?

Carl Eugen



More information about the ffmpeg-user mailing list