Using VLC with Wowza Pro (native RTP)

I have changed the post to use keyint of 30.

Charlie

First, be sure you are running the latest version of Wowza Pro. Install Wowza Pro 1.7.0.

Second, follow the note in the first post and turn on debug logging and send the debug logs to me and I will have a look at them.

Charlie

You need to get the SDP data to Wowza Pro. It only changes if the audio config changes. So once you settle on a set of audio settings (sample-rate, port, bitrate…) then you just need to copy the .sdp file generated by VLC to the content folder of Wowza Pro.

Charlie

255 is the max. Usually 127 is a good value.

Charlie

No need to adjust the flush time.

Charlie

The Streams/StreamType name in conf/rtplive/Application.xml should be rtp-live not rtplive.

Charlie

What exactly are you trying to accomplish? Why do you need the same stream sent to the server twice?

Charlie

These two SDP files are using the same video/audio UDP ports. This is not possible with Wowza Media Server. Each stream must use a unique set of ports. In the VLC command line you can specify the ports to be used for streaming in the RTP destination part. Remember that each stream is going to use four ports (video: RTP, RTCP and audio: RTP, RTCP). The transport part of the vlc command needs to look like this:

stream1:

rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp= file://%WMSCONFIG_HOME%/content/stream1.sdp}

stream2:

rtp{dst=127.0.0.1,port-video=10004,port-audio=10006,sdp= file://%WMSCONFIG_HOME%/content/stream2.sdp}

Charlie

VLC is pretty unstable as far as encoding goes. I am pretty sure there are some AV sync issues with VLC when using MPEG-TS (which is what your command line suggests). I am not sure exactly what you are replacing but I would take a look at Wirecast if you are looking for a good software encoder.

Charlie

It should work fine through NAT as long as you have all the right ports opened at mapped. If you are doing RTSP/RTP map UDP ports 6970-9999 to the ip address of the server running Wowza Media Server. If you are doing it with SDP file then be sure the port range listed in the SDP file mapped properly.

Charlie

So what problems are you having? As long as you set the destination ip address in the VLC command line to the server running Wowza Media Server and open all the UDP ports (I believe you need UDP ports 10000-10003) you should be all set. As long as you don’t change encoder params in the command line you can generate the SDP file once, copy it to the Wowza Media Server [install-dir]/content directory.

Charlie

Great, glad to hear you have it working.

Charlie

VLC is very buggy. I strongly suggest another encoder such as Telestream Wirecast.

Charlie

I updated the first post in this thread based on my experience with VLC media player 1.0.2 Goldeneye.

Charlie

I am not surprised. It is tricky to get the AAC timecode right. There is a good chance that VLC is not doing this correctly. There is no way for us to fix this on our end. It needs to be fixed in the encoder.

Charlie

Change it to:

vlc -vvv -I rc mms://xxxxxxxx/xxxxx "#transcode{venc=x264{keyint=60},vcodec=x264,vb=50 0,scale=1,acodec=mp4a,ab=32,channels=2,samplerate= 22050}:rtp{dst=wowzamsIP,port-video=10000,port-audio=10002,sdp=file:"file://C:/vlc.sdp"}"

Charlie

You will need to copy the sdp file from the machine running vlc to the [install-dir]/content folder of the machine running Wowza. You only need to copy this file if/when encoding params change. So as long as these things don’t change then you can copy it over once and not worry about it.

Charlie

Wowza 2.0 can accept incoming MP3 streams over RTP. It has been tested with VLC. Wowza 1.7.x does not support MP3.

Charlie

Please don’t double post.

Charlie

You will need to work with the VLC team to work this out. We cannot support VLC.

Charlie