[Live-devel] retreiving an MPEG2-TS without rtsp

Ross Finlayson finlayson at live555.com
Thu Apr 23 19:16:08 PDT 2009


>Sorry for bothering, I just ran into one the archives of this mailing list and
>From what i understand I can use the "testMPEG1or2VideoReceiver" and just
>replace the session source with the next line :
>
>sessionState.source = SimpleRTPSource::createNew(*env, 
>&rtpGroupsock,33 /*indicates mpeg2ts*/,90000,"video" /*hack*/);
>
>where the 90000 value of the "rtpTimestampFrequency" is taken from 
>the MPEG2transportStreamer program
>
>I streamed from vlc, but got nothing (the target file is empty).
>What am I doing wrong ?

I don't know.  If your stream really is a MPEG Transport Stream sent 
over RTP *multicast*, using the IETF standard RTP payload format, and 
you have specified the port number correctly, then this should work.

However, if your stream is unicast rather than multicast, then see 
<http://www.live555.com/liveMedia/faq.html#unicast>.


>How can I know the rtpTimestampFrequency of the transmitter?

90000 Hz is standard for most MPEG media, including MPEG Transport Streams.


If however, your stream is MPEG Transport Stream data over *raw UDP*, 
rather than over RTP, then you should use a "BasicUDPSource" rather 
than a "SimpleRTPSource".


Once again, though, the preferred way to receive streams (especially 
unicast streams) is to use RTSP.  Our RTSP client implementation 
figures out everything for you.
-- 

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


More information about the live-devel mailing list