/** * @param null $timeOffset */ public function saveImage($file, $timeOffset = null) { if (!$timeOffset) { $timeOffset = 5; } $cmd = self::getFfmpegCli() . " -i " . realpath($this->file) . " -vcodec png -vframes 1 -ss " . $timeOffset . " " . str_replace("/", DIRECTORY_SEPARATOR, $file); Pimcore_Tool_Console::exec($cmd); }
/** * @param null $timeOffset */ public function saveImage($file, $timeOffset = null) { if (!$timeOffset) { $timeOffset = 5; } $cmd = self::getFfmpegCli() . " -i " . $this->file . " -vcodec png -vframes 1 -ss " . $timeOffset . " " . $file; Pimcore_Tool_Console::exec($cmd); }