Using VLC with Wowza Pro (native RTP)

hi Richard,

thanks for your quick response. I did not.

So I just enabled both of them, and restart wowza, but everything is still the same.

sorry Richard, I was using the default authorization, it was tcp actually,

when I changed it to udp, it works now. Thank you so much.

I install vlc-8.0.6 on ubuntu server 8.04 (and tested on ubuntu server 8.10 with vlc-0.9.4). When I stream to Wowza, video is verry good, but no audio :confused:.

I use transcode :

#transcode{venc=x264{keyint=30},vcodec=x264,vb=650,scale=1,acodec=mp4a,ab=96,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,sdp=file:///usr/local/WowzaMediaServerPro/content/test.sdp}

and :

#transcode{venc=x264{keyint=30},vcodec=x264,vb=650,scale=1,acodec=mpga,ab=96,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,sdp=file:///usr/local/WowzaMediaServerPro/content/test.sdp}

but same result :(.

Please help me. Thanks :slight_smile:

Thanks your fast reply!

I think I know the reason. I use vlc-0.9.8a on windows xp, it’s ok (test with wowza pro 1.7.0) with transcode:

#transcode{venc=x264{keyint=30},vcodec=x264,vb=650,scale=1,acodec=mp4a,ab=96,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,sdp=file://%WMSCONFIG_HOME%/content/test.sdp}

And on Ubuntu, vlc said: “ffmpeg encoder error: cannot find encoder MPEG AAC Audio” :). I install vlc over internet “aptitude install vlc” and it lacks aac transcode.

Using VLC 1.0.3

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

will not output me an sdp file. also with C:/vlc.sdp

Any Ideas?

regrds

Francois

Thanks to you but doesn’t changed anything. Tested on 2 Systems 3 different VLC Version. It opens me evertime the mms stream in VLC but the sdp file will not be written to any location.

I think i have to look around for another solution to restream an mms stream.

kindest regards

Francois

Not for free unfortunately.

I personally prefer the Adobe Media Encoder… but you need to own their Flash or Premier products to get that. (not sure if any of their other apps package that… got mine with Flash). It’s really really good for encoding files to Flash. Does an awesome job, espically with de-interlacing.

For live encodes Flash Media Live Encoder is free from Adobe.

Again all this doesn’t really help if you’re trying to turn something around from another source. (like transport stream inbound and trying to convert to something that Wowza can handle). For some of the stuff I’ve been playing with I’ve given up on doing it all in one piece of software. I now playback the video normally (say from a satellite reciever) then re-encode live using FMLE & a capture board. VLC would be good if there was a way to plugin someone elses codec (like Mainconcept AVC or something like that).

–Chris

Write the file once locally then copy that file upto the server.

The file should be the same for all future instances unless you change something on the encode end.

–chris

Sorry I wasn’t clear. The SDP file is what I was talking about writing once.

That is just a descriptor file for the stream. Do VLC once, write the file locally (where VLC is running)… copy the file to the Wowza server and then anytime you use those exact live stream parameters that SDP file will still be valid.

However, if you change any stream parameters (ip address, rates, etc) you’ll need a new SDP file uploaded.

You don’t actually ‘stream’ SDP files. :slight_smile:

Heck, if you want you could hand-create the SDP file and leave it on the server and edit it by hand as needed. But that’s a bunch of work. :slight_smile:

–Chris

Hi Charlie,

I’m having a similar problem as Deckard:

I have my encoder (a VLC player) in one host and the WMS in another, both in the same LAN. When I try to play the streaming I can see a lot of “packetLoss” in my log and obviously the audio and video in the flash player is very bad.

This is the VLC sout line that I’m using:

#transcode{vcodec=h264,vb=330,scale=1,acodec=mp4a,ab=32,channels=2}:rtp{dst=200.40.40.34,sdp=http://200.40.40.233:7777/tnu.sdp,port-audio=7000,port-video=7002,port=7004,ttl=127}

Here is the WMS log:

http://goalbit2.adinettv.com.uy/WowzaMediaServerPro.log

I tried changing the value of rtpDePacketizerPacketSorterBufferTime, but it didn’t work.

Thank you.

You are right, the problem was in my network, one of the links was configured as full duplex and the other as half duplex (and this was generating the losses). Now I put it both in full duplex mode and all works perfect.

