[Live-devel] Manage (open / close) connection to camera with openRTSP and consume RTP via mobile client

Ross Finlayson finlayson at live555.com
Sun Jul 24 09:55:30 PDT 2016


> I’m examining the suitability of openRTSP for my needs.
> It looks very promising!
>  
> My question:
>  
> Is it possible to use openRTSP to initiate an RTP stream from an RTSP camera - and consume the stream from another device?

Yes, provided that this ‘other device’ is on the same host (i.e., computer) on which you run “openRTSP”.

The way to do this is to give the “-p <startingPortNumber>” option to “openRTSP”, ***and also*** the “-r” option.  (The “-r” option is important, because it tells “openRTSP” not to listen to (i.e., open sockets for) the stream itself.  See http://live555.com/openRTSP/#no-receive  )

E.g., using your example:
	openRTSP -p 60000 -r -u dev dev rtsp://192.168.123.135:554/live/ec49fc08-e751-4a95-be0e-5f5e29a9bbc7

If you do this, then you will (using some other process on the same host) need to open port 60000 to receive RTP packets.  (In principle, you should also send back periodic RTCP “RR” packets on port 60001, but this is not essential.  If you find that your server’s stream times out because you’re not sending back RTCP packets, then you should add the “-K” option to “openRTSP”.)

If your stream consists of both audio and video substreams, then you will need to receive RTP packets on both port 60000 and 60002 (and, in principle, send back RTCP “RR” packets on port 60001 and 60003).

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




More information about the live-devel mailing list