[Live-devel] What source should I use to capture a MPEGTS stream?

Pushkar Pradhan pushkar at ipvideosys.com
Wed Mar 19 18:55:44 PDT 2008


I'm trying to play a MPEGTS stream (sending both audio video on same
port), by creating a SimpleRTPSource.
I figured out that SimpleRTPSource was the right choice by looking at
the Boolean MediaSubsession::initiate(int useSpecialRTPoffset) function.

However, MultiFramedRTPSource::networkReadHandler which parses the RTP
header breaks out of the loop because the RTP header is not version 2:
   // Check the RTP version number (it should be 2):
   if ((rtpHdr&0xC0000000) != 0x80000000) break;

Can you please advise me what is the correct source to use for MPEGTS?
Thanks,
Pushkar	


More information about the live-devel mailing list