[FFmpeg-user] Capturing a frame from video and resizing it...issue.

Roberto Ragusa mail at robertoragusa.it
Mon May 25 10:40:25 CEST 2015


On 05/25/2015 04:32 AM, Dani A wrote:
> I have fixed the command as below:
> ffmpeg -i apple.mp4 -ss 00:00:4 -vf scale=241:164 apple5.png -y
> But I still receive the below warning, the file get created through but I do not understand the warning.
> 
> [image2 @ 0xaf70fc0] Could not get frame filename number 2 from pattern 'apple5.png' (either set updatefirst or use a pattern like %03d within the filename pattern)av_interleaved_write_frame(): Invalid argument
> frame=    2 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.08 bitrate=N/A
> video:205kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
> Conversion failed!

You are asking to save many frames but the filename is always constant,
as you did not use something like %03d in the filename.

In the previous example suggested to you, just one frame was asked, but
in this one you don't.

-- 
   Roberto Ragusa    mail at robertoragusa.it


More information about the ffmpeg-user mailing list