[FFmpeg-devel] mp3: "Header missing" error on last packet w/o seek.

Dale Curtis dalecurtis at chromium.org
Tue May 8 02:15:27 CEST 2012


All,

We're running into a strange issue with an mp3 where it throws a "header
missing" error if played straight through, but plays through fine w/ a seek
to 1. E.g., using D_0.mp3 from:

http://www.danedington.co.uk/superThings/HTML5Guitar/D_0.mp3

$ ffplay -autoexit D_0.mp3
...
[mp3 @ 0x25ee0c0] Header missing   0KB vq=    0KB sq=    0B f=0/0
1336434931.49 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

Whereas with a -ss 1 no "Header missing" error occurs:

$ ffplay -autoexit -ss 1 D_0.mp3
...
  15.52 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

Running a read_frame/avcodec_decode_audio loop shows avcodec_decode_audio
returning -1 on the very last packet (ignore the return code and read_frame
return EOF next). Additionally, using a backwards seek to 0 shows error,
however a forward seek to 0 does not.

As far as I can tell it's been an "issue" since at least July 2011. Haven't
found a passing build yet for bisect. Full logs at
http://pastebin.com/Xd6QVqR3

Thanks in advance for any assistance.

- dale


More information about the ffmpeg-devel mailing list