[Live-devel] Stream MP3 over TS

Roberto Pompermaier robypomper at johnosproject.com
Sun Oct 6 00:46:01 PDT 2013


Hi,
I'm trying to transmit an MP3 file over Transport Stream (my goal is 
play the song on different device completely sync).

I studied the 2 test programs testMP3Streamer and 
testMPEG2TransportStreamer, but I didn't understand how it can work.

In the play() function of testMPEG2TransportStreamer, you read from 
file with a ByteStreamFileSource and then pass it to a 
MPEG2TransportStreamFramer, I tryed to do the same but reading the file 
with an MP3FileSource. The error was about the Sync Byte. In the mailing 
list i found a thread about it, and so I added an 
MPEG2TransportStreamFromESSource object to convert the MP3 file format 
to TransportStream format.

Now it don't show me errors, but it still not working. So, what is the 
correct way to transmit an MP3 file over TransportStream?

I, also tried to change the MPEG2TransportStreamFromESSource with the 
MPEG2TransportStreamFromPESSource without success.


Thanks in advance


More information about the live-devel mailing list