Can't receive multicast UDP/RTP stream

Hello,

I’ve been trying to set the Wowza media server for live re-destribution of 10 channels to my webapp. I’ve gone through the documentation and forum questions, but didn’t solve the problem. The problem is that i cannot receive the multicast stream.

First i created sdp file and i bind the multicast address.

v=0^M
s=Unnamed^M
c=IN IP4 234.168.214.3
m=video 5006 RTP/AVP 96^M
a=rtpmap:96 H264/90000^M
a=fmtp:96 packetization-mode=1;profile-level-id=420016;sprop-parameter-sets=Z0IAFukBQHsg,aM4BDyA=;^M

Wowza reads the sdp file but keeps restarting all the time. The output is:

INFO server comment - RTPMediaCaster.Reconnector[562938290:live/_definst_:teststream]: start: 1
INFO server comment - VHost.startStartupStreams: Stream successfully started [live/_definst_]: mp4:teststream
INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/_definst_]: /usr/local/WowzaStreamingEngine/content/teststream
INFO stream create - -
INFO server comment - MulticastTransport.bind[live/_definst_]: 234.168.214.3/5006
INFO stream publish infel -
INFO server comment - MulticastTransport.bind[live/_definst_]: 234.168.214.3/5007
INFO server comment - RTPMediaCaster.Reconnector[562938290:live/_definst_:teststream]: done: 1
INFO server comment - MediaCasterStreamValidator.addMonitor[live/_definst_/teststream]
INFO server comment - MediaCasterStreamValidator.onValidateMediaCaster[live/_definst_] Stream not healthy [stream startup timeout]: mp4:teststream
INFO server comment - MediaCasterStreamValidator.onValidateMediaCastersStop[live/_definst_] Reset stream [mediaCaster]: mp4:teststream
INFO server comment - RTPMediaCaster.resetConnection[562938290:live/_definst_:teststream]: 
INFO server comment - RTPMediaCaster.closeRTPSession[562938290:live/_definst_:teststream]
INFO server comment - MulticastTransport.unbind[live/_definst_]: 234.168.214.3/5006 sent:0 recv:0
INFO server comment - MulticastTransport.unbind[live/_definst_]: 234.168.214.3/5007 sent:0 recv:0

In the Application.xml file the AppType is live.

Next i tried with stream files. In my teststream.stream file the url address is: rtp://234.168.214.3:5006

I connect to the stream, but the status is:Waiting for the stream and doesn’t change to Active. The Wowza output is: SDP file missing: /usr/local/WowzaStreamingEngine/content/rtp://234.168.214.3:5006

But when i changed the protocol from the encoder to UDP, and the url in the teststream.stream to udp://234.168.214.3:6971, the status is Active and the output is:

INFO server comment - RTPMediaCaster.create[775949951]
INFO server comment - RTPMediaCaster.init[775949951]
INFO server comment - RTPMediaCaster.Reconnector[775949951:live/_definst_:teststream.stream]: start: 1
INFO server comment - REST API: Stream File connected: teststream.stream
INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/_definst_]: URI: udp://234.168.214.3:6971
INFO stream create - -
INFO server comment - RTPDePacketizerMPEGTS.init: Drop incomplete video frames
INFO server comment - UDPPortSharingManager.bind[live/_definst_:true]: 234.168.214.3/234.168.214.3:6971
INFO server comment - MulticastTransport.bind[live/_definst_]: 234.168.214.3/6971
INFO stream publish teststream.stream -
INFO server comment - RTPMediaCaster.Reconnector[775949951:live/_definst_:teststream.stream]: done: 1
INFO server comment - MediaCasterStreamValidator.addMonitor[live/_definst_/teststream.stream]
INFO server comment - MediaCasterStreamValidator.onValidateMediaCaster[live/_definst_] Stream not healthy [stream startup timeout]: mp4:teststream.stream
INFO server comment - MediaCasterStreamValidator.onValidateMediaCastersStop[live/_definst_] Reset stream [mediaCaster]: mp4:teststream.stream
INFO server comment - RTPMediaCaster.resetConnection[775949951:live/_definst_:teststream.stream]: 
INFO server comment - RTPMediaCaster.closeRTPSession[775949951:live/_definst_:teststream.stream]
INFO server comment - MulticastTransport.unbind[live/_definst_]: 234.168.214.3/6971 sent:0 recv:0
INFO server comment - UDPPortSharingManager.unbind[live/_definst_:true]: 234.168.214.3/234.168.214.3:6971

… and keeps restarting.

In the Application.xml file in the / tag i added the following:

rtpDePacketizerWrapper

com.wowza.wms.rtp.depacketizer.RTPDePacketizerWrapperReChunkMPEGTS

… but this didn’t change anything.

I can receive the stream with vlc with no problems through RTP. I also checked with Wireshark and i can see the packets floating from source to destination address.

Please for advice,

Regards

Hi!

the workaround may be to use ffmpeg as a proxy between your multicast streams and wowza.

if you’re interested then please contact me at roman@dynamicstreaming.net

Hi,

As long as the codecs are supported, and the required multicast ports are open in the firewall (if applicable), Wowza should be perfectly capable of receiving the multicast stream. But it’s difficult to be certain about this before we’ve analyzed this. You may contact me by email if you want us to take a look at the configuration.

Kind Regards,

Karel Boek

karel.boek@raskenlund.com

Raskenlund

www.raskenlund.com