Wowza Community

Can't play .sdp file from network location

Hi,

Following my server setup:

  1. Mcomms transcode producing .sdp file (H264) of a live channel

  2. Wowza server to read that .sdp file and provide streams out in different format (rtsp, http, rtmp)

Note: they are 2 separate servers in the same network, there is also a network storage to share resources.

Problem:

Can’t play .sdp file from wowza server, neither by vlc player nor wowza server live streaming option.

Note 1: I’m pretty much sure all the settings are ok.

Note 2: .sdp file works if that is saved on transcode server’s local drive. it doesn’t work if saved in network drive or “content” folder (wowza)

Note 3: I’ve been able successfully streaming channel when both mcomms and wowza reside in the same server.

I guess i’m missing some permission ? Any idea? Servers are behind firewall, by the way.

Regards.

It sounds like network connection. Check in a browser on the mcomms machine:

http://[wowza-address]:1935

Should see Wowza version and build.

Run Wowza in standalone mode and look for publish events when you start the encoder.

Check the access logs for publish events. If there aren’t any, then the encoder is not reaching Wowza.

Richard

Does the machine have more than one network interface? If so, you might try setting the following property in the RTP/Properties container. Set [local-ip-address] to the IP address of the interface to which the stream is being sent:

<Property>
	<Name>rtspBindAddress</Name>
	<Value>[local-ip-address]</Value>
</Property>

You might also use a tool like tcpdump to try and debug what ports the packets are coming in on.

Charlie

i suspect the SDP needs changes now that they are on different servers.

I notice a connect to 127.0.0.1, which is loopback, perhaps this should now be a specific IP address.

I am guessing as my knowledge of SDP files etc is limited, however would be the first place to look given you have two servers now doing the job.

Shamrock

you are correct looks fine.

From the logs, seems Wowza can not connect.

Is it possible to put them both back on to one server and get the logs for say the initial 10 minutes of connecting ? this way allowing a comparison ?

Seems like a 127.0.0.1 is in there, so points to Wowza looking for a localhost connection, which may be a red herring, but worth checking.

Sorry not much help, but from your posts nothing out of place I can see.

Shamrock

i think the 127.0.0.1 is a red herring.

I admit got me foxed, there are some differences although I think not related.

Definately a Wowza support question, might even need someone on to the servers to get it resolved. It should work ( but you know that already ).

Shamrock

Hi,

yes, wowza server is reachable from mcomms machine:

http://[wowza-address]:554 from mcomms server: [Wowza Media Server 2 Subscription 2.1.2 build24878]

  • I’ve changed wowza streaming port 1935 to 554

About publish events: event log is being created (see below logs) when i published stream using stream manager…

===============================================

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPMediaCaster.create[1726118] - - - 2698.672 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPMediaCaster.init[1726118] - - - 2698.672 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPMediaCaster.Reconnector[1726118:live/definst:clubbing_ipad.sdp]: start: 1 - - - 2698.672 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - HTTPStreamManager.onHTTPRequest: Publish stream successfully started [live/definst]: flv:clubbing_ipad.sdp - - - 2698.687 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/definst]: C:/Program Files/Wowza Media Systems/Wowza Media Server 2.1.2/content/clubbing_ipad.sdp - - - 2698.781 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT create stream INFO 200 - - defaultVHost live definst 0.0 - 80 null 127.0.0.1 rtsp - known 1733740663 0 0 136 0 0 0 clubbing_ipad.sdp - - - - - null null - null -

