title: ffmpeg not working with filenames that have whitespace
body: <p>I'm using FFMPEG to measure the duration of videos stored in an Amazon S3 Bucket.</p>
  <p>I've read the FFMPEG docs, and they explicitly state that all whitespace and special characters need to be escaped, in order for FFMPEG to handle them properly:</p>
  <p>See docs 2.1 and 2.1.1: <a href="https://ffmpeg.org/ffmpeg-utils.html" rel="noreferrer">https://ffmpeg.org/ffmpeg-utils.html</a></p>
  <p>However, when dealing with files whose filenames contain whitespace, ffmpeg fails to render a result.</p>
  <p>I've tried the following, with no success</p>
  <pre><code>ffmpeg -i &quot;http://s3.mybucketname.com/videos/my\ video\ file.mov&quot; 2&gt;&amp;1 | grep Duration | awk '{print $2}' | tr -d
  ffmpeg -i &quot;http://s3.mybucketname.com/videos/my video file.mov&quot; 2&gt;&amp;1 | grep Duration | awk '{print $2}' | tr -d
  ffmpeg -i &quot;http://s3.mybucketname.com/videos/my'\' video'\' file.mov&quot; 2&gt;&amp;1 | grep Duration | awk '{print $2}' | tr -d
  ffmpeg -i &quot;http://s3.mybucketname.com/videos/my\ video\ file.mov&quot; 2&gt;&amp;1 | grep Duration | awk '{print $2}' | tr -d
  </code></pre>
  <p>However, if I strip out the whitespace in the filename – all is well, and the duration of the video is returned.</p>