title: avconv generating frames in php
body: <p>I'm trying to generate some frames (at the moment) on my localhost server with this code:</p>
  
  <pre><code>$cmd = 'avconv -i "../videos/medium.mp4" -vsync 1 -r 10 -f image2 -an -y -qscale 20 -s 120*90 -ss 00:00:05 -t 00:00:10 "out_%05d.jpg" 2&gt;&amp;1';
  
  passthru($cmd, $out);
  </code></pre>
  
  <p>I get the following message:</p>
  
  <pre><code>[image2 @ 0x646120]Could not open file : out_00001.jpg av_interleaved_write_frame(): Input/output error failed1
  </code></pre>
  
  <p>The problem is if I run this command in my terminal it works. Does anyone know whats the problem? Is it due to permisson or something else?</p>