Wowza Community

Re-streaming live from IP camera on local network

that should indeed be the right setup. but its best to use static ipaddresses (you can do even when you have dhcp enabled).

i have no knowledge about apple products ;), but networking is the same to all products. you could try to change the protocol to UDP (sometimes you can select UDP/TCP or Both) and see if it gives any changes.

as soon as you start with these things networking will become an issue:D

this is the only usefull thing i could find about the router you have: https://discussions.apple.com/message/17117646#17117646 other people had no issues on a linksys router, but had issues with the apple router. the first thing you have to establish is to get direct access outside your network i guess. maybe if someone else have ideas with ip or cctv camera’s i hope they will step in, i don’t have one, so i can’t test things out for you to get to the right settings on this. make sure your network is the right way configured: https://discussions.apple.com/message/18785952#18785952

im not sure about this, but i think wowza will PULL the stream from your home network to the wowza server. if it can;'t connect nothing will happen from there. (it has to get access to your local network on a certain port)

if you use a push stream (lets say live encoder or vlc) you will push the stream to the wowza server. outgoing push streams don’t effect your firewall.

a firewall on your router is only used for INCOMING traffic. and i think that’s where youre problem is.

have you tested other setups to see if wowza is working correctly?

you could use adobe live encoder for a test rtmp stream to the wowza server. at least to know if the whole wowza part is working. Sometimes to test things out you have to test something else to get to the result you want :smiley:

please one solution/question at the time.

skip the local part. working with ipaddresses inside and outside your network needs a totally different approach.

i think its best to keep locally and remote separate, otherwise we get mixed up answers. from now on, start working ONLY with the remote wowza server :wink:

have you checked the other answers i gave you?

well, i tried to test it locally with this link: http://www.wowza.com/resources/3.5.0/examples/LiveVideoStreaming/FlashRTMPPlayer/player.html

and got this error:

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[3]: SDP file too large. Limit is 2MB. (/usr/local/WowzaMediaServer/content/sample.mp4)

Hi Ana,

im not sure what you mean by locally. you tested it locally with an external link? please explain the steps you did. what changes did you made before testing it again?

but also did you checked the other answers before this?. if we give possible solutions it would be nice if you checked them out, otherwise we’re getting nowwhere :wink: one mis-step and it just doesn’t work.

Hi Ana,

sorry for my late response. I hope you have better luck with another router.

Thank you for your quick reply. Yes i want to stream outside the network trough a browser for now maybe later in vlc or quicktime. For now i have the same setup from this tutorial: https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming#publish with this address in the stream file: rtsp://admin:studiom123@10.0.1.22/play1.sdp. I know this cannot work since the server is indeed outside of the network and this is the ip addres of the camera on our network. How can i setup jwplayer for example?

Thank you for all your help.

Best regards,

Ana

The camera is in my network and the server is outside the network. For now this works on a local machine within the network which is the example setup. I then installed wowza on the dedicated server without any problem and made the same settings except for the .stream file (i did not make any changes to it but i knew it wouldn’t work). The server’s ip is 184.107.212.130. The IP address of the camera is internal one. Since the server we intend to use for streaming is dedicated server used just for storing files and has only few setups i thought i use the cloud jwplayer with the wowza address. Where can i put the router’s external address? In the .stream file? As for the firewall of the server, it’s disabled. This is and iweb dedicated server.

I did create application and setup the internal and external ip addresses but now the log says connection refused . The router is apple time capsule that works as a router. In the port section of the router application there is option to add access to a specific device. There are 5 options to fill. Public TCP Port (i added 554, 1935), Public UDP port (Nothing here), Private IP Adress (10.0.1.22 - camera IP) Private TCP Port (554, 1935) and private UDP Port.

Wowza’s log : ERROR server comment - MediaCasterConnection.connect: Failed to connect[184.107.212.130:554]: org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connection refused].

Thank you again and sorry for the silly questions.

Best Regards,

Ana

Hello,

Sorry for the long wait my camera is not available during the weekend. The link suggested still shows this error: Failed to get the session[ConnectException: Connection refused]. As for the camera.stream file i have this setup: rtsp://admin:password@10.0.1.22/play1.sdp. This worked on the local machine. As for the setup i did it like this:

I created folder live in application and in conf directories and in conf file i pasted the application.xml.

In that file i applied the changes suggested on the tutorial. I downloaded the already changed file.

After that i created the .stream file with the contents from above (which worked on the local machine).

I edited the admin.passwod file with username and password.

After this i open the streammanager and start streaming and everything is ok at that end.

I also created another application with these steps but in the application.xml copied in that application has these settings:

184.107.212.130

184.107.212.130

184.107.212.130

It didn’t work with those either. The router is apple time capsule that works as a router and when i go on cmd and put ipconfig it shows this address (10.0.1.1) as a default gateway. The other ones are the external ip of the router.

Thank you again for your help.

Best Regards,

Ana

Hello,

My camera is DCS-5222 and the server that has wowza doesn’t have any firewall. Do i still need to map the port? I tired with just the link of the camera in camera.stream but it still doesn’t work.

