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

Hikri Kobi Kobi.Hikri at elbitsystems.com
Sun Jul 24 23:28:06 PDT 2016


Hi Ross,

Thank you for your quick response :-).
My problem is that the other device is not on the same host. Each device has its own IP address.
Have you ever encountered such a scenario? If you happen to have any advice, I'd be more than happy to hear :-).

Best regards,
Kobi.

-----Original Message-----
From: live-devel [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: 24 July 2016 19:56
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Manage (open / close) connection to camera with openRTSP and consume RTP via mobile client

> 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/


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

The information in this e-mail transmission contains proprietary and business 
sensitive information.  Unauthorized interception of this e-mail may constitute 
a violation of law. If you are not the intended recipient, you are hereby 
notified that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. You are also asked to contact the sender 
by reply email and immediately destroy all copies of the original message.



More information about the live-devel mailing list