2010-11-25 10:25:25 GMT publish stream INFO 200 clubbing_ipad.sdp - defaultVHost live definst 0.0 - 80 null 127.0.0.1 rtsp - known 1733740663 0 0 136 0 0 0 clubbing_ipad.sdp - - - - - null null - null -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: 0.0.0.0/0.0.0.0:554 - - - 2698.781 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: 0.0.0.0/0.0.0.0:555 - - - 2698.781 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: 0.0.0.0/0.0.0.0:556 - - - 2698.797 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: 0.0.0.0/0.0.0.0:557 - - - 2698.797 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:25 GMT comment server INFO 200 - RTPMediaCaster.Reconnector[1726118:live/definst:clubbing_ipad.sdp]: done: 1 - - - 2698.797 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:38 GMT comment server INFO 200 - RTPMediaCaster.resetConnection[1726118:live/definst:clubbing_ipad.sdp]: - - - 2711.75 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:38 GMT comment server INFO 200 - RTPMediaCaster.closeRTPSession[1726118:live/definst:clubbing_ipad.sdp] - - - 2711.75 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:38 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.187:554 - - - 2711.75 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:38 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.187:555 - - - 2711.75 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:38 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.187:556 - - - 2711.75 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-25 10:25:38 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.187:557 - - - 2711.75 - - - - - - - - - - - - - - - - - - - - - - - - -

===============================================

Transcoder is set up to send stream out on 217.146.95.187:554, clubbing_ipad.sdp contains details of that, i copied .sdp file into wowza content folder and published a live stream.

Seems to me wowza fails to read stream from transcoder IP:Port, there are no events on error.log file, but RTPMediaCaster.Reconnector keeps doing the same (connect - bind -unbind)

Thanks for looking into this issue.

Have a look at SDP file, looks perfect, correct IP:Port etc.

v=0

o=- 858010394162 1 IN IP4 217.146.95.187

s=Live Stream

i=Live Stream

c=IN IP4 217.146.95.187

t=0 0

a=tool:MComms Design

a=type:broadcast

a=control:*

a=range:npt=now-

a=x-qt-text-nam:Live Stream

a=x-qt-text-inf:Live Stream

m=video 554 RTP/AVP 96

b=AS:350

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1;profile-level-id=428016;sprop-parameter-sets=Z0KAFpZUBQHtgLRAAAD6AAAYajgAAFVwAAquf8Y4O0KFVA==,aM41IA==

a=framesize:96 640-480

a=cliprect:0,0,480,640

a=control:trackID=1

m=audio 556 RTP/AVP 97

b=AS:24

a=rtpmap:97 mpeg4-generic/24000/2

a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=131000000000000000000000000000000000000000000000

a=control:trackID=2

Hi Shamrock,

Here is what you wanted to look into: i’ve run both Wowza and Mcomms on the same server, and collected log:

===============================================

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPMediaCaster.create[8622256] - - - 749.859 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPMediaCaster.init[8622256] - - - 749.859 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPMediaCaster.Reconnector[8622256:live/definst:b4u.sdp]: start: 1 - - - 749.859 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - HTTPStreamManager.onHTTPRequest: Publish stream successfully started [live/definst]: flv:b4u.sdp - - - 749.859 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/definst]: C:/Program Files/Wowza Media Systems/Wowza Media Server 2.1.2/content/b4u.sdp - - - 749.953 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT create stream INFO 200 - - defaultVHost live definst 0.0 - 80 null 127.0.0.1 rtsp - known 1445640863 0 0 1 0 0 0 b4u.sdp - - - - - null null - null -

