[Live-devel] How to get testOnDemandRTSPServer (unicast) to take a live h.264 feed coming from a UDP port

Ross Finlayson finlayson at live555.com
Fri Oct 25 21:58:37 PDT 2019


Once again, when replying to a Digest email, *please* trim your response properly, and set a proper “Subject:” line.  (This is basic ’netiquette’.  This is your last warning; your emails are already being moderated due to poor netiquette by you in the past.)


> On Oct 25, 2019, at 12:34 PM, Shyam Kaundinya <shyam.kaundinya at digitalforcetech.com> wrote:
> 
> The h.264 comes in as non-RTP, raw UDP packets

I hope you allow for UDP packets getting lost (which is possible, even when UDP packets are sent locally).

> , to a unicast IP address (localhost) and -not- in NAL unit per UDP packet.

Then you will need to:
- Use a “BasicUDPSource” to read from the UDP socket
- Feed this into a parser - which you would need to write - that parses the incoming UDP data, and outputs a single NAL unit at a time (i.e. one NAL unit for each “getNextFrame()” request by the downstream object).  Each such NAL unit should *not* begin with a ’00 00 00 01’ ’start code’.
- Feed this into a “H264VideoStreamDiscreteFramer” (*not* a “H264VideoStreamFramer”).
(This chain of objects would be created by the “createNewStreamSource()” virtual function in your “OnDemandServerMediaSubsession” subclass.


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




More information about the live-devel mailing list