Wowza Community

Using VLC with Wowza Pro (native RTP)

Hello,

so i may set sdp=file:///c:/test.sdp and copy this test.sdo file in content folder and thats all ?

I will try this, thank you for that information.

when I use a vlc to output a stream to wowza,transcode setting is 25fps,but I get 50 fps in media information ,why?

Hello Richard.

When I do what I say I can not publish the Wowza streaming server.

Thanks.

Hello.

I need capture video of webcam (it´s a client) and publish to server (amazon wowza)

The publish video is h264, for this I will used VLC but I have error to generate sdp file.

Thanks Richard.

I already which tells me I can not see any connection with the Wowza server, I need something else? :confused:

Pablo.

Hello Richard.

Now I have this error.

WARN server comment 2010-10-07 16:52:06 - - - - - 3473.525 - - - - - - - - RTPSessionDescriptionDataProviderBasic.getStreamInfo: SDP file missing: C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 2/content/vlc.sdp

VLC Command

vlc -vvv dshow:// :dshow-vdev=“Logitech QuickCam Pro 9000” :dshow-adev=“Micrófono (Pro 9000)” :dshow-size=“320x240” --sout “#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=48000}:rtp{dst=10.254.32.48,port-video=10000,port-audio=10002,sdp= file:///%WMSCONFIG_HOME%/content/vlc.sdp}”

The wowza server ip is: 10.254.2.48

And VLC is other PC: 10.254.32.111

Thanks.

Hello Richard.

This wowk only when vlc is in the same PC of wowza.

But I have vlc in one PC and Wowza Server in Other PC.

Thanks Richard

This works, I have another question now I can generate the SDP in a shared path.

vlc -vvv Extremists.m4v --sout “#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=48000}:rtp{dst=10.254.2.48,sdp= \srv48\content/vlc.sdp}”

Thanks Ricard for your Help.

Solution.

vlc -vvv “file:///\srv48\C$\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2\content\Extremists.m4v” --sout “#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=48000}:rtp{dst=10.254.2.48,sdp=file://///srv48/content/vlc.sdp}”

Hi charlie,

I am using Wowza Media Server for Developer v 2.1.2 and VLC v1.1.5 in window to test this feature but they don’t work. VLC and Wowza are on the same computer. I run command line:

vlc -vvv -I rc dshow:// :dshow-vdev=USB Video Device :dshow-adev=Realtek HD Audio Input :dshow-caching=200 --sout “#transcode{venc=x264{keyint=60},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=32,channels=2,samplerate=22050}:rtp{dst=192.168.1.76,port-video=10000,port-audio=10002,sdp=file://%WMSCONFIG_HOME%/content/vlc.sdp}”

