protected function PHPVideoToolkit::_prepareCommand in Video 7
Same name and namespace in other branches
- 7.2 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_prepareCommand()
* Prepares the command for execution * * @access protected *
Parameters
string $path Path to the binary: * @param string $command Command string to execute * @param string $args Any additional arguments * @return 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. * * @access public *
- 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 * * @access protected
File
- libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php, line 3929
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;
}