title: YouTube Live not working with FFMPEG
body: <p><b>EDIT: It already works. My new router seems to block rtmp traffic. I edited the firewall config and now it works! </b> <br> 
  I'm trying to stream to YouTube with ffmpeg with the following command:   </p>
  
  <pre><code>ffmpeg -f alsa -ac 2 -i hw:0,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video0 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -strict experimental -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/45ee-qka9-0djm-796z   
  </code></pre>
  
  <p>My ffmpeg version <b> 2.8.11 </b> on Linux <b> Mint 18.2 </b> then says: <br></p>
  
  <pre><code>Input #0, alsa, from 'hw:0,0':
    Duration: N/A, start: 1511081240.166016, bitrate: 1536 kb/s
      Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s 
  [video4linux2,v4l2 @ 0xacba60] The driver changed the time per frame from 1/10 to 2/15
  Input #1, video4linux2,v4l2, from '/dev/video0':
    Duration: N/A, start: 5907.755626, bitrate: 110592 kb/s
      Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 110592 kb/s, 7.50 fps, 7.50 tbr, 1000k tbn, 1000k tbc
  </code></pre>
  
  <p>After that it does nothing for about 3 minutes,then it finally returns the following error: <br></p>
  
  <pre><code>RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
  rtmp://a.rtmp.youtube.com/live2: Unknown error occurred
  </code></pre>
  
  <p>I used these instructions: </p>
  
  <ul>
  <li><a href="https://gist.github.com/laurenarcher/4644aacef51e734d33d5" rel="nofollow noreferrer">https://gist.github.com/laurenarcher/4644aacef51e734d33d5</a></li>
  <li><a href="https://stackoverflow.com/questions/43586435/ffmpeg-to-youtube-live">FFMPEG to Youtube Live</a></li>
  </ul>