Wowza Community

Using VLC with Wowza Pro (native RTP)

I do same process u told but there is an error coming i don’t understand what is that and why is that and 2nd i don’t understand how to make vlc.sdp file plz help me what to do ?

its very long script runs i show last few lines hope u get it

[0xe2b144] main input debug: TIMER input launching for '1.7.2/content/Extremist.

m4v’ : 79.000 ms - Total 79.000 ms / 1 intvls (Avg 79.000 ms)

[0xe30c04] main playlist debug: changing item without a request (current 7/8)

[0xe30c04] main playlist debug: nothing to play

I am new to flash video servers but I need to learn quick! (isn’t that always the way?)

I want to try a test setup where VLC streams a web stream to the wowza server and then I view this in a flash player. I know it’s more complicated than it needs to be but I’m just trying to prove the concept at the moment.

When I try the above code with the dshow code replaced with the URL VLC simply crashes (badly!) Can you offer any advice?

Forgot to mention, the VLC and wowza are on different machines. Is it possible to get wowza to retransmit a unicast stream?

plumber in temecula

Hello.

I need execute this code but in remote server

vlc -vvv -I rc dshow:// :dshow-vdev=“QuickCam for Notebooks Pro” :dshow-adev=“Logitech Mic (Notebooks Pro)” :dshow-size=“320x240” --sout “#transcode{venc=x264{keyint=60},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp=file://%WMSCONFIG_HOME%/content/vlc.sdp}”

How should I write sdp? (rtp{dst=REMOTE_SERVER,port-video=10000,portaudio=10002,sdp=REMOTE_SDP}")

Thanks.

http://url/url/.asx does not seem like a valid url. I would first make sure you can playback what ever content you are trying to transcode. So you should be able to use VLC to the playback the url using File-> Open Network Stream… Once VLC is able to playback the content then work on transcoding it.

Charlie

I have a feeling that the sdp file location is causing problems. What you have specified:

file://172.16.0.15/c$/vlc.sdp

Does not seem like a valid file url. You need to save this file to the machine running Wowza Pro in the [install-dir]/content folder of the Wowza Pro installation.

The rest of the command line looks ok to me.

BTW, your current command line is transcoding to H.264. We only support H.264 over RTP. We do not support VP6 or Sorenson using this method.

Charlie

Yes, they need to be in the same network. VLC needs to be able to save the SDP file to the server running Wowza Pro. I think the current url you are using is not right at all. But I am not sure how to instruct you on how to fix it.

Another option is to have VLC make the sdp information available at a url. The format is something like this:

sdp=“http://[vlc-ip-address]:9000/streamtest/mystream.sdp”

Where [vlc-ip-address] is the ip address of the machine running VLC.

The you would use a stream name in Flash of:

rtplive:http://[vlc-ip-address]:9000/streamtest/mystream.sdp

Charlie

It is the same instructions just use the external ip addresses for all three items.

Charlie

VLC is a tricky beast. It usually requires a lot of experimentation to get right.

When you enter the .sdp address into a web browser from the machine running Wowza Pro, what do you get in the browser?

Follow these instructions and send me debug log information. It might lead to more information. Also send me a list of VLC command lines that you have tried and the results:

Note: If you experience problems getting either the audio or video to play through Flash, double check the version number of the Flash player (Flash player version 9.0.115.0 or above is required). If you still have problems, turn on Wowza Pro debug logging (edit [install-dir]/conf/log4j.properties and change the log4j.rootCategory on the first line from INFO to DEBUG), try the encoder several more times, zip up and send your [install-dir]/logs folder along with screen shots of the encoder setup screens and the LiveVideoStreaming player screen and send a detailed description of your problem to support@wowza.com.

Charlie

Instead of using the destination address 127.0.0.1 try using the actual ip address of the machine. See if that makes a difference.

Charlie

This looks like a very old Application.xml file. I suggest you upgrade to Wowza Pro 1.5.3. the AVSyncMethod is part of the default Application.xml file in 1.5.3.

Charlie

It might be all the spaces in your path names. Try:

vlc -vvv “C:/Program Files/Wowza Media Systems/Wowza Media Server Pro 1.5.3/content/Extremists.flv” --sout “#transcode{venc=x264,vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=32,channels=2,samplerate=22100}:rtp{dst=127.0.0.1,sdp=file://%WMSCONFIG_HOME%/content/vlc.sdp}”

Charlie

Also, if VLC is running on a different machine other than the machine Wowza Pro then 127.0.0.1 will not work. This address is the local ip address. You need to find the actual ip address for the machine. Try one of the following command:

ipconfig - Windows

ifconfig - Linux

Charlie

Try this:

Origin:

Setup application named rtplive with streamType rtp-live as you did for direct testing.

Edge:

Setup application liverepeater with stream type live-repeater-edge and set the OriginUrl to rtmp://[origin-ip]/rtplive. Use the following info when connecting to the edge:

Server: rtmp://[edge-ip]/liverepeater

Stream: sdp-filename

Should work.

Charlie

Thanks for the update. Glad to hear you have it working.

Charlie

I really don’t know. VLC has not proven to be super stable. Others have had problems on Linux.

Charlie

I am not sure I completely understand what is and isn’t working. Can you post a section of the log file where it was attempting to connect to the SDP data over HTTP. Are you sure the stream is in the right format for Flash?

Charlie

If you use the command line switch:

sdp="http://[vlc-ip-address]:9000/streamtest/mystream.sdp"

Then the SDP file will be host by the VLC process at the address:

http://[vlc-ip-address]:9000/streamtest/mystream.sdp

Where [vlc-ip-address] needs to be the ip address of the server running VLC. You can use any port number that you like. I just picked 9000 for this example. With this in place as long as you open any firewalls between the server running Wowza Pro and server running VLC to the port that you specify then you should be able to use the stream name:

http://[vlc-ip-address]:9000/streamtest/mystream.sdp

To play the stream being encoded by VLC.

Charlie

VLC is sending the UDP packets directly to the server running Wowza Pro. So as long as you setup VLC to send the packets to the external address for the server running Wowza Pro then Wowza Pro will get the packets. Copying and modifying the SDP information seems like a reasonable way to get the information to Wowza Pro. If you look at the first post in this thread Wowza Pro can also get the SDP information from an HTTP url so you could host the SDP data at a web server as well. Either will work.

Charlie

Take a look at Vara Software’s Wirecast or On2 Flix Live.

Charlie

It is more likely that VLC has stopped sending packets to Wowza Pro then what you are suggesting. As I pointed out in the initial post, we have found VLC to be somewhat unreliable. We have also noticed that each build of VLC fixes some problems and introduces new ones. So the instructions in the initial post may no longer work with the most recent build. There may also be varying platform issues. I realize this does not help you nail down this issue.

Charlie