Opened 19 years ago

Last modified 19 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: no Analyzed by developer: no

Description

I've uploaded a sample clip to
ftp.mplayerhq.hu/MPlayer/incoming/silent-mp4/silent-mp4.mp4

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
instance,

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@… 19 years ago.
Proposed fix

Download all attachments as: .zip

Change History (3)

comment:1 by richardv@…, 19 years ago

op_sys: LinuxAll
Version: unspecifiedCVS

by richardv@…, 19 years ago

Attachment: mplayer.silent-mp4.patch added

Proposed fix

comment:2 by richardv@…, 19 years ago

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.