[Live-devel] MP3FileSource

Michael Russell mrussell at frontiernet.net
Sun Jul 12 09:49:52 PDT 2009


My application creates a FramedSource from an MPEG-1, Layer 3 (.mp3)
audio file and feeds it to an input of MPEG2TransportStreamFromESSource
like this:

>ByteStreamFileSource* audioFileSource =
>    ByteStreamFileSource::createNew(*env, filename);
>FramedSource* audioES = audioFileSource;
>
>MPEG1or2AudioStreamFramer*  inputSource =
>    MPEG1or2AudioStreamFramer::createNew(*env, audioES, False);
>
>MPEG2TransportStreamFromESSource* newTransportStream =
>    MPEG2TransportStreamFromESSource::createNew(*env);
>
>newTransportStream->addNewAudioSource(inputSource, 1);


I just discovered the MP3FileSource object.  Should I be using that 
instead?  It seems to *partially* fix some multiplexing issues that I 
was having.

e.g. -

>MP3FileSource* inputSource =
>   MP3FileSource::createNew(*env, filename)
>
>newTransportStream->addNewAudioSource(inputSource, 1);





More information about the live-devel mailing list