Thanks in adnvance,

Ana

I have opened the port on the server. Now it shows this:

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.

INFO server comment - RTPSessionTracker.add[rtsp://184.107.212.130:1935/live/camera.stream]: 1

INFO rtsp connect 1244844708 -

INFO stream create - -

INFO stream unpublish - -

INFO stream destroy - -

WARN server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: DESCRIBE: Status: 404

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose

INFO server comment - RTPSessionTracker.remove[rtsp://184.107.212.130:1935/live/camera.stream]: 0:true

INFO rtsp disconnect 1244844708 -

INFO server comment - ServerShutdownHook.run[shutdown]

INFO vhost vhost-stop defaultVHost -

INFO application app-stop definst live/definst

INFO server comment - RTPMediaCaster.shutdown[910790589:live/definst:camera.stream]: camera.stream

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.

INFO server comment - RTPMediaCaster.disconnect[910790589:live/definst:camera.stream]

INFO server comment - RTPMediaCaster.closeRTPSession[910790589:live/definst:camera.stream]

INFO server server-stop - -

Just for information: My router is an apple airport device setup as router and the default gateway is 10.0.1.1 and on the airport utility says that the default router address is 10.0.17.1. (DHCP addresses can be changed to start from 10.0… to 192.168 … but i did’t do anything since i did not find this relevant) so my camera’s ip address is 10.0.1.22.

Since wowza is on an external server outside the network i am not sure now what to put in the camera.stream file. Right now is this rtsp://admin:passwrod@184.107.212.130:1935/live/camera.stream (not real password and username) but i do not specify the url quite correct since the camera url is this: rtsp://admin:password@10.0.1.22/play1.sdp (i have also installed wowza localy on my comp to the same network where the camera is to try) and it works with this url. How can i connect to the camera from the external server, what url should i put in the file? I’ve done everything from the tutorial…

Best,

Ana

This is from the Application.xml

under streams: ${com.wowza.wms.context.VHostConfigHome}/content

under DVR: ${com.wowza.wms.context.VHostConfigHome}/dvr

As for the camera ip should i put 10.0.1.22? That is the ip.

Thanks again

No the camera is on another network behind a router. I explained in the previous post :slight_smile: However if i put the local address of the camera it does not work.

On the router i have this setup for the port mapping:

Public TCP Ports: 554, 1935

Private IP Address: 10.0.1.22

Private TCP Ports: 554, 1935

Hello,

Yes when you tested it probably the service was not started (i did not set it to automatic start) it works when i start it. (Wowza Media Server 3 Trial Edition (Expires: Nov 29, 2013) 3.6.2 build5334) I also spoke with the iweb technical support and the assured me that they opened port 1935 and 554. On the VHost.xml i added 554, it was not there before. I can’t see the stream trough my vlc as well. In the camera.stream file i now have this: rtsp://admin:password@184.107.212.130:554/play1.sdp. But it does not work. The username and password are there because when i access the camera locally it requires username and password. But i still can only access it locally not outside the network.

Thank you again,

Ana

Yes they are from the camera itself, i have to log in to see the stream. It requires a password if i try to log in without it.

How am i accessing the camera behind the router if i do not put the ip address of the camera itself? The camera is behind a router on a local network and wowza is on a dedicated server outside that network.

Thank you so much and sorry for all this trouble.

Best,

Ana

No i can not, i added the ports 1935 and 554 in the router’s mapping ports option, and added the local ip address of the camera like this:

Public TCP Ports: 554, 1935

Private IP Address: 10.0.1.22

Private TCP Ports: 554, 1935

There is UDP option but i left that empty. My router is an apple airport device setup as router and the default gateway is 10.0.1.1 and on the airport utility says that the default router address is 10.0.17.1. (DHCP addresses can be changed to start from 10.0… to 192.168 … but i did’t do anything since i did not find this relevant) so my camera’s ip address is 10.0.1.22.

Should i change something here?

Best,

Ana

Yes, wowza is working correctly locally :).Does wowza work as a ddns server or do i have to buy an additional domain?

well, i tried to test it locally with this link: http://www.wowza.com/resources/3.5.0/examples/LiveVideoStreaming/FlashRTMPPlayer/player.html

and got this error:

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[3]: SDP file too large. Limit is 2MB. (/usr/local/WowzaMediaServer/content/sample.mp4)

As for the router i found out that because i have a pppoe connection i should use a bridge to enable sharing ip addresses.

Oh dear, i meant i tried to test it on your example player with the sample video that’s in the content area. Also yes i did use the stream manager but i later found out that when i tried to stream i chose rtp option and point to the mp4 file. I then used the example player installed with wowza and the sample file and tested it and wowza works just fine. And yes i did test your possible solutions and it turned out that if i use pppoe connection with the apple time capsule it cannot share an ip address and i would have to use a bridge device to fix this problem. (I think i’ll purchase another router though :slight_smile: )

Thank you for being so patient with me :slight_smile: and thank you for the great support.

Best Regards,

Ana