Using VLC with Wowza Pro (native RTP)

I didn’t know that Wowza can handle more than one stream at the same time.

VLC produces two different .sdp (two streams). How do I configure Wowza to process them ? The mediacasterstreammanager allows me to connect the two streams, but only one is actually broadcasted.

I still have a problem as soon as the second stream is connected :

INFO stream create - -

INFO stream publish vox.sdp -

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

The server does not continue with the firstPacket as it does for the first stream.

yes two instances of VLC, which are restreaming two different UDP streams.

Only one at a time is accepted by Wowza.

Please post the contents of the two SDP files.

Charlie

here are two contents

v=0 o=- 14861428784316719323 14861428784316719323 IN IP4 fame-sph s=Unnamed i=N/A c=IN IP4 127.0.0.1 t=0 0 a=tool:vlc 1.0.1 a=recvonly a=type:broadcast a=charset:UTF-8 m=audio 5004 RTP/AVP 96 b=AS:96 b=RR:0 a=rtpmap:96 mpeg4-generic/48000/2 a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1; m=video 5006 RTP/AVP 97 b=AS:500 b=RR:0 a=rtpmap:97 H264/90000 a=fmtp:97 packetization-mode=1;profile-level-id=42c01e;sprop-parameter-sets=Z0LAHpJUBaCTf+AIAAWiAAADAAIAAAMAZR4sXUA=,aM4yyA==; 

v=0 o=- 14861428817935352494 14861428817935352494 IN IP4 fame-sph s=Unnamed i=N/A c=IN IP4 127.0.0.1 t=0 0 a=tool:vlc 1.0.1 a=recvonly a=type:broadcast a=charset:UTF-8 m=audio 5004 RTP/AVP 96 b=AS:96 b=RR:0 a=rtpmap:96 mpeg4-generic/48000/2 a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1; m=video 5006 RTP/AVP 97 b=AS:500 b=RR:0 a=rtpmap:97 H264/90000 a=fmtp:97 packetization-mode=1;profile-level-id=42c01e;sprop-parameter-sets=Z0LAHpJUBaCTf+AIAAWiAAADAAIAAAMAZR4sXUA=,aM4yyA==; 

Thanks a lot !

Version and build number of your Wowza Pro installation:

Wowza Media Server Pro Unlimited with MPEG-TS 1.7.2 build12107

Which Wowza Pro edition you are using:

Wowza Media Server Pro Unlimited with MPEG-TS 1.7.2 build12107

Name and version of the OS being used:

Microsoft Windows Server 2003 R2 Standard x64 Edition Service Pack 2

Describe in detail your application:

Live video stream from a M-JPEG IQEye camera to a limited number of clients that require low latency video.

Detailed explanation of the issue or question:

It takes flash clients (JW player, Flowplayer, etc.) a significantly long time to start playing video. I would like to reduce the start time and have less than 5 seconds of latency.

Any other information that may help us to promptly answer your question:

I am transcoding the M-JPEG over HTTP to H.264 over RTP using VLC. I am using the rtp-live-lowlatency application. I have set the client buffer length on the JW player and Flowplayer to 0 to reduce the latency between the video at the camera and the video at the client. I have set the flush interval to 25 in the rtp-live-lowlatency application. JW player has relatively low latency (5 – 6 seconds) but it takes more than 30 seconds to a minute typically for the video to start and sometimes a lot longer. Flowplayer starts the video quickly but there is 10 or more seconds of latency. The VLC string I am using is:

vlc -vvv “http://192.168.69.10/now.jpg?snap=spush” --no-sout-audio --sout “#transcode{venc=x264{keyint=15},vcodec=x264,vb=1500,scale=1,acodec=none, threads=1}:rtp{dst=192.168.1.59,port-video=11002,port-audio=11003,sdp=file://C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server Pro 1.7.2/content/iqeyeDot10.sdp}”

I would like to know how to solve this problem either through Wowza configuration changes or some other means.

Hello everyone…

Im new to wowza…

However i was successful in kive streamin using VLC and native RTP thnx to ur forum posts.

