Sulu\Bundle\MediaBundle\Media\ImageConverter\MediaImageExtractor::convertVideoToImage PHP Метод

convertVideoToImage() приватный Метод

Converts one frame of a video to an image using FFMPEG.
private convertVideoToImage ( string $content ) : string
$content string
Результат string
    private function convertVideoToImage($content)
    {
        $temporaryFilePath = $this->createTemporaryFile($content);
        $this->videoThumbnail->generate($temporaryFilePath, '00:00:02:01', $temporaryFilePath);
        $extractedImage = file_get_contents($temporaryFilePath);
        unlink($temporaryFilePath);
        return $extractedImage;
    }