Opened 22 months ago

Closed 22 months ago

Last modified 21 months ago

#5438 closed defect (fixed)

image2pipe reads two bmp images in one packet

Reported by: trebartha Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: bmp regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no


Summary of the bug: I am piping 241 bmp images to ffmpeg. Image2pipe consistently reads images 00089 & 00090 together in the one packet with the result that 00090 is not sent to the output and a total of only 240 frames are rendered.

How to reproduce: Unzip the attached set of images. Run:

cat render*.bmp | ffmpeg -y -v 9 -loglevel 99 -dump -report -thread_queue_size 100 -f image2pipe -framerate 1 -i - -f null -

This example command doesn't produce any output but the log shows where the problem is. The full log is attached, but I've included this pertinent section which shows that packet with pts 89 was read with precisely double the number of bytes of all of the other packets:

stream #0:
  dts=88.000  pts=88.000
stream #0:
  dts=89.000  pts=89.000
stream #0:
  dts=90.000  pts=90.000

And at the end of the log only 240 packets were read in total:

Input file #0 (pipe:):
  Input stream #0:0 (video): 240 packets read (888455658 bytes); 240 frames decoded; 
  Total: 240 packets (888455658 bytes) demuxed

(888455658 = 3686538 * 241)

This behaviour is reproducible in the latest 3.0.1 as well as 2.8.6. It does not, however, occur in 2.2.1.

My only recourse is to run that older version but it doesn't have some of the newer features that I require, so I'm stuck at the moment until this can be fixed.


Attachments (3)

ffmpeg-20160414-071805.log (26.1 KB) - added by trebartha 22 months ago. (1.5 MB) - added by trebartha 22 months ago.
ffmpeg-20160414-100126.log (25.6 KB) - added by trebartha 22 months ago.

Download all attachments as: .zip

Change History (8)

Changed 22 months ago by trebartha

Changed 22 months ago by trebartha

comment:1 Changed 22 months ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords image2pipe removed
  • Priority changed from important to normal

Is the issue reproducible with current FFmpeg git head?

comment:2 Changed 22 months ago by richardpl

  • Reproduced by developer set
  • Status changed from new to open

Changed 22 months ago by trebartha

comment:3 Changed 22 months ago by trebartha

Yes, I've just pulled the latest git head and reproduced. Please see the latest log attached.


comment:4 Changed 22 months ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:5 Changed 21 months ago by cehoyos

  • Keywords regression added
  • Priority changed from normal to important

Regression since 3c6d824b80022cc7c098658880b4b5c5778dc965 - related to ticket #3687

Note: See TracTickets for help on using tickets.