[Live-devel] How to manipulate MPEG2 TS

Ross Finlayson finlayson at live555.com
Wed May 14 01:37:40 PDT 2008


>Hello, i must take a rtp stream of a MPEG2 TS file coming from vlc 
>and save it into file. To do this i want to use the 
>MPEG1or2VideoRTPSource (to take the frame from the rtp) and FileSink 
>(to save to file). Will it work?

No, because "MPEG1or2VideoRTPSource" is for receiving a MPEG Video 
*Elementary Stream*, not a program stream.

To receive a MPEG Transport Stream (over RTP), use a 
"SimpleRTPSource".  See, for example, line 751 of 
"liveMedia/MediaSession.cpp".

HOWEVER, if you instead just use the existing "openRTSP" application, 
you won't need to write any new code.
-- 

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


More information about the live-devel mailing list