I use LiveVideoStreaming example to play that streaming but it not done. And there is any file vlc.spd that is created in “content” folder… I have 2 question:

  • Is problem in version of wowza, vlc or OS system?

  • What is the relationship between “rtp{dst=192.168.1.76,port-video=10000,port-audio=10002,sdp=file://%WMSCONFIG_HOME%/content/vlc.sdp}” vlc command line and rtplive in wowza server?

Thanks charlie,

Thanks for quick response!

I want build a application that like a video chat application on window. The instructions in that link using VLC to publish a local file via MPEG-TS. I change command line to:

vlc -vvv -I rc dshow:// :dshow-vdev=USB Video Device :dshow-adev=Realtek HD Audio Input :dshow-caching=200 --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=10000,mux=ts}”

But it can’t run…

Sorry for my ignorance.

Hello,

i want to stream from my VLC player (Windows) to my wowza stream server. But I didn’t find the correct settings for streaming. And then I want to receive the stream in the jw player. It’s works, but there are always pixel mistakes.

Here is my VLC command line:

:sout=#transcode{vcodec=h264,venc=x264{keyint=32,idrint=2,bframes=0,qp=28,qp-max=32,qp-min=26,frameref=5,scenecut=128},vb=800,scale=0.8,width=640,height=360,aspect=16:9,acodec=mp3,ab=128,channels=2,samplerate=44100,deinterlace{deinterlace=linear}}:rtp{dst=XXX.XXX.XXX.XXX,port=10000,mux=ts} :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep

I hope you can say if there is a problem with my VLC settings or general with the wowza server.

Hi

I’m trying to transcode & stream from VLC to Wowza. Everything works fine this way:

vlc -vvv mms://xxx.xxx.xxx.xxx/hasici150live-9 --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=512,scale=1,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=89.185.240.94,port=10000,mux=ts}"

But what I need to do is to stream multiple streams to one port. Richard advised a port sharing and told me to separate the audio and video ports. So I’m trying the following command:

vlc -vvv mms://xxx.xxx.xxx.xxx/hasici150live-9 --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=512,scale=1,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=89.185.240.94,port-video=10000,port-audio=10002,mux=ts,sdp=file:///C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2.2.4\content\test.sdp}""

but when I try to view the stream (server: rtmp://xxx.xxx.xxx.xxx/live, stream: test.sdp), I can’t see anything. I have also started receiving the stream with stream manager… Am I doing anything wrong?

Thanks!

The .sdp file is generated directly into the content folder, I’ve just checked it is there. I’ve also started a stream in the Stream Manager. I can’t use the mpegt-ts method, because I need to share the port with other connections and thus I need to separate the audio and video ports (10000 and 10002) which I think is not possible this way, is it?

I’m running it in the stand-alone mode. This part of the log is still repeating:

2011-11-16	16:13:50	CET	unpublish	stream	INFO	200	test.sdp	-	_defaultVHost_	live	_definst_	12.44	-	80	null	127.0.0.1	rtsp	-	known	2004982505	0	0	1345	0	0	0	test.sdp	-	-	-	-	-	null	null	-	null	-
2011-11-16	16:13:50	CET	destroy	stream	INFO	200	test.sdp	-	_defaultVHost_	live	_definst_	12.44	-	80	null	127.0.0.1	rtsp	-	known	2004982505	0	0	1345	0	0	0	test.sdp	-	-	-	-	-	null	null	-	null	-
2011-11-16	16:13:50	CET	comment	server	INFO	200	-	RTPMediaCaster.Reconnector[13809944:live/_definst_:test.sdp]: start: 770	-	-	-	11178.565	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:13:50	CET	comment	server	INFO	200	-	RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/_definst_]: C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 2.2.4/content/test.sdp	-	-	-	11178.665	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:13:50	CET	create	stream	INFO	200	-	-	_defaultVHost_	live	_definst_	0.0	-	80	null	127.0.0.1	rtsp	-	known	2053140903	0	0	1346	0	0	0	test.sdp	-	-	-	-	-	null	null	-	null	-
2011-11-16	16:13:50	CET	publish	stream	INFO	200	test.sdp	-	_defaultVHost_	live	_definst_	0.0	-	80	null	127.0.0.1	rtsp	-	known	2053140903	0	0	1346	0	0	0	test.sdp	-	-	-	-	-	null	null	-	null	-
2011-11-16	16:13:50	CET	comment	server	INFO	200	-	RTPUDPTransport.bind[live/_definst_]: 0.0.0.0/0.0.0.0:5004	-	-	-	11178.665	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:13:50	CET	comment	server	INFO	200	-	RTPMediaCaster.Reconnector[13809944:live/_definst_:test.sdp]: done: 770	-	-	-	11178.665	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:13:50	CET	comment	server	INFO	200	-	LivePlayer.play[live/_definst_/test.sdp]: Dynamic Stream Markers are on.	-	-	-	11178.765	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:14:02	CET	comment	server	INFO	200	-	RTPMediaCaster.streamTimeout[13809944:live/_definst_:test.sdp]: timeout:12000 diff:12005 reason:101	-	-	-	11191.07	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:14:02	CET	comment	server	INFO	200	-	RTPMediaCaster.resetConnection[13809944:live/_definst_:test.sdp]: 	-	-	-	11191.07	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:14:02	CET	comment	server	INFO	200	-	RTPMediaCaster.closeRTPSession[13809944:live/_definst_:test.sdp]	-	-	-	11191.07	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-11-16	16:14:02	CET	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: /xxx.xxx.240.94:5004	-	-	-	11191.07	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-

Tried both with no success:(

Ok, so I played with the configuration a little and now I have the following results:

When i’m broadcasting audio and video to a single port (port=10000), everything works fine. But when I try to separate it (port-video=10000, port-audio=10002), it says RTPMediacaster.streamTimeout, reason: 101…

Please help :slight_smile:

I’ve tried, but it’s still the same, single port works, separated A/V says streamTimeout.

I’ve looked at the sdp file and found the following:

when streaming to the single port, there’s this line in the sdp: m=video 10000 RTP/AVP 33, but when I separate A/V, it changes to: m=video 5004 RTP/AVP 33. So maybe some problem with 5004 port?

I have all the UDP ports open.

Ok, I’ve advanced a little. I’ve succeeded in broadcasting a stream with the audio and video ports separated by removing the “mux=ts” part of the command. But still - when trying to broadcast two streams to one port (turned the datagram port sharing on again), the first one starts interrupting, slow-motioning, etc. and the second one won’t play at all…

Any suggestions apreciated. Thank you.

So the port sharing feature doesn’t work in this case?

So if all mpts streams are coming in on one udp port to say, ffmpeg, and you use ffmpeg to push those streams to wowza, how would you use a different port? ffmpeg seems to handle the multiple channels and instances using the reuse=1 option, however, only one stream will playback via wowza…