[FFmpeg-user] Saving Video Frames as Images

James Darnley james.darnley at gmail.com
Thu Apr 14 18:58:24 CEST 2011


On 14/04/2011, Christopher Haccius <s9chhacc at stud.uni-saarland.de> wrote:
> I am trying to convert a the frames of a video into an image sequence. I
> used to accomplish this task by the following line:
>
> ffmpeg -i input.mpg -y -f image2 out/output%04d.png
>
> Yesterday I downloaded the Snapshot from
> git://git.videolan.org/ffmpeg.git to try to implement some small changes
> in the ffmpeg code. When I build this snapshot the code line from above
> does not seem to work any more. Does anyone know why? How far are the
> git-repositories different from the releases? Has anything changed in
> the procedure of splitting videos into frames?
>
> Any ideas are very much appreciated!
> Best
> Chris

> ./ffmpeg -i input.mpg -y -f image2 out/output%04d.png
> FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
>    built on Apr 13 2011 18:45:22 with gcc 4.4.5
>    configuration:
>    libavutil    50. 40. 1 / 50. 40. 1
>    libavcodec   52.119. 0 / 52.119. 0
>    libavformat  52.106. 0 / 52.106. 0
>    libavdevice  52.  4. 0 / 52.  4. 0
>    libavfilter   1. 78. 0 /  1. 78. 0
>    libswscale    0. 13. 0 /  0. 13. 0
> [mpeg @ 0x1b656e0] max_analyze_duration reached
> Input #0, mpeg, from 'input.mpg':
>    Duration: 00:00:10.76, start: 0.500000, bitrate: 7564 kb/s
>      Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 1004x1004 [PAR 1:1
> DAR 1:1], 104857 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
> *Output #0, image2, to 'out/output%04d.png':
>      Stream #0.0: Invalid Codec type -1
> Could not find input stream matching output stream #0.0*

You need zlib.  Make sure that configure says it is enabled.


More information about the ffmpeg-user mailing list