2010-11-30 15:35:35 GMT publish stream INFO 200 b4u.sdp - defaultVHost live definst 0.0 - 80 null 127.0.0.1 rtsp - known 1445640863 0 0 1 0 0 0 b4u.sdp - - - - - null null - null -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: /217.146.95.185:7000 - - - 749.969 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: /217.146.95.185:7001 - - - 749.969 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: /217.146.95.185:7002 - - - 749.969 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPUDPTransport.bind[live/definst]: /217.146.95.185:7003 - - - 749.969 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - RTPMediaCaster.Reconnector[8622256:live/definst:b4u.sdp]: done: 1 - - - 749.969 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - UDPTransport.firstPacket: /217.146.95.185:7002 - - - 749.984 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:35 GMT comment server INFO 200 - UDPTransport.firstPacket: /217.146.95.185:7000 - - - 750.016 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - RTCPHandler.sendFirstRTCPRR[11652,7001,/217.146.95.185:10101] - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.init[live/definst/b4u.sdp]: chunkDurationTarget: 10000 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - UDPTransport.firstPacket: /217.146.95.185:7001 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.init[live/definst/b4u.sdp]: chunkDurationTolerance: 500 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.init[live/definst/b4u.sdp]: audioGroupCount: 3 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.init[live/definst/b4u.sdp]: playlistChunkCount:3 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: cupertinostreamingpacketizer:b4u.sdp - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - CupertinoPacketHandler.startStream[live/definst/b4u.sdp] - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: smoothstreamingpacketizer:b4u.sdp - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.handlePacket: Video codec: H264 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerSmoothStreaming.startStream[live/definst/b4u.sdp] - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.handlePacket: Audio codec: AAC - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - RTCPHandler.sendFirstRTCPRR[2147507258,7003,/217.146.95.185:10103] - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - UDPTransport.firstPacket: /217.146.95.185:7003 - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.handlePacket: Video info[live/definst/b4u.sdp]: {H264CodecConfigInfo: profile: “Baseline”, level: 1.2, frameSize: 320x240} - - - 750.734 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:36 GMT comment server INFO 200 - LiveStreamPacketizerCupertino.handlePacket: Audio info[live/definst/b4u.sdp]: {AACFrame: size: 0, rate: 24000, channels: 2, samples: 1024, errorBitsAbsent: true, profileObjectType: “LC”} - - - 750.75 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:39 GMT comment server INFO 200 - LiveStreamPacketizerSmoothStreaming.flushPendingVideo: Bitrate[live/definst/b4u.sdp]: 239362 - - - 753.453 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:42 GMT comment server INFO 200 - LiveStreamPacketizerSmoothStreaming.flushPendingAudio: Bitrate[live/definst/b4u.sdp]: 24006 - - - 756.766 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:43 GMT comment server INFO 200 - RTPMediaCaster.resetConnection[8622256:live/definst:b4u.sdp]: - - - 758.172 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:43 GMT comment server INFO 200 - RTPMediaCaster.closeRTPSession[8622256:live/definst:b4u.sdp] - - - 758.172 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:43 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.185:7000 - - - 758.172 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:43 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.185:7001 - - - 758.172 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:43 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.185:7002 - - - 758.172 - - - - - - - - - - - - - - - - - - - - - - - - -

2010-11-30 15:35:43 GMT comment server INFO 200 - RTPUDPTransport.unbind[live/definst]: /217.146.95.185:7003 - - - 758.172 - - - - - - - - - - - - - - - - - - - - - - - - -

2

===============================================

As you said, “a 127.0.0.1 is in there”, in this case too when stream manager creates a live stream.

What i’m worried about we never gonna put transcoder and streamer on the same server, Wowza should be capable of pulling in streams from different machines (transcoders).

Hopping that isn’t something new, someone might have implemented this model. It would be nice to hear back from Wowza support.

I’ve been looking into other forum posts, didn’t find anything similar.

Regards,

Jitu

Guys, thanks for help and proper direction. No luck yet, tried with all possible ways. Contacted Mcomms support to make sure transcoder sending stream out correctly.

However, i’ve been successfull with MPEG-TS, where transcoder push streams out to wowza IP:Port. It uses UDP port 10000 so definitely ports are open.

Still a big question where the missing piece of the puzzle is. I’ll update if find any solution.

========================================

Charlie Good, Nov 30 10:38 am (CST):

So the problem is that when MComms and Wowza are running on different machine that wowza cannot pull the stream. It looks like the proper UDP ports are not open. It looks like you are using UDP ports 554-557. These are kind of odd ports for UDP traffic. I would suggest you switch the ports in the MComms encoder to use ports 10000-10003. Then be sure in all firewalls you open up UDP ports 10000-10003. Next, edit the SDP file and change this line:

c=IN IP4 217.146.95.187

to:

c=IN IP4 127.0.0.1

On the machine running Wowza install VLC. With the MComms encoder running and sending the stream to the server running Wowza you should be able to run VLC and open the SDP file and play the stream. Get this working first. With this working then Wowza should be able to play the stream.

So just to be clear. Right now it appears that the stream from the MComms encoder is not reaching the server running Wowza. RTP uses UDP for delivery. So you need to be sure the proper UDP ports are open on all firewalls and mapped in routers between the two machines.

BTW, Shamrock who answered your question is a Wowza expert. He was leading you in the proper direction.

Charlie

great iNFormation