Run mencoder as a separate thread (using threading) instead of running it as a separate process (using multiprocess).