Wowza keeps reconnecting to my ip-webcam due to slow connection?

i’m setting up a live webcam solution. The way the Axis IP-camera is connected to the network is a but odd. Webcam -> Ethernet Bridge router -> Wifi -> Router -> Internet -> Server.

De webcam is about 150 meters away from the router. The Wifi connection is working sometimes a bit slow.

When using VLC to test the RTSP stream it works fine. It takes a while building up but then the stream can be viewed without problems.

When setting up the stream in Wowza, i’m using the exact same RTSP url. The Wowza software keeps reconnecting. I’ve turned on extra logging and tried some extra timeout setting but without luck.

Application.xml

<MediaCaster>
                        <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
                        <Properties>
                        <Name>forceInterleaved</Name>
                        <Value>true</Value>
                        <Type>Boolean</Type>
                          <Property>
                           <Name>debugRTSPSession</Name>
                           <Value>true</Value>
                           <Type>Boolean</Type>
                          </Property>
                          <Property>
                           <Name>rtspConnectionTimeout</Name>
                           <Value>10000</Value>
                           <Type>Integer</Type>
                          </Property>
                          <Property>
                           <Name>rtspSessionTimeout</Name>
                           <Value>15000</Value>
                           <Type>Integer</Type>
                          </Property>
                        </Properties>
                </MediaCaster>

Logging:

