Wowza Community

Foscam IP Camera - Connection Problem?

Hi, I am working on a CentOS 5.7 and using WMS 3.0.5 with the transcoder AddOn.

I am trying to re-stream from a Foscam IP camera using WMS, the model of the camera is FI8602W (http://www.foscam.com/prd_view.aspx?id=43), but it seems that I cant stablish a proper connection with the camera.

Here is the log:

INFO server comment - RTPMediaCaster.create[1553639268]
INFO server comment - RTPMediaCaster.init[1553639268]
INFO server comment - RTPMediaCaster.Reconnector[1553639268:live/_definst_:camera1.stream]: start: 1
INFO server comment - HTTPStreamManager.onHTTPRequest: Publish stream successfully started [live/_definst_]: flv:camera1.stream
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12]: 0:true

What could be the reason of my problem and how can I fix it?

thanks!

I tried it in VLC and got username/password challenge. You can add that in the url like this

rtsp://richard:mypwd@housetek.dyndns.org:554/12/trackID=0

The camera has to support basic authentication for the above method.

Richard

That username and password did not work

Richard

Kapil,

Try applying patch 6

http://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer3.1.2-patch6.zip

If you have less than 3.1.2, apply this patch first, before the above.

http://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer-3.0.x-3.1.2.zip

Richard

The problem specific to this camera was addressed in patch 6. This might just be a connectivity/network problem.

You could apply patch 12 in any case

http://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer3.1.2-patch12.zip

Richard

Ardilom,

If you can’t get the basic authentication working in VLC, it’s not going to work in the stream file. I tried your user/pass and VLC reports “Stream 0, Codec: H264” etc… But, I never see any video playing, then it asks me for the password again. This will have to be sorted out before you can expect to get it working with Wowza.

You’ll want to try to get the RTSP streaming working on your local network to eliminate firewall as an issue. Try turning off authentication and see if that helps. Consult your camera manufacturer/documentation.

Hi again Ardilom,

If the camera uses one of the codecs supported by Wowza you should be able to simply follow the RTSP Re-streaming tutorial: https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder

But, I’m not sure the codec is supported. I’m not able to open your link in VLC, so I can’t test it. VLC reports the codec, then it disappears, and the stream never plays. Wowza reports “Metadata appears to be bad.” With trackID=0, I get “Stream not found”.

Hi kapil1234,

What is your OS? What is your setup? All devices on the local network? It looks like it’s failing because of a port issue after the setup request. Or, it’s the authentication. Does the camera or Wowza require RTSP authentication? Turn off both if possible.

Most likely you need to forward outgoing udp ports 6970-9000 on your server. Or install the nf_conntrack_rtsp and nf_nat_rtsp Linux kernel modules.

If I try that URL I get almost the same error…

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12/trackID=0]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12/trackID=0]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12/trackID=0]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12/trackID=0]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12/trackID=0]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12/trackID=0]: 0:true

to connect to the camera try

username: user

password: 4321

if you go to this page http://housetek.dyndns.org:1024/web/ptz.html you can check the Camera live. the username/password is user/4321, I checked it twice.

rtsp://user:4321@housetek.dyndns.org:554/12

and

rtsp://user:4321@housetek.dyndns.org:554/12/trackID=0

these are the exact RTSP URLs that I have in my camera.stream file

Still not working?

Ardilom,

If you can’t get the basic authentication working in VLC, it’s not going to work in the stream file. I tried your user/pass and VLC reports “Stream 0, Codec: H264” etc… But, I never see any video playing, then it asks me for the password again. This will have to be sorted out before you can expect to get it working with Wowza.

You’ll want to try to get the RTSP streaming working on your local network to eliminate firewall as an issue. Try turning off authentication and see if that helps. Consult your camera manufacturer/documentation.

I made it work on VLC, but I am still getting the same error on Wowza.

Here is a picture of VLC working:

(the video is actually showing a grey curtain)

this is the URL that I used:

rtsp://user:4321@190.98.235.199:554/11

What is the next step to make it work with Wowza?

Does TrackID=0 have a meaning?

Ardilom.

hi

i have been facing same issue my camera is streaming in vlc but not through wowza

the same log i get and i also have transcoder on , i have successfully streamed with Tplink camera

but with wans view it is not working giving the logs as same as the above issue i have mention id password in rtsp url and had success there but still facing the following logs

