Opened 15 years ago

Last modified 15 years ago

#364 new defect

demux_mov fails on framed audio codecs with constant framesize

Reported by: richardv@… Owned by: moritz@…
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


I've uploaded a sample clip to

This file contains a silent audio stream. This is special because all of
the AAC frames are 7 bytes long, which means that rather than there
being a sample length table, trak -> samplesize is set to 7.

The demuxer then complains 'WARNING! Samplesize(7) != 1', and only a
small number of the frames are actually passed to the codec. Although
this more-or-less works in mplayer, mencoder fares much less well. For

mencoder -oac copy -ovc copy silent-mp4.mp4 -o silent-mp4.avi

produces a file with a corrupt video stream.

Attachments (1)

mplayer.silent-mp4.patch (952 bytes) - added by richardv@… 15 years ago.
Proposed fix

Download all attachments as: .zip

Change History (3)

comment:1 Changed 15 years ago by richardv@…

  • op_sys changed from Linux to All
  • Version changed from unspecified to CVS

Changed 15 years ago by richardv@…

Proposed fix

comment:2 Changed 15 years ago by richardv@…

Here's a patch which fixes this. It just makes sure that such files are
handled in the way mp4 audio is normally handled - by building an index
for the audio frames.

Note: See TracTickets for help on using tickets.