Wowza Community

Webcam streaming using VLC from remote Machine

Hi,

I am facing the problem in live webcam streaming using VLC. As I am having CentOS server with FFMPEG and VLC install on same.

When I run following VLC command on CentOS server where the web cam is attached

vlc v4l2:// -vvv input_stream --sout=’#duplicate{dst=display, dst=“transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=1234,sdp=file:///home/livestream.sdp}”}’

Then I am able to create the stream with Wowza.

But I am not getting how to stream using above VLC command from remote machine (like windows which does not have VLC installed) where the webcam is attached.

Thanks in advance

You need to copy the SDP file from the remote machine to the machine running Wowza (put it in the [install-dir]/content folder). Be sure to send the stream from the machine running VLC to the machine running Wowza.

Simple stuff.

Charlie

I think vlc has to be running on the machine that the camera is attached to. Or you could publish a stream from the webcam to Wowza and use that as input to VLC, but that’s the long way around if you are going to publish that again in Wowza.

Richard

Hi Charlie ,

Thanks for your reply …

Can you please explain how can we achieve it in following scenerio ?

Suppose webcam is attached to client machine and live broadcasting has been started and I run vlc command on my server using PHP(using exec() command) where my code is deployed.So while running vlc’s command , what path should be provide for webcam of client machine ?