# Webcam streaming using VLC from remote Machine

**URL:** <https://community.wowza.com/t/webcam-streaming-using-vlc-from-remote-machine/34779>\
**Category:** Wowza Streaming Engine\
**Created:** [May 14, 2010, 4:57am UTC](https://community.wowza.com/t/webcam-streaming-using-vlc-from-remote-machine/34779 "2010-05-14T04:57:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pravin\_Patil](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Pravin\_Patil](https://community.wowza.com/u/Pravin_Patil)\
**Post date:** [May 14, 2010, 4:57am UTC](https://community.wowza.com/t/webcam-streaming-using-vlc-from-remote-machine/34779/1 "2010-05-14T04:57:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [May 14, 2010, 5:00am UTC](https://community.wowza.com/t/webcam-streaming-using-vlc-from-remote-machine/34779/2 "2010-05-14T05:00:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 14, 2010, 1:52pm UTC](https://community.wowza.com/t/webcam-streaming-using-vlc-from-remote-machine/34779/3 "2010-05-14T13:52:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pravin\_Patil](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Pravin\_Patil](https://community.wowza.com/u/Pravin_Patil)\
**Post date:** [May 14, 2010, 5:41am UTC](https://community.wowza.com/t/webcam-streaming-using-vlc-from-remote-machine/34779/4 "2010-05-14T05:41:48Z")

</div>

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 ?