The problem is tht im able to stream live, if i use VLC and Wowza on the same machine.

Whereas i need some kind of stuff thru which i can install VLC a a remote location on the internet and stream live from another location where the Wowza server is installed.

Please help guys im running out of time???

Hey charlie thnx mate thngs did work out really well…

Im able to do tht now…

Charlie but im able to do this from a VLC computer in my LAN…

Will the same thing can be used if VLC server is somwher on the internet …

can it access the wowza server than???

Thnx

Hey charlie tell me can i use the wowza server from the internet

i mean if the VLC machine is not in the LAN…can it give the stream to wowza remotely through internet???

Thnx in advance

thnx mate…

wowza has really good support…

Hey charlie…

Im now makin an wowza server implementation on a server

which shud be accessible through static Ip.

Im able to view the video from the internet

but after sometime i cant hear the audio.

The audio can be heard only hardly for a minute.

and after that i only see the video.

where as if i see it on the server than im able to view the video as well as im able to hear the audio.

Please help

Hey Richard

I checkd the last post.

I did try to do whatever changes tht were mentioned in tht link.

But im still not able to provide audio for long time.

The problem is tht i see the video as well as im able to listen to the audio.

But in between after sometime i can only see the video but cant hear a thing.

I hope u’ll have a solution on ths problem.

Please reply soon.

Hi Richard

Thnx 4 the reply.

Can u tell me other encoder than VLC which might be free or at a lower cost and also easy to implement.

And also doesnt have these issues.

Thnx

Hey Richard

But i thnk its not a VLC issue…

Its definitely an Wowza issue because i get back the audio when i stop and play the stream in the webpage again…

Hey and im using Windows so please tell me any windows option???

I have a server where VLC is running and also wowza is running.

I capture the live stream through VLC create an SDP file.

I use wowza to give a live stream through tht file.

Thn i have a website which is used to display the video using JW player.

The problem is, i do see the video properly but i do hear the audio for sometime and after that i dont hear any audio bt the video is still going on.

If i stop and play the video again, i see same thng happens again i see as well as hear, but after sometime again i can hear bt im able to see.

Please help me…:(:frowning:

I really need to fix ths ASAP.

i posted this elsewhere but i’ll post it here since this seems to be the go to place on the internet for vlc/wowza…

We’re trying to switch our mac quicktime encoders over to pc VLC encoders to work with wowza. is there anything specific we need to do on the wowza end to get it to process the files from vlc encoder? right now we’re testing with an .mp4 file. here is the current string we’re using in VLC, is this right? it seems to be encoding alright…

:sout=#transcode{vcodec=h264,vb=800,scale=1,acodec =mp4a,ab=128,channels=2,samplerate=44100}

:rtp{dst=stream.companyname.org,sdp=streams/test.sdp,user=XYXY,pwd=XYXY,port=1935,mux=ts}

thanks in advance for any help…

-tim

Edit/Delete Message

How can i run VLC command on my server in background mode like service? If i run it over the console it closed when i’m exiting console. Thank you

Hi guys,

I would love to hear from you if it’s possible to stream from within NAT network. I’m either stupid or RTP protocol does not allow this.

If I stream to Wowza instance installed on localhost, it works great.

I have forwarded ports from router to localhost, also altered SDP file to point to router and tried using this, but I still get errors, for example when trying to use another VLC to connect from outside local network I get:

live555 demuxer error: no data received in 10s, aborting

Wowza also can’t do that. Am I correct to say that it’s not allowed with NAT?

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

Hi,

I don’t have issues with livestream from vlc (linux) via wowza (1.7.2, in linux) on lipsync. So I don’t believe it’s really vlc issue and more on that wowza packetizer for iphone.

Also atleast apple packetizer likes aud-option in x264-encoder with vlc. And you really shouldn’t fiddle with qcomp there (as it’s default to 0.6 anyway).

I would like to mention, that currently h264 from x264 encoder quality is subpar in windows, due the compiler that was used to compile that library for vlc release. So quality is hugely improved if you stream from linux with vlc (with same settings).