INFO server comment - RTPSessionTracker.add[rtsp://192.168.1.15:554/11]: 1

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.p rocessResponse: SETUP: rtsp://192.168.1.15:554/11/trackID=0

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.o nClose

INFO server comment - RTPSessionTracker.remove[rtsp://192.168.1.15:554/11]: 0:true

is this the case that some cameras are not supported by wowza or something else please help

I`m having this same issue when using a Foscam FI8620

I have four cams running (Axis Mxxxx) without issue but when i try to add a fifth foscam it is not working (already running patch 6)

This is the content of the stream file

rtsp://10.4.85.5/11

I made some tcpdump an see response from the camera but no video. When using VLC on the local network it is working when using a Windows 7 VLC install

14:34:22.260566 IP (tos 0x0, ttl 64, id 50880, offset 0, flags [DF], proto TCP (6), length 60)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [S], cksum 0x2b6f (correct), seq 3212403914, win 5840, options [mss 1460,sackOK,TS val 304390666 ecr 0,nop,wscale 6], length 0
14:34:22.262132 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [S.], cksum 0x57d3 (correct), seq 1115588033, ack 3212403915, win 5792, options [mss 1460,sackOK,TS val 527224 ecr 304390666,nop,wscale 1], length 0
14:34:22.262158 IP (tos 0x0, ttl 64, id 50881, offset 0, flags [DF], proto TCP (6), length 52)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [.], cksum 0x9cdd (correct), seq 1, ack 1, win 92, options [nop,nop,TS val 304390666 ecr 527224], length 0
14:34:22.262865 IP (tos 0x0, ttl 64, id 50882, offset 0, flags [DF], proto TCP (6), length 220)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [P.], seq 1:169, ack 1, win 92, options [nop,nop,TS val 304390666 ecr 527224], length 168
14:34:22.264316 IP (tos 0x0, ttl 64, id 36538, offset 0, flags [DF], proto TCP (6), length 52)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [.], cksum 0x9141 (correct), seq 1, ack 169, win 2896, options [nop,nop,TS val 527224 ecr 304390666], length 0
14:34:22.275330 IP (tos 0x0, ttl 64, id 36540, offset 0, flags [DF], proto TCP (6), length 187)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [P.], seq 1:136, ack 169, win 2896, options [nop,nop,TS val 527226 ecr 304390666], length 135
14:34:22.275350 IP (tos 0x0, ttl 64, id 50883, offset 0, flags [DF], proto TCP (6), length 52)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [.], cksum 0x9b99 (correct), seq 169, ack 136, win 108, options [nop,nop,TS val 304390669 ecr 527226], length 0
14:34:22.275654 IP (tos 0x0, ttl 64, id 50884, offset 0, flags [DF], proto TCP (6), length 196)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [P.], seq 169:313, ack 136, win 108, options [nop,nop,TS val 304390669 ecr 527226], length 144
14:34:22.277150 IP (tos 0x0, ttl 64, id 36542, offset 0, flags [DF], proto TCP (6), length 540)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [P.], seq 136:624, ack 313, win 2896, options [nop,nop,TS val 527226 ecr 304390669], length 488
14:34:22.277515 IP (tos 0x0, ttl 64, id 50885, offset 0, flags [DF], proto TCP (6), length 251)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [P.], seq 313:512, ack 624, win 125, options [nop,nop,TS val 304390670 ecr 527226], length 199
14:34:22.279934 IP (tos 0x0, ttl 64, id 36544, offset 0, flags [DF], proto TCP (6), length 184)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [P.], seq 624:756, ack 512, win 2896, options [nop,nop,TS val 527226 ecr 304390670], length 132

When i look at the logile is see this message

WARN	server	comment	2012-07-26	14:50:14	-	-	-	-	-	10093.24	-	-	-	-	-	-	--	RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.

I really need this to be working this week because we need to stream the camera next week

Any solution for this problem?

I can watch the stream using VLC but now on Wowza!

IP Camera Foscam FI8602W

Wowza for Windows Version: 3.1.2.06 build1753

Stream url: rtsp://admin:12345@192.168.11.28:554/11

Wowza log:

2012-09-03 16:44:17 BRT comment server INFO 200 - RTPSessionTracker.add[rtsp://192.168.11.28:554/11]: 1 - - - 684.482

2012-09-03 16:44:17 BRT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose - - - 684.529

2012-09-03 16:44:17 BRT comment server INFO 200 - RTPSessionTracker.remove[rtsp://192.168.11.28:554/11]: 0:true - - - 684.529

Wowza Console:

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

INFO server comment - RTPSessionTracker.add[rtsp://192.168.11.28:554/11]: 1

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose

INFO server comment - RTPSessionTracker.remove[rtsp://192.168.11.28:554/11]: 0:true