2011-07-17	19:47:26	CEST	comment	server	INFO	200	-	Wowza Media Server is started!	-	3.418	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:47	CEST	app-start	application	INFO	200	_definst_	live/_definst_	24.975	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:47	CEST	comment	server	INFO	200	-	RTPMediaCaster.create[951962035]	24.98	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:47	CEST	comment	server	INFO	200	-	RTPMediaCaster.init[951962035]	-	24.981	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:47	CEST	comment	server	INFO	200	-	RTPMediaCaster.Reconnector[951962035:live/_definst_:camera.stream]: start: 1	-	-	-	25.059	-	-	-	-	-	-	-
2011-07-17	19:47:47	CEST	comment	server	INFO	200	-	HTTPStreamManager.onHTTPRequest: Publish stream successfully started [live/_definst_]: flv:camera.stream	-	-	-	25.108	-	-	-	-
2011-07-17	19:47:47	CEST	comment	server	INFO	200	-	RTPSessionTracker.add[rtsp://camera.mydomain.com:554/axis-media/media.amp]: 1	-	-	-	25.224	-	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://camera.mydomain.com:554/axis-media/media.amp/trackID=1	-	25.306	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.buildSDPData: sessionId:4D6C875E sessionTimeout:60000	-	-	-	25.528	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/_definst_]: RTSP/RTP re-streaming. Success, received SDP data.	-	-	-	25.725	-	-
2011-07-17	19:47:48	CEST	create	stream	INFO	200	-	-	_defaultVHost_	live	_definst0.0060	-	80	null	127.0.0.1	rtsp	-	known	1637375559	0	0	1	0	camera.stream	-	-	-	-	-	null	null	-	null	-
2011-07-17	19:47:48	CEST	publish	stream	INFO	200	camera.stream	-	_defaultVHost_	live	_definst_	0.039	-	80	null	127.0.0.1	rtsp	-	known	1637375559	0	0	camera.stream	-	-	-	-	-	null	null	-	null	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPUDPTransport.bind[live/_definst_]: 0.0.0.0/0.0.0.0:6970	-	-	-	25.788	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPUDPTransport.bind[live/_definst_]: 0.0.0.0/0.0.0.0:6971	-	-	-	25.79	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.sessionStart: PLAY: rtsp://camera.mydomain.com:554/axis-media/media.amp	-	-	-	25.799	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: PLAY: rtsp://camera.mydomain.com:554/axis-media/media.amp/	-	-	25.799	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:47:48	CEST	comment	server	INFO	200	-	RTPMediaCaster.Reconnector[951962035:live/_definst_:camera.stream]: done: 1	-	-	-	25.799	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPMediaCaster.streamTimeout[951962035:live/_definst_:camera.stream]: timeout:12000 diff:12048 reason:101	-	-	-	38.03	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPMediaCaster.resetConnection[951962035:live/_definst_:camera.stream]: 	-	-	-	38.03	-	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPMediaCaster.closeRTPSession[951962035:live/_definst_:camera.stream]	-	-	-	38.03	-	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.close closeSession	-	-	-	38.031	-	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose	-	-	-	38.033	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPSessionTracker.remove[rtsp://camera.mydomain.com:554/axis-media/media.amp]: 0:true	-	-	-	38.033	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: 0.0.0.0/0.0.0.0:6970	-	-	-	38.034	-	-	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: 0.0.0.0/0.0.0.0:6971	-	-	-	38.035	-	-	-	-	-	-	-	-	-
2011-07-17	19:48:00	CEST	unpublish	stream	INFO	200	camera.stream	-	_defaultVHost_	live	_definst_	12.3	-	80	null	127.0.0.1	rtsp	-	known	1637375559	0	camera.stream	-	-	-	-	-	null	null	-	null	-
2011-07-17	19:48:00	CEST	destroy	stream	INFO	200	camera.stream	-	_defaultVHost_	live	_definst_	12.301	-	80	null	127.0.0.1	rtsp	-	known	1637375559	0	0	camera.stream	-	-	-	-	-	null	null	-	null	-
2011-07-17	19:48:00	CEST	comment	server	INFO	200	-	RTPMediaCaster.Reconnector[951962035:live/_definst_:camera.stream]: start: 2	-	-	-	38.037	-	-	-	-	-	-	-

Logging (debug):

2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	*** RTSPMessageReceive ***
RTSP/1.0 200 OK
response: OK
protocol: RTSP/1.0
transport: RTP/AVP;unicast;client_port=6988-6989;server_port=50696-50697;ssrc=18197917;mode="PLAY"
session: 2300D266; timeout=60
cseq: 4
status: 200
date: Sun, 17 Jul 2011 17:21:24 GMT
uri: RTSP/1.0 200 OK
	-	-	-	145.003	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: command:SETUP response:RTSP/1.0 200 OK status:200 handled:false	-	-	-	145.004	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	v=0
o=- 1310923284276398 1310923284276398 IN IP4 camera.mydomain.com
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=control:*
a=range:npt=0.000000-
m=video 6988 RTP/AVP 96
a=ssrc:404322583 stream
b=AS:50000
a=framerate:10.0
a=control:trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-parameter-sets=Z0IAKeKQPBP94C3AQEBpB4kRUA==,aM48gA==
	-	-	-	145.004	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.buildSDPData: sessionId:2300D266 sessionTimeout:60000	-	-	-	145.004	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/_definst_]: RTSP/RTP re-streaming. Success, received SDP data.	-	-	-	145.176	-	-
2011-07-17	19:21:24	CEST	create	stream	INFO	200	-	-	_defaultVHost_	live	_definst0.0	-	80	null	127.0.0.1	rtsp	-	known	1665295026	0	0	10	0	camera.stream	-	-	-	-	-	null	null	-	null	-
2011-07-17	19:21:24	CEST	publish	stream	INFO	200	camera.stream	-	_defaultVHost_	live	_definst_	0.0010	-	80	null	127.0.0.1	rtsp	-	known	1665295026	0	0	10	0	0	0	camera.stream	-	-	-	-	-	null	null	-	null	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPUDPTransport.bind[live/_definst_]: 0.0.0.0/0.0.0.0:6988	-	-	-	145.179	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPUDPTransport.bind[live/_definst_]: 0.0.0.0/0.0.0.0:6989	-	-	-	145.18	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.sessionStart: PLAY: rtsp://camera.mydomain.com:554/axis-media/media.amp	-	-	-	145.18	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: PLAY: rtsp://camera.mydomain.com:554/axis-media/media.amp/	-	-	145.181	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.send: command:PLAY
PLAY rtsp://camera.mydomain.com:554/axis-media/media.amp/ RTSP/1.0
Session: 2300D266
CSeq: 5
Range: npt=0.000-
	-	-	-	145.181	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPMediaCaster.Reconnector[819349464:live/_definst_:camera.stream]: done: 10	-	-	-	145.181	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	*** RTSPMessageReceive ***
RTSP/1.0 401 Unauthorized
response: Unauthorized
protocol: RTSP/1.0
www-authenticate: Digest realm="AXIS_00408CB5E42E", nonce="00014eebY724112001edd78d7c63deee9d52813f128756", stale=FALSE
www-authenticate: Basic realm="AXIS_00408CB5E42E"
session: 2300D266
cseq: 5
status: 401
date: Sun, 17 Jul 2011 17:21:24 GMT
uri: RTSP/1.0 401 Unauthorized
	-	-	-	145.219	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: command:PLAY response:RTSP/1.0 401 Unauthorized status:401 handled:false	-	-	145.219	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.send: command:PLAY
PLAY rtsp://camera.mydomain.com:554/axis-media/media.amp/ RTSP/1.0
Session: 2300D266
CSeq: 6
Range: npt=0.000-
User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Developer 2.2.4 build27452)
Authorization: Digest username="drusus", realm="AXIS_00408CB5E42E", nonce="00014eebY724112001edd78d7c63deee9d52813f128756", uri="/axis-media/media.amp", response="26a2bb1e20bb38173967e7dc14c0cd82"
	-	-	-	145.219	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	*** RTSPMessageReceive ***
RTSP/1.0 200 OK
response: OK
protocol: RTSP/1.0
range: npt=0.441325-
session: 2300D266
cseq: 6
status: 200
date: Sun, 17 Jul 2011 17:21:24 GMT
uri: RTSP/1.0 200 OK
rtp-info: url=rtsp://camera.mydomain.com:554/axis-media/media.amp/trackID=1;seq=55988;rtptime=285453272
	-	-	-	145.42	-	-	-	-	-	-	-	-	-	-	-
2011-07-17	19:21:24	CEST	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: command:PLAY response:RTSP/1.0 200 OK status:200 handled:false	-	-	-	145.42	-

Can someone please help me out? Is the connection not good enough for Wowza?

If needed i can give example urls you guys can check.

Regards,

Rick

Still struggling with this problem. I’m now at the point of buying two “Engenius 5Ghz” accesspoints for outdoor use to make sure the wifi connection is ok. Or is there a way to tune Wowza somehow? Afterall VLC-player has no problem playing my RTSP stream. It takes a while for connecting but it works.

Check my RTSP-stream -> rtsp://wowza:test@94.214.125.173:554/axis-media/media.amp

Running this url in VLC: do cause some timeouts now and then. Apparently VLC is not so picky about that. The Axis log shows this: axis-00408cb5e42e monolith[484]: RTSP session D9310830 timed out.

Regards,

Rick

What is the fundamental problem? Is it that the video stops when played in a flash client, forcing the user to refresh their browser?

As you can see I was able to play your stream in Wowza just fine:

Just follow the RTSP camera tutorial: How-to-re-stream-video-from-an-IP-camera-RTSP-RTP-re-streaming

So, what’s the problem? Is it that the video stops when played in a flash client?

The problem is that when i start my (live) stream in the “Stream Manager”. Wowza keeps generating logging (see above) and further does nothing.

It could be happening because of a bad (wifi) netwerk connection. Before i want to invest in better equipment i wonder if Wowza can be tuned somehow? (timeouts, etc…)

Any idea’s?

As you can see I was able to play your stream in Wowza just fine:

Just follow the RTSP camera tutorial: How-to-re-stream-video-from-an-IP-camera-RTSP-RTP-re-streaming

Arggghh… can’t believe it… Just checked the config_files again and changed NOTHING… Now suddenly it’s working! Restarted the server a few times and tried again. Yes, it’s fine now. Really don’t know what the problem was.

Thanks anyway!