[FFmpeg-user] Trying to extract an image from a video
cus at passwd.hu
Fri Sep 30 01:49:02 EEST 2022
On Mon, 26 Sep 2022, Damien Vandame wrote:
> Sorry to disturb you, I'm trying to extract only one image from a video.
> Using ffmpeg with Windows.
> It does work, but there is a warning I'd like to get rid of.
> Can anybody tell me the right syntax?
> Thank you very much!
> This is the syntax I'm currently using :
> *E:\tests>ffmpeg -i myvideo.mp4 -r 1 -ss 7 -frames:v 1 myvideo.jpg*
> [image2 @ 00000273929beb40]
> *The specified filename 'myvideo.jpg' does not contain an image sequence
> pattern or a pattern is invalid.[image2 @ 00000273929beb40] Use a pattern
> such as %03d for an image sequence or use the -update option (with
> -frames:v 1 if needed) to write a single image.*
> frame= 1 fps=0.0 q=6.2 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
> video:45kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: unknown
> PS - If I use the -update option, it does not work at all.
Actually the correct syntax would be -update 1, not simply -update, it
might not be evident for people not familiar with ffmpeg options. Maybe
the warning message should be clarified.
More information about the ffmpeg-user