Thank you!

Daniel

I currently trying this setting :

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,nocabac,level=3.0,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp= file://%WMSCONFIG_HOME%/content/vlc.sdp}”

I would like to be compatible with the Iphone. Unfortunatly it produces a lip sync drift over time like this one explained in this post https://www.wowza.com/forums/showthread.php?t=5374

I am using Wowza Media Server 2 Advanced Preview 7 with all patches.

Doh! Got it. It is working now. A million times thank you! The interesting thing is the stream seems to be moving in slow motion and stops from time to time. All three devices are on the same LAN. I’m wondering if this is a function of my vlc command line or modifications that need to be made to the Application.xml file.

Does anyone have success with vlc 1.0 final on windows? 0.8.6 works but on 1.0 it crashes.

RC4 works here …

rc4 uses extremely high cpu.

0.8.6 uses %15 on my quad core but rc4 uses %80-90.

only problem I have with 0.8.6 if it remains open 12-13 hours. it closes itself or crashes. I hope it is done in 1.0 final.

but I couldnt handle to run my command line code on 1.0. it does not encode.

Hello all,

just tried to make the example work, but i think i am missing something here…

i have a vlc(0.86i) machine on 192.168.10.120 and wowza (installed from WowzaMediaServerPro-1.7.0.deb.bin) on an VMWare 192.169.10.143

created the rtplive dir, changed Streams/StreamType to rtp-live and change RTP/AVSyncMethod method to systemclock.

if i start vlc with

C:\Program Files\VideoLAN\VLC_8>vlc -vvv -I rc dshow:// :dshow-vdev=“USB20 PC Camera-268” :dshow-adev=“SigmaTel Audio” :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=192.168.10.143,sdp=http://192.168.10.120:9000/streamtest/mystream.sdp}”

the data starts flowing (i see trafic to the VM)

if i run the nativertp.swf with:

server: rtmp://192.168.10.143/rtplive

stream: rtplive:http://192.168.10.120:9000/streamtest/mystream.sdp

flash says it’s connected succesfully. But don’t get any picture in flash, and wowza keeps saying:

ERROR server comment - MediaReaderFactory: getInstance: Missing definition for rtplive

can anybody tell me how to fix this?

thanks… i had that… but while dubble checking, i found out my Application.xml wasn’t in the conf dir, but in the application dir :frowning:

now it works great… thanks verry much

Hi Servus01,

Please send an email to sales [at] WowzaMedia [dot] com if you are interested in pursuing the purchased of a third party commercial solution to transcoding an MMS stream. I will reply with some suggestions to test.

John [AT] WowzaMedia {dotCom}

hello, I found this thread , and I have questions about the top most post.

This configuration reflects a localhost connection, asnd this is confirmed even by writing a local file.

I am interested in this because the content originates at a remote location, and VLC would be used at that remote location. Of course if VLC looses sync I am spinning my wheels anyway , and need to know what to use to stream from.

Unless I misunderstand something, I do not have the ability to write a “local” file , I need to truly stream from the remote location. How would this be configured under those circumstances?

Maybe I am too dumb to understand , but it would be very nice since this is a commercial product and all that some of these “how to” guides were better explained.

I also tried the JW player config (on another thread) “out of the box” and I think it does not work with the current JW player

PLEASE HELP!

I think you are missing the point.

The objective is a live stream , not to stream a file.

I do not want to write a file locally before it is streamed to the server. I want to stream it to the server.

Mark

I have two instances of Wowza running on the same machine, because I want to have two VLC streams. Therefore I changed the ports in server.xml and VHost.xml so both can run parallel.

The first instance works fine, but when I connect the second instance with the stream with mediacasterstreammanager it is stuck at :

INFO server comment - RTPUDPTransport.bind: 0.0.0.0/0.0.0.0:5004

INFO server comment - RTPUDPTransport.bind: 0.0.0.0/0.0.0.0:5005

INFO server comment - RTPUDPTransport.bind: 0.0.0.0/0.0.0.0:5006

INFO server comment - RTPUDPTransport.bind: 0.0.0.0/0.0.0.0:5007

INFO server comment - RTPMediaCaster.Reconnector: stop

I guess these ports are bound by the first instance. How can I change them for the second instance ?

Thanks