title: Using ffmpeg to generate RTSP from webcam
body: <p>I want to get the camera video stream and broadcast it with RTSP on Windows.</p>
  
  <p>I can play the camera video with</p>
  
  <pre><code>&gt; ffplay -f dshow -i "HP HD Webcam"
  </code></pre>
  
  <p>But if I try start the stream with</p>
  
  <pre><code>&gt; ffmpeg -f rtsp -i video="HP HD Webcam" rtsp://localhost:8888/live.sdp
  </code></pre>
  
  <p>The stream does not start. The console shows</p>
  
  <pre><code>ffmpeg version ...
  configuration: ...
  libavutil      55.  6.100 / 55.  6.100
  libavcodec     57. 15.100 / 57. 15.100
  libavformat    57. 14.100 / 57. 14.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 15.100 /  6. 15.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
  </code></pre>
  
  <p>And if I use ctrl+c to break it, an error shows</p>
  
  <pre><code>video=HP HD Webcam: Immediate exit requested
  </code></pre>
  
  <p>How can I properly stream the camera to RTSP with ffmpeg?</p>