title: FFMpeg - PhantomJS to Youtube Live
body: <p>I'm trying to stream a webpage captured with PhantomJS to Youtube using FMMpeg.
  This is the command I use:</p>
  
  <pre><code>xvfb-run phantomjs --web-security=no render.js | ffmpeg -threads 0 -y -v verbose -c:v png -r 30 -f image2pipe -i - -f lavfi -i anullsrc -strict -2 -acodec aac -ac 1 -ar 44100 -b:a 128k -c:v libx264 -s 1280x720 -pix_fmt yuv420p -f flv "rtmp://a.rtmp.youtube.com/live2/key";
  </code></pre>
  
  <p>And the render.js code:
  <a href="http://pastebin.com/raw/X9gv8iGH" rel="nofollow noreferrer">http://pastebin.com/raw/X9gv8iGH</a></p>
  
  <p>It looks like it's streaming, but no feed is received by YouTube, and I can't see where the problem is.
  <a href="https://i.stack.imgur.com/MvYoW.png" rel="nofollow noreferrer">Outpout from my console</a></p>