title: Using FFMPEG to stream my WebCam's video to YouTube
body: <p>I've been trying to use ffmpeg to stream my webcam's video to YouTube and so far all I've managed was an "acknowledgement" from YouTube saying 'Starting' in green. However it quickly goes gray and the actual stream never actually changes from offline.</p>
  
  <p>I'm using this command to try to stream it:</p>
  
  <p><code>ffmpeg -rtbufsize 1500M -r 25 -f dshow -s 1280x720 -i video="USB2.0 HD UVC WebCam" -vcodec h264 -b:a 600k -acodec libfaac -ab 128k -f flv "rtmp://a.rtmp.youtube.com/live2/user.useruser.codecodecode"</code></p>
  
  <p><a href="http://i.stack.imgur.com/hc0mm.png" rel="nofollow">CMD</a></p>
  
  <p>I've managed to stream videos to YouTube with ffmpeg, its just the camera that won't work. Any idea what I might be doing wrong?</p>
  
  <p>This is the command I'm using now
      <code>ffmpeg -r 18 -f dshow -s 1280x720 -i video="USB2.0 HD UVC WebCam":audio="Microphone (Realtek High Definition Audio)" -vcodec h264 -b:v 1800k -acodec aac -strict experimental -f flv "rtmp://a.rtmp.youtube.com/live2/useruser.useruser.codecodecodecode"</code></p>
  
  <p>I'm now using <code>-acodec aac</code> instead of libfaac or libfdk_aac since I was getting "Unknown encoder" errors</p>
  
  <p>It is streaming a few seconds however, now I'm getting these errors:
  <a href="http://i.stack.imgur.com/ZWnqo.png" rel="nofollow">WriteN, RTMP send error 10053</a></p>
  
  <p>Any idea what these mean, or how to fix them?</p>