[Ffmpeg-devel] [ppm @ 0x40415168]picture size invalid (1x0)

Víctor Paesa wzrlpy
Sun Sep 3 00:52:20 CEST 2006


> Hi,
>
> I tried to pipe a stream of ppm file into ffmpeg to create a video.
> However, the following command sequence causes ffmpeg to complain about
> an invalid picture size and produces a video which is garbled after some
> time.
>
>> convert -size 160x128 -depth 8 xc:white white.ppm
>> i=0
>> while [ $((i<10000)) == 1 ]; do let i=$((i+1)); cat white.ppm ; done |
> ffmpeg -f image2pipe -vcodec ppm -i - -s 160x128 -r 25 -b 90 -f
> mpeg2video -aspect 4:3 -y out.mpv
>
> The output is as follows:
>
> FFmpeg version SVN-r6005, Copyright (c) 2000-2004 Fabrice Bellard
>   configuration:  --shlibdir=/usr/lib --prefix=/usr
> --mandir=/usr/share/man --libdir=/usr/lib --enable-shared
> --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad
> --enable-faac --enable-xvid --enable-a52 --enable-x264 --enable-pp
> --enable-gpl --enable-gprof --enable-amr_nb --enable-amr_wb
>   libavutil version: 49.0.0
>   libavcodec version: 51.11.0
>   libavformat version: 50.5.0
>   built on Aug 17 2006 01:01:36, gcc: 4.0.2 20050901 (prerelease) (SUSE
> Linux)
> Input #0, image2pipe, from 'pipe:':
>   Duration: N/A, bitrate: N/A
>   Stream #0.0: Video: ppm, rgb24, 160x128, 25.00 fps(r)
> Output #0, mpeg2video, to 'out.mpv':
>   Stream #0.0: Video: ppm, rgb24, 160x128, q=2-31, 90 kb/s, 25.00 fps(c)
> Stream mapping:
>   Stream #0.0 -> #0.0
> [ppm @ 0x40415168]picture size invalid (1x0)bitrate=12291.0kbits/s
> [ppm @ 0x40415168]picture size invalid (1x0)
> [ppm @ 0x40415168]picture size invalid (16x0)itrate=12291.0kbits/s
> [ppm @ 0x40415168]picture size invalid (16x0)
> [ppm @ 0x40415168]picture size invalid (160x0)trate=12291.0kbits/s
> [ppm @ 0x40415168]picture size invalid (160x0)
> [ppm @ 0x40415168]picture size invalid (160x0)trate=12291.0kbits/s
> [ppm @ 0x40415168]picture size invalid (160x0)
> Error while decoding stream #0.0B time=97.1 bitrate=12291.0kbits/s
> [Ctrl-C hit]
> Error while decoding stream #0.0
> frame= 2457 q=0.0 Lsize=  147456kB time=98.3 bitrate=12291.0kbits/s
> video:147456kB audio:0kB global headers:0kB muxing overhead 0.000000%
> Received signal 2: terminating.
>
>
> Unfortunately, you can't see the frame numbers here anymore. The frame
> at which the first "[ppm @ 0x40415168]picture size invalid (1x0)"
> message comes is around number 1400. The other ones follow rapidly.
> I can't compile ffmpeg myself, so I can't send you a backtrace. But I
> hope that this report is sufficiently complete.
>
> Note that when I create 10000 pictures white_%05d.ppm instead and run
> ffmpeg -i white_%05d.ppm ... with the same parameters then the encoding
> is error free!
>


Some Googling (great tool!) around shows that this is a known problem,
that a partial solution was proposed, but rejected, and the submitter is
working on a definitive solution.

http://article.gmane.org/gmane.comp.video.ffmpeg.devel/33114

Regards,
V?ctor Paesa






More information about the ffmpeg-devel mailing list