protected function PHPVideoToolkit::_prepareCommand in Video 7.2
Same name and namespace in other branches
- 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_prepareCommand()
Prepares the command for execution
@access protected
Parameters
string $path Path to the binary:
string $command Command string to execute:
string $args Any additional arguments:
Return value
string
2 calls to PHPVideoToolkit::_prepareCommand()
- PHPVideoToolkit::execute in libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php - Commits all the commands and executes the ffmpeg procedure. This will also attempt to validate any outputted files in order to provide some level of stop and check system.
- PHPVideoToolkit::_addMetaToFLV in libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php - When converting video to FLV the meta data has to be added by a ruby program called FLVTools2. This is a second exec call only after the video has been converted to FLV http://inlet-media.de/flvtool2
File
- libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php, line 3584 - Libary to access FFmpeg
Class
Code
protected function _prepareCommand($path, $command, $args = '') {
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN' || !preg_match('/\\s/', $path)) {
return $path . ' ' . $command . ' ' . $args;
}
return 'start /D "' . $path . '" /B ' . $command . ' ' . $args;
}