/** * The callback intentionally public, but should be regarded as protected that is used * to post process the output of a save command. * * @access protected * @author Oliver Lillie * @return mixed */ public function _postProcessOutput(FfmpegProcess $process) { $output = $process->completeProcess(); if (empty($this->_post_process_callbacks) === false) { foreach ($this->_post_process_callbacks as $callback) { $args = $callback[1]; array_unshift($args, $output, $this); $output = call_user_func_array($callback[0], $args); } } return $output; }