Opened 13 years ago
Closed 12 years ago
#1321 closed defect (fixed)
image2pipe looses synch with a pipe of PBM images
Reported by: | Lorenzo Pistone | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | image2pipe pbm parser |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
After some frames (2000), ffmpeg outputs an error (Error while decoding stream #0:0), and goes on encoding, but subsequent output frames contain pieces of adjacent input frames, as if ffmpeg had lost track of the correct beginning of an image. The attached file is my input. Command line is
ffmpeg -f image2pipe -vcodec pbm -r 30 -i - -vcodec libx264 -threads 2 -preset medium -crf 24 -y output.mkv
Attachments (1)
Change History (6)
by , 13 years ago
Attachment: | PBMs_input.zip added |
---|
comment:1 by , 13 years ago
I ran other tests. It fails when I input more than exactly 1989 frames. Since each PBM that I stream is 80011 bytes long, that means that it fails somewhere while reading bytes from 159141879 to 159221890
comment:2 by , 13 years ago
Is libx264 required to reproduce the problem? If not, please use an internal encoder to report problems.
Please provide complete, uncut console output.
comment:3 by , 13 years ago
ffmpeg -f image2pipe -vcodec pbm -r 30 -i - -y -vcodec yuv4 output.mkv
ffmpeg version N-33891-g0e82d31 Copyright (c) 2000-2012 the FFmpeg developers built on May 19 2012 15:17:38 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2) configuration: --enable-gpl --enable-pic --arch=amd64 --cpu=native --enable-libvpx --enable-libx264 --enable-libv4l2 --enable-libtheora --enable-libspeex --enable-libschroedinger --enable-libpulse --enable-libmp3lame --enable-libfaac --enable-nonfree libavutil 51. 53.100 / 51. 53.100 libavcodec 54. 21.101 / 54. 21.101 libavformat 54. 5.100 / 54. 5.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 74.102 / 2. 74.102 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 12.100 / 0. 12.100 libpostproc 52. 0.100 / 52. 0.100 [image2pipe @ 0x1839340] Estimating duration from bitrate, this may be inaccurate Input #0, image2pipe, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: pbm, monow, 800x800, 30 fps, 30 tbr, 30 tbn, 30 tbc [buffer @ 0x18487a0] w:800 h:800 pixfmt:monow tb:1/1000000 sar:0/1 sws_param:flags=2 [buffersink @ 0x1be5400] No opaque field provided [format @ 0x18adba0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format' [scale @ 0x1843060] w:800 h:800 fmt:monow sar:0/1 -> w:800 h:800 fmt:yuv420p sar:0/1 flags:0x4 Output #0, matroska, to 'output.mkv': Metadata: encoder : Lavf54.5.100 Stream #0:0: Video: yuv4 (yuv4 / 0x34767579), yuv420p, 800x800, q=2-31, 200 kb/s, 1k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (pbm -> yuv4) Error while decoding stream #0:01834724kB time=00:01:05.23 bitrate=230405.8kbits/s Error while decoding stream #0:01935977kB time=00:01:08.86 bitrate=230295.4kbits/s frame= 2079 fps= 63 q=0.0 Lsize= 1949146kB time=00:01:09.33 bitrate=230300.3kbits/s video:1949062kB audio:0kB global headers:0kB muxing overhead 0.004309%
comment:4 by , 13 years ago
Reproduced by developer: | set |
---|---|
Status: | new → open |
Version: | unspecified → git-master |
comment:5 by , 12 years ago
Component: | undetermined → avcodec |
---|---|
Keywords: | parser added |
Resolution: | → fixed |
Status: | open → closed |
input