/** * Returns the raw data returned from ffmpeg empty function call. * * @access public * @author Oliver Lillie * @param boolean $read_from_cache * @return string */ public function getRawFfmpegData($read_from_cache = true) { $cache_key = 'ffmpeg_raw_data'; if ($read_from_cache === true && ($data = $this->_cacheGet($cache_key, -1)) !== -1) { return $data; } $exec = new FfmpegProcess('ffmpeg', $this->_config); $data = $exec->execute()->getBuffer(); // purposley no error checking here as ffmpeg gives an error with no input given. $this->_cacheSet($cache_key, $data); return $data; }