[Live-devel] Raw MPEG2-TS to RTP multicast

Sylvain Fabre sylvain.fabre at inpixal.com
Thu Mar 10 09:40:40 PST 2016


Le vendredi 11 mars 2016, 04:58:47 Ross Finlayson a écrit :
> To do this, do the following:
> 
> 1/ Use a “BasicUDPSource” to receive the raw-UDP Transport Stream.
> 2/ Feed this to a “MPEG2TransportStreamFramer” (to generate proper 'presentation time’s for the Transport Stream packets).
> 3/ Feed that to a “SimpleRTPSink”, which is created as follows:
> 	SimpleRTPSink::createNew(env, rtpGroupsock, 33, 90000, "video", "MP2T", 1, True, False /*no 'M' bit*/); 
Thanks Ross, 

But when doing this, i am getting the following error "BasicTaskScheduler::SingleStep(): select() fails: Bad file descriptor". I have no idea why i am getting this. An indea of the root cause ?

> HOWEVER, if you are doing this inside of a RTSP server, then you don’t need to write any new code to do this.  Instead, just add a “MPEG2TransportUDPServerMediaSubsession” object to your RTSP server.  Our “RTSPServer” and “MPEG2TransportUDPServerMediaSubsession” code does all the work for you.
Yes, but i must use multicast, and a RTSP server is useless in that case.

Regards 

Sylvain

> 
> For an illustration of this, see the “testOnDemandRTSPServer” demo application (a RTSP server); in particular, lines 404-430 of “testProgs/testOnDemandRTSPServer.cpp”.
> 
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> 




> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

-- 
=======================
Sylvain FABRE
09 72 11 30 24
06 30 12 72 34
=======================




More information about the live-devel mailing list