Wowza Community

Cannot get video stream

Hi!

We are trying to use Wowza to get stream from our system. We use the following string to get the stream: “rtsp://X.X.X.X:554?stream=256&content=video&type=live&size=sif&framerate=10&username=anonymous&password=guest&bitrate=128000” and in VLC it works fine. But in Wowza we have errors in log:

"MediaCasterConnection.connect: Failed to connect[X.X.X.X:554] : org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: null].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:71)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:70)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect(RTPSessionDescriptionDataProviderBasicRTSPWorker.java:2074)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:336)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:206)|

ERROR server comment 2015-05-17 10:26:53 - - - - - 319508.151 - - - - - - - - "

Please help!

Thanks!

Hello there and welcome to the Wowza support forum.

Both errors are related to network connectivity problems, an inability to connect to the MediaCaster stream. Look at previous log lines for clues. I recommend installing Advanced Stream Monitor, which monitors and resets unhealthy streams and Server monitoring with JConsole.

Regards,

Salvadore

Please take a look at the How to specify per-stream settings in .stream files forum article which describes how to specify per-stream settings in .stream files to override those in the application configuration for the stream.

Please enable the rtspFilterUnknownTracks, rtpIgnoreProfileLevelId and rtpIgnoreSPropParameterSets. In some cases, for some IP cameras, these settings can help with the playback of RTMP streams. Let me know if that works in your case.

Salvadore

Hello!

I installed Advanced Stream Monitor but nothing has changed. I think it has a problem to access rtsp url because it’s not standard. But VLC plays it well. What can we do?

Thanks.

Hello!

In access.log file I see the following:

"IDT unpublish stream INFO 200 SVG.stream - defaultVHost MVG definst 20.169 - 80 null 127.0.0.1 rtsp - known 1701074998 245360 0 12 0 245360 0 SVG.stream - - - - - null null - null -

2015-05-18 13:54:55 IDT destroy stream INFO 200 SVG.stream - defaultVHost MVG definst 20.17 - 80 null 127.0.0.1 rtsp - known 1701074998 245360 0 12 0 245360 0 SVG.stream - - - - - null null - null -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPMediaCaster.Reconnector[293381489:MVG/definst:SVG.stream]: start: 13 - - - 3974.463 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect: rtsp://192.168.1.150:5540?stream=2&content=video&type=live&size=sif&framerate=10&bitrate=96000&host=localhost&port=9988&token=146675496&videoslot=2 - - - 3974.578 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPSessionTracker.add[rtsp://192.168.1.150:5540?stream=2&content=video&type=live&size=sif&framerate=10&bitrate=96000&host=localhost&port=9988&token=146675496&videoslot=2]: 1 - - - 3974.579 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.buildSDPData: sessionId:4066428944 sessionTimeout:0 - - - 3974.607 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPSessionDescriptionDataProviderBasic.getStreamInfo[MVG/definst]: RTSP/RTP re-streaming. Success, received SDP data. - - - 3974.829 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT create stream INFO 200 - - defaultVHost MVG definst 0.001 - 80 null 127.0.0.1 rtsp - known 1945703323 0 0 13 0 0 0 SVG.stream - - - - - null null - null -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPUDPTransport.bind[MVG/definst]: /0.0.0.0:9992 defaultVHost MVG definst 3974.833 - 80 null 127.0.0.1 rtsp - known 1945703323 0 0 - - - - - - - - - - - - - null -

2015-05-18 13:54:55 IDT comment server INFO 200 - UDPPortSharingManager.bind[MVG/definst:true]: 0.0.0.0/0.0.0.0:9992 defaultVHost MVG definst 3974.834 - 80 null 127.0.0.1 rtsp - known 1945703323 0 0 - - - - - - - - - - - - - null -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPUDPTransport.bind[MVG/definst]: /0.0.0.0:9993 defaultVHost MVG definst 3974.878 - 80 null 127.0.0.1 rtsp - known 1945703323 0 0 - - - - - - - - - - - - - null -

2015-05-18 13:54:55 IDT comment server INFO 200 - UDPPortSharingManager.bind[MVG/definst:true]: 0.0.0.0/0.0.0.0:9993 defaultVHost MVG definst 3974.89 - 80 null 127.0.0.1 rtsp - known 1945703323 0 0 - - - - - - - - - - - - - null -

2015-05-18 13:54:55 IDT publish stream INFO 200 SVG.stream - defaultVHost MVG definst 0.06 - 80 null 127.0.0.1 rtsp - known 1945703323 0 0 13 0 0 0 SVG.stream - - - - - null null - null -

2015-05-18 13:54:55 IDT comment server INFO 200 - RTPMediaCaster.Reconnector[293381489:MVG/definst:SVG.stream]: done: 13 - - - 3974.893 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT comment server INFO 200 - ModuleMediaCasterStreamMonitorAdvanced.getMonitor[MVG/definst] create:SVG.stream - - - 3974.964 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:54:55 IDT comment server INFO 200 - UDPTransport.firstPacket: bind:/0.0.0.0:9992 msg:/192.168.1.150:9000 - - - 3974.97 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - ModuleMediaCasterStreamMonitorAdvanced.onValidateMediaCaster[MVG/definst] Stream not healthy [stream startup timeout]: mp4:SVG.stream - - - 3994.97 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - ModuleMediaCasterStreamMonitorAdvanced.onValidateMediaCastersStop[MVG/definst] Reset stream [mediaCaster]: mp4:SVG.stream - - - 3994.97 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPMediaCaster.resetConnection[293381489:MVG/definst:SVG.stream]: - - - 3994.97 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPMediaCaster.closeRTPSession[293381489:MVG/definst:SVG.stream] - - - 3994.97 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.close closeSession - - - 3994.973 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose - - - 3994.974 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPSessionTracker.remove[rtsp://192.168.1.150:5540?stream=2&content=video&type=live&size=sif&framerate=10&bitrate=96000&host=localhost&port=9988&token=146675496&videoslot=2]: 0:true - - - 3994.976 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPUDPTransport.unbind[MVG/definst]: 0.0.0.0/0.0.0.0:9992 sent:0 recv:346 - - - 3994.975 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - UDPPortSharingManager.unbind[MVG/definst:true]: 0.0.0.0/0.0.0.0:9992 - - - 3994.988 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPUDPTransport.unbind[MVG/definst]: 0.0.0.0/0.0.0.0:9993 sent:0 recv:0 - - - 3994.99 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - UDPPortSharingManager.unbind[MVG/definst:true]: 0.0.0.0/0.0.0.0:9993 - - - 3994.993 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT unpublish stream INFO 200 SVG.stream - defaultVHost MVG definst 20.163 - 80 null 127.0.0.1 rtsp - known 1945703323 240105 0 13 0 240105 0 SVG.stream - - - - - null null - null -

2015-05-18 13:55:15 IDT destroy stream INFO 200 SVG.stream - defaultVHost MVG definst 20.164 - 80 null 127.0.0.1 rtsp - known 1945703323 240105 0 13 0 240105 0 SVG.stream - - - - - null null - null -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPMediaCaster.Reconnector[293381489:MVG/definst:SVG.stream]: start: 14 - - - 3994.995 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.doConnect: rtsp://192.168.1.150:5540?stream=2&content=video&type=live&size=sif&framerate=10&bitrate=96000&host=localhost&port=9988&token=146675496&videoslot=2 - - - 3995.099 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-05-18 13:55:15 IDT comment server INFO 200 - RTPSessionTracker.add[rtsp://192.168.1.150:5540?stream=2&content=video&type=live&size=sif&framerate=10&bitrate=96000&host=localhost&port=9988&token=146675496&videoslot=2]: 1 - - - 3995.107 - - - - - - - - - - - - - - - - - - - - - - - - -"

In the statistic of the stream I can see that the incoming traffic counter is coming up.