[MPlayer-dev-eng] [PATCH] Added Multi-channel MP3 on MP4 audio decoding

Larry Ruedisueli lwr at audioresearchlabs.com
Tue Sep 21 17:37:18 CEST 2004


This patch allows mplayer to decode mp4 files which contain a
multi-channel mp3 audio track as specified in
ISO/IEC 14496-3:2001/FPDAM 3 (MP3onMP4).

Added two lines of code to demux_mov.c to test for indication
of mp3on4 and set the correct audio format.  Assigned new
format as 29, since that is the value of AAC audioObjectType
used to indicate mp3on4.

Added new file, libmpcodecs/ad_mp3on4.c, which splits the
MP4 access unit into seperate mp3 audio frames (one for
each channel or channel pair) and calls the mp3 decoder.
The ffmpeg mp3 decoder was chosen since it allows multiple
instances.

Added appropriate lines to etc/codecs.conf, libmpcodecs/Makefile
and libmpcodecs/ad.c for new file.

Note, when I tested this on win32 I discovered that the ffmpeg
mp3 (mpegaudiodec.c) decoder did not work correctly (with or
without my mods) with -O4 optimization, I had to set it to -O2,
and then all was ok.  Everything was fine on linux.

Larry
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040921/55d7d320/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ad_mp3on4.c
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040921/55d7d320/attachment.txt>


More information about the MPlayer-dev-eng mailing list