• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • Tutorials /
avatar image
Question by Ana Krstanoska · Oct 31, 2013 at 10:59 AM · tutorials

Re-streaming live from IP camera on local network

Hello,

First i want to thank you for this incredible service.

I have only one question. I have just downloaded the trial version of Wowza Media Server and configured it on my dedicated web server with centos 5. Everything went smoothly but in the tutorial said that in order to send a link to a remote computer i have to copy the folder client to a my web server. But i do not have that folder. Is the trial version limited? We intend to purchase the server of course but we just wanted to test it first. I know it is an error on my part but i couldn't find more details in the tutorial. The camera is hooked up only on a local network and we can not see the stream unless we are connected on that network.

Thank you for the help in advance.

Best Regards,

Ana
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

13 Replies

· Add your reply
  • Sort: 
avatar image

Answer by jeroen van marion · Oct 31, 2013 at 12:53 PM

Hi Ana,

What exactly do you want to achieve?

Connect the IP camera to wowza and call the stream from anywhere in your network, but also outside your network?.

Do you want to see the stream in a browser or for example in vlc?

if so.

you have to make an application in wowza + adjust the Application.xml to your needs.

Restart wowza and just open the stream in vlc (rtsp://<ipadress_wowzaserver>:1935/streamname

if you want to see it outside your network you have to configure your router and route port 1935 to the wowza server.

if you want to see it in a webbrowser in and outside your network. at the streamname like this: rtmp://<outside_ipaddress>:1935/streamname

you could use jwplayer or flowplayer or another webplayer for this. (to be sure jwplayer6 still has problems in IE9/10, so using jwplayer5 will be more successfull)

assuming your webserver is located outside your office/home.

Just tell me what your setup is. i might can give you more detailed information.

the userguide is nice to know: http://www.wowza.com/resources/WowzaMediaServer_UsersGuide.pdf
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Oct 31, 2013 at 01:03 PM 0
Share
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: http://www.wowza.com/forums/content.php?39#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
avatar image

Answer by sal jefferson · Nov 04, 2013 at 08:45 AM

How are you starting the stream?

Are you using Stream Manager?

For the camera.stream file, you should just have the IP address of the camera:

RTSP://192.0.1.22


What type of IP camera are you using? As this may change what the URL format in the camera.stream file.

Also make sure there is not a .txt extension appended to the file name. This file should be placed in the [wowza-install-dir]/content folder

Try changing these settings back to default to test:(these settings are the default)

<RTSPBindIpAddress></RTSPBindIpAddress>
<RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
<RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>


Salvadore
Comment

People who like this

0 Show 4 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sal jefferson · Nov 04, 2013 at 11:18 AM 0
Share
If this is working locally it is likely an issue with blocked or improperly mapped ports.

You probably need to open TCP port 1935 on that server and/or map port 1935 to your Wowza server in your network, for example port-forwarding if a router.

Salvadore
avatar image Ana Krstanoska sal jefferson · Nov 07, 2013 at 12:03 PM 0
Share
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
avatar image Ana Krstanoska Ana Krstanoska · Nov 07, 2013 at 12:41 PM 0
Share
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 - -
avatar image Ana Krstanoska Ana Krstanoska · Nov 07, 2013 at 02:24 PM 0
Share
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
avatar image

Answer by sal jefferson · Nov 07, 2013 at 07:31 AM

This line in the logs shows that the file can not be found:

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

Make sure the camera.stream file is in the [install-dir]/content folder, if that is where your Application.xml file is pointing to under <StorageDir>

Also, I looked into your IP camera, and it shows a URL for the camera like this: rtsp://[camera-ip]:554/live.sdp

Salvadore
Comment

People who like this

0 Show 3 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sal jefferson · Nov 07, 2013 at 07:36 AM 0
Share
If this is the IP of the camera 184.107.212.130 then try this as the contents of the camera.stream file:

rtsp://184.107.212.130:554/live.sdp


Salvadore
avatar image Ana Krstanoska · Nov 07, 2013 at 02:37 PM 0
Share
This is from the Application.xml

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

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

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

Thanks again
avatar image Ana Krstanoska Ana Krstanoska · Nov 07, 2013 at 02:39 PM 0
Share
No the camera is on another network behind a router. I explained in the previous post :) 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
avatar image

Answer by jeroen van marion · Oct 31, 2013 at 01:29 PM

You don't have to worry about your Camera ip address, because your Wowza Server will be the central server. If your server and ip camera are outside your network just use the external ip addresses or open the ports to the internal ipaddress.

Download the script from jwplayer. edit the settings to your needs and upload it to a webbrowser. for further support about Jwplayer you can go to their forum, they have plenty of examples there.

in your stream file you are using username and password. so you have setup secure streaming.

Can you tell me what is working for now?

rtsp://admin:studiom123@10.0.1.22/play1.sdp

Your example setup?

IP camera IPaddress: 10.0.1.20

Wowza Ipaddress: 10.0.1.22

webserver: ? 10.0.1.23 or an outside ip?

open the ports needed (1935, 554) in your server firewall or forward the ports to your internal wowza server.

call the stream from anywhere inside and outside your network

just use the external ipaddress from your router

or use the external ipaddress when your server is a datacenter

edit:

you didnt have the application name in your rtsp stream. it should be like this

rtsp://admin:studiom123@<external_ip_wowzaserver>/<application_name>/play1.sdp
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Oct 31, 2013 at 01:59 PM 0
Share
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.
avatar image

Answer by jeroen van marion · Oct 31, 2013 at 04:27 PM

Hi Ana,

it should be simple. instead of sending the stream to your local wowza server, send the stream to the outside wowza server

rtsp://admin:studiom123@184.107.212.130/<application_name>/play1.sdp

change <application_name> with the application you made in wowza.

after that just use vlc to test the stream

open networkstream: rtsp://admin:studiom123@184.107.212.130/<application_name>/play1.sdp

otherwise what does your wowza_access.log tell you?

or do you get any other log messages?
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Oct 31, 2013 at 04:51 PM 0
Share
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
avatar image

Answer by jeroen van marion · Oct 31, 2013 at 05:22 PM

Hi Ana,

no problem. I went to the same struggeling with different setups. There is lots of documentation, but sometimes its hard to know which one you need.

Below i will try to display what i mean and what i think your setup is.

Your Home/Office

IP camera : 192.0.1.22

RTSP protocol (best to use port 554 or 1935 to the wowza server)

Datacenter

Wowza Server: 184.107.212.130

you don't have to open ports at your home/office router. (Firewalls only blocks Incoming ports, not outgoing). So the connection refused error is saying it can't connect to the WowzaServer. So something in your setup on the wowza servers is not ok.

I don't know what you mean with setting up the internal and external ip addresses. The servers already has those when you have installed them (static or DHCP addresses).

By the way when i look back in the tutorial i don;t see the authentication for the rtsp. maybe you got confused that the username and password is for the streammanager section.

for now i assume your application name is 'live' what makes it a bit easier to explain ;)

Try this to stream to wowza: rtsp://184.107.212.130:1935/live/camera.stream

following the tutorial: Quote:

Use a text editor to create the file [install-dir]/content/camera.stream and set the contents of this file to the full RTSP/RTP URL of the camera. The file must have a .stream filename extension. For this tutorial, the file used is camera.stream.

I think you also have to go through the tutorial again, because when using the setup like this you can't call your streamname: play.sdp because you made a camera.stream file on your wowza server. It cant find the reference. Tell me what you did with the setup step by step. If you missed one thing it just doesnt work. Dont put real usernames and passwords on the forum, but i need to know your setup in detail.

i don't have an ip camera. so testing the scenario is not possible.
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Nov 04, 2013 at 10:55 AM 0
Share
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:

<RTSPBindIpAddress>184.107.212.130</RTSPBindIpAddress>

<RTSPConnectionIpAddress>184.107.212.130</RTSPConnection>

<RTSPOriginIpAddress>184.107.212.130</RTSPOriginIpAddres>

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
avatar image

Answer by jeroen van marion · Nov 08, 2013 at 01:38 AM

Hi,

@Ana, when i try your link from your wowza server in the browser with just the port ( http://184.107.212.130:1935) it should give me the result that the wowza server is running. The result im getting is: nothing. i cant reach your server. So i think that's where the problem is already. I can't connect to your server, so the rtsp link is not working for sure. Thats what also causes the error it can't connect to the stream. did you open port 1935, 554 on the wowza server?

/usr/local/WowzaMediaServer/conf/VHost.xml

[HTML]<Root>

<VHost>

<HostPortList>

<HostPort>

<ProcessorCount>4</ProcessorCount>

<IpAddress>*</IpAddress>

<!-- Separate multiple ports with commas -->

<!-- 80: HTTP, RTMPT -->

<!-- 554: RTSP -->

<Port>554,1935</Port>

<HTTPIdent2Response></HTTPIdent2Response>

<SocketConfiguration>

[/HTML]

can you connect to your camera from outside your network in VLC? and did you try salvadore his possible solution?
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Nov 11, 2013 at 10:10 AM 0
Share
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
avatar image

Answer by jeroen van marion · Nov 12, 2013 at 11:45 AM

Hi Ana,

do you mean the username and password are for the camera itself, or from your wowza local setup? what do your logs tell you when you connect to the stream without username and password?
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Nov 12, 2013 at 12:17 PM 0
Share
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
avatar image

Answer by jeroen van marion · Nov 12, 2013 at 02:01 PM

ok. lets go back one step.

are you able to connect from outside your network to your ip camera? (no use of wowza)

connect:

world -> router external ip address

setup config

router external ip incoming ports. forward this port to your ip camera(internal ip address.)
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Nov 12, 2013 at 02:13 PM 0
Share
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
avatar image

Answer by jeroen van marion · Nov 12, 2013 at 02:42 PM

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 :D
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ana Krstanoska · Nov 12, 2013 at 04:00 PM 0
Share
Yes, wowza is working correctly locally :).Does wowza work as a ddns server or do i have to buy an additional domain?
avatar image Ana Krstanoska Ana Krstanoska · Nov 12, 2013 at 04:38 PM 0
Share
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)
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Web TV ? 7 Answers

Cannot stream "extremists.mp4" from content directory using Safari 4 Answers

RTSP/RTP Wowza V3.05 Streaming IP 264 Camera Live Video stops and starts 1 Answer

Streaming MPEGTS coming in over TCP 3 Answers

Re-stream video from an IP camera (RTSP/RTP re-streaming) issue 3 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges