title: ffplay with cookies
body: <p>Normally with ffplay you can play a video like this</p>
  
  <pre><code>ffplay http://easy.com/foo.flv
  </code></pre>
  
  <p>However I have come across a video that requires a cookie. wget has no trouble with this</p>
  
  <pre><code>wget http://hard.com/foo.flv --load-cookies cookies.txt
  </code></pre>
  
  <p>Can ffplay play a video that requires a cookie?</p>
  
  <p>Based on <a href="https://stackoverflow.com/a/13679431">pogorskiy’s answer</a> this works</p>
  
  <pre class="lang-sh prettyprint-override"><code>ffplay -headers $'Cookie: sbsession=sbg&amp;sbuser=lorem\r\n' http://hard.com/foo.flv
  </code></pre>