[Live-devel] about multiplexing audio and h264 video into ts file

Ross Finlayson finlayson at live555.com
Mon Nov 7 18:28:06 PST 2011


> i want to revise live/testprogs/testH264VideoToTransportStream.cpp to add the function of multiplexing audio and  h264 video into ts file.i add some code here like red code below.Am i right to complete my goal?any light would be appreciated.thanks a lot.
[...]
>     MPEG2TransportStreamFromESSource* tsFrames = MPEG2TransportStreamFromESSource::createNew(*env);
>  
>   tsFrames->addNewVideoSource(framer, 5/*mpegVersion: H.264*/);
>  tsFrames->addNewaudioSource(audiofileinputsource,?)  ;

Yes, that should work, depending upon what kind of audio (i.e., what audio codec) you plan to add.

What kind of audio will this be?


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111107/c415e345/attachment.html>


More information about the live-devel mailing list