title: VLC record webcam and stream to chrome linux
body: <p>I am currently looking for how to accomplish what I have been told is possible. </p>
  
  <p>I was told that we would be able use vlc to stream a webcam in linux which would allow for the following:</p>
  
  <ul>
  <li>Recording the stream to the local machine for a later upload.</li>
  <li>Play the stream as it's recording using Chrome's HTML5 video capabilities.</li>
  <li>Send a start and stop command from the web for the vlc recording.</li>
  </ul>
  
  <p>I have been researching this for quite some time and haven't been able to find a viable solution.</p>
  
  <p>I am able to record video using VLC already with the following</p>
  
  <pre><code>vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout "#transcode{vcodec=mpeg4,acodec=mpga,vb=800,ab=128}:standard{access=file,dst=capture_4.avi}"
  </code></pre>
  
  <p>Is this really even possible?</p>