private function PHPVideoToolkit::_captureExecBufferFallback in Video 7.2
1 call to PHPVideoToolkit::_captureExecBufferFallback()
- PHPVideoToolkit::getFFmpegInfo in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
- Returns information about the specified file without having to use ffmpeg-php
as it consults the ffmpeg binary directly.
NOTE: calling this statically for caching to work you must set the temp directory.
File
- libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 522
- Libary to access FFmpeg
Class
- PHPVideoToolkit
Code
private function _captureExecBufferFallback() {
$commands = func_get_args();
foreach ($commands as $command) {
$buffer = array();
$err = 0;
exec($command . ' 2>&1', $buffer, $err);
if ($err === 0) {
return $buffer;
}
}
return array();
}