[MPlayer-dev-eng] [PATCH] demux_mov fails on framed audio codecs with constant framesize

Richard van der Hoff richardv at mxtelecom.com
Wed Aug 24 03:43:56 CEST 2005


Evening all.

I've just uploaded a sample clip to 
ftp.mplayerhq.hu/MPlayer/incoming/silent-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.

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.

Thanks,

Richard


-- 
Richard van der Hoff <richardv at mxtelecom.com>
Systems Analyst
Tel: +44 (0) 845 666 7778
http://www.mxtelecom.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer.silent-mp4.patch
Type: text/x-patch
Size: 952 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050824/a2c85cfa/attachment.bin>


More information about the MPlayer-dev-eng mailing list