protected function PHPVideoToolkit::_postProcess in Video 7.2
Same name and namespace in other branches
- 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_postProcess()
Carries out the post processing of the files.
@access protected
Parameters
boolean $log Determines if logging of errors should be carried out.:
array $files The array of files that have just been processed.:
Return value
mixed
1 call to PHPVideoToolkit::_postProcess()
- 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.
File
- libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php, line 3273 - Libary to access FFmpeg
Class
Code
protected function _postProcess($log, $files) {
if (count($this->_post_processes)) {
// loop through the post processes
foreach ($this->_post_processes as $key => $process) {
// call the process
$return_value = call_user_func_array($process, array(
$files,
));
// if the return value is not strictly equal to TRUE the result will be treated as an error and exit the process loop
if (!is_array($return_value) && $return_value !== TRUE) {
if ($log) {
$this
->_logResult($return_value);
}
return $this
->_raiseError($return_value);
}
}
return $return_value;
}
return FALSE;
}