title: Python Subprocess Error No Such File or Directory
body: <p>Hello I can't get my script to run it is meant to steam my screen live over HTTP but it comes up with an error I can't seem to fix.</p>
  
  <pre><code>#!/bin/python
  import subprocess
  import threading
  
  try:
      subprocess.Popen("rm out.mpg")
  except OSError:
      pass
  
  subprocess.Popen("ffmpeg -f x11grab -framerate 60 -video_size 1366x768 -i :0.0 out.mpg")
  subprocess.Popen("python -m SimpleHTTPServer 8000 out.mpg")
  </code></pre>
  
  <p>The error is</p>
  
  <pre><code>Traceback (most recent call last):
    File "Streaming.py", line 11, in &lt;module&gt;
      subprocess.Popen("ffmpeg -f x11grab -framerate 60 -video_size 1366x768 -i :0.0 out.mpg")
    File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
      errread, errwrite)
    File "/usr/lib64/python2.7/subprocess.py", line 1343, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory
  </code></pre>