/**
* Converts one frame of a video to an image using FFMPEG.
*
* @param string $content
*
* @return string
*
* @throws OriginalFileNotFoundException
*/
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;
}