public function attachFfmpegProcess(FfmpegProcess $process, $temp_directory) { parent::attachFfmpegProcess($process, $temp_directory); $this->_progress_file = tempnam($this->_config->temp_directory, 'phpvideotoolkit_progress_'); $this->_ffmpeg_process->addCommand('-progress', $this->_progress_file); }
public function attachFfmpegProcess(FfmpegProcess $process, Config $config = null) { parent::attachFfmpegProcess($process, $config); $this->_progress_file = tempnam($this->_config->temp_directory, 'phpvideotoolkit_progress_' . time() . '_'); $this->_input = $this->_ffmpeg_process->getAllInput(); $this->_output = $this->_ffmpeg_process->getAllOutput(); $this->_ffmpeg_process->addCommand('-progress', $this->_progress_file); }