[MPlayer-dev-eng] [PATCH] Support for MPEG2 video in MP4 files

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Nov 11 22:54:34 CET 2004


Hi,
> MP4 files usually contain MPEG4 video and AAC audio, but other types are
> possible, too. The distinction is NOT made with the FourCC (which is
> always 'mp4a' and 'mp4v') but with the 'object type identifier' in the
> elementary stream descriptor.
> 
> Mplayer supports MP3 with one particular OTI (object type identifier),
> but not MPEG2 video so far. This patch add this and introduces some
> #defines for a couple of OTI (see
> http://gpac.sourceforge.net/tutorial/mediatypes.htm).
> 
> I can provide a sample that needs at least the last hunk of this patch.
> 
> If noone objects I'll apply this on Monday.

> +#define MP4OTI_MPEG2AudioMain                               0x66
> +#define MP4OTI_MPEG2AudioLowComplexity                      0x67
> +#define MP4OTI_MPEG2AudioScaleableSamplingRate              0x68
> +#define MP4OTI_MPEG2AudioPart3                              0x69

> -			    if(esds.objectTypeId==107)
> +			    if(esds.objectTypeId==MP4OTI_MPEG1Audio || esds.objectTypeId==MP4OTI_MPEG2AudioPart3)
>  				sh->format=0x55; // .mp3

What about the other MPEG2 Audio formats?

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list