Needs review
Project:
FFmpeg Wrapper
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jan 2012 at 04:21 UTC
Updated:
30 Jul 2012 at 14:39 UTC
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
Comment #1
davidd07 commentedAlso 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