[FFmpeg-user] Saving Video Frames as Images
Christopher Haccius
s9chhacc at stud.uni-saarland.de
Thu Apr 14 17:35:10 CEST 2011
On 04/14/2011 01:40 PM, Christopher Haccius 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
>
> The following lines are copied from the terminal after executing the
> input line mentioned above (first the output how I it used to work,
> below the output of the new version).
>
> --------------------------Old (working) output-------------------------
> ffmpeg -i input.mpg -y -f image2 out/output%04d.png
> FFmpeg version 0.6-4:0.6-2ubuntu6.1, Copyright (c) 2000-2010 the
> FFmpeg developers
> built on Mar 31 2011 18:43:47 with gcc 4.4.5
> configuration: --extra-version=4:0.6-2ubuntu6.1 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libgsm --enable-libschroedinger --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
> --enable-zlib --enable-libvpx --disable-stripping
> --enable-runtime-cpudetect --enable-gpl --enable-postproc
> --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
> libavutil 50.15. 1 / 50.15. 1
> libavcodec 52.72. 2 / 52.72. 2
> libavformat 52.64. 2 / 52.64. 2
> libavdevice 52. 2. 0 / 52. 2. 0
> libavfilter 1.19. 0 / 1.19. 0
> libswscale 0.11. 0 / 0.11. 0
> libpostproc 51. 2. 0 / 51. 2. 0
> [mpeg @ 0x1aef420]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
> [swscaler @ 0x1af8550]No accelerated colorspace conversion found from
> yuv420p to rgb24.
> Output #0, image2, to 'out/output%04d.png':
> Metadata:
> encoder : Lavf52.64.2
> Stream #0.0: Video: png, rgb24, 1004x1004 [PAR 1:1 DAR 1:1],
> q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
> Stream mapping:
> Stream #0.0 -> #0.0
> Press [q] to stop encoding
> frame= 259 fps= 11 q=0.0 Lsize= -0kB time=10.80 bitrate=
> -0.0kbits/s
> video:128012kB audio:0kB global headers:0kB muxing overhead -100.000017%
>
>
> --------------New (not working)
> output---------------------------------------
> ./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*
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
The problem seems to be that I am building ffmpeg without all the
configuration options needed to do what I want to get done. Could anyone
direct me to a manual or tell me how to set the build-options such that
the configurations of my own build are comparable to a Synaptic-build?
Appreciating any help!
Chris
More information about the ffmpeg-user
mailing list