when running command 'ffmpeg.exe -version 1' , the page loops and you need to close the process ffmpeg.exe from task manager.

to solve this:
ffmpeg_wrapper_class.inc
$descriptor_spec = array(
0 => array('pipe', 'r'),
1 => array('pipe', 'w'),
2 => array('pipe', 'a')
);
+ if ($command == '-version')
+ $descriptor_spec[0][2] = array('pipe', 'a');

and change this line
- $stderr = stream_get_contents($pipes[2]);
to
+ $stderr = print_r(stream_get_contents($pipes[2]),1);

Comments

davidd07’s picture

Also important to make sure windows "Interactive Services Detection" is turned off and Apache preferably run as console instead of Service or you will also end up with page loop/hang.

http://php.net/manual/en/book.exec.php