[Live-devel] Port forwarding of multiple cameras

Indu Girish indu.girish at gadgeon.com
Wed Jan 16 21:08:17 PST 2019


Hi Ross,

Thanks for your support.
Now I am able to change the server port number of the proxy server.

I have another question. When I try to connect to remote camera through the
router, I face some issues witn the RTSP port 554.
If  554 of camera is configured to 554 of router, streaming works properly.
But if 554 of camera is configured to any port other than 554 of router,
streaming fails. The server address received by the RTSP client from sdp is
the camera IP address,which is private address. If I change this address to
the public IP of the router, streaming works even with other port numbers.
Is it the correct way of doing?

Thanks & Regards,
Indu






On Wed, Jan 16, 2019 at 12:19 PM Ross Finlayson <finlayson at live555.com>
wrote:

> > We are developing an android app to stream media from an IP camera.
> > We are running a proxy server in android to multiplex the camera stream.
> > We use port-forwading to get media stream from remote cameras connected
> to a router.
> > At present, streaming RTP over UDP, we can connect to a single remote
> camera connected to the router, at a time. I beleive we need to configure
> RTP and RTCP ports for video/audio streams also with the router. And If I
> need to connect to multiple cameras simultaneously, I need to configure
> additional 4 ports for each camera.
> >
> > My question is how can we use a user defined value for server ports in
> Live555 library. I have changed the default value of "initialPortNum" in
> "OnDemandServerMediaSubsession" constructor, but the log shows it still use
> 6970 as server RTP port.
>
> You’re on the right track; however the “initialPortNum” parameter that you
> should change is the one that’s passed to the “ProxyServerMediaSession”
> constructor.  And you should *not* do so by modifying the supplied
> “ProxyServerMediaSession” code.  Instead, you should define your own
> subclass of “ProxyServerMediaSession”, and define this subclass so that its
> constructor passes your appropriate value for “initialPortNum” to the
> (parent) “ProxyServerMediaSession” constructor.  Then define and implement
> your own “createNew()” function for your subclass.
>
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20190117/c17d7d70/attachment.html>


More information about the live-devel mailing list