[Live-devel] How to mux a MPEG-4 video and audio stream into a MPEG-2 TS

Lonnie Walker lonnie.walker at apogeelabs.com
Mon Jun 16 11:38:25 PDT 2008


On Tue, 2008-06-03 at 08:01 -0700, Ross Finlayson wrote:
> 
> Are you sure that - in your code - the "mpegVersion" parameter is 4 
> when "MPEG2TransportStreamMultiplexor::handleNewBuffer()" gets called?
> 
> The problem may be that the current Transport Stream multiplexing 
> (i.e., construction) code - implemented by the 
> "MPEG2TransportStreamMultiplexor" class - originally assumed that the 
> constituent audio and video streams were both MPEG-1 or MPEG-2; there 
> was originally no support for MPEG-4 audio or video.
> 
> Since then, support was added for MPEG-4 audio and video.  However, 
> it's conceivable that there are still problems with this.
> 
> You may want to take a look at "MPEG2TransportStreamMultiplexor.cpp" 
> - in particular, the "if" statement that starts at line 108.  If you 
> find something that needs to be changed there, please let us know.

Does anyone know if MPEG-4 AAC has to be encapsulated (ADTS, LATM, etc)
before it is multiplexed into a MPEG-2 TS with MPEG-4 video? If so, can
you point me to what standard covers this topic?

Thanks

Lonnie 




More information about the live-devel mailing list