src/BoomCMS/FileInfo/Drivers/Video.php
public function getThumbnail()
    {
        try {
            $ffmpeg = FFMpeg::create();
            $video = $ffmpeg->open($this->file->getPathname());

            $frame = $video->frame(TimeCode::fromSeconds(0));
            $base64 = $frame->save(tempnam(sys_get_temp_dir(), $this->file->getBasename()), true, true);

            return Imagick::readImageBlob($base64);
        } catch (Exception $e) {
            return;
        }
    }
public function getThumbnail()
    {
        try {
            $ffmpeg = FFMpeg::create();
            $video = $ffmpeg->open($this->file->getPathname());

            $frame = $video->frame(TimeCode::fromSeconds(0));
            $base64 = $frame->save(tempnam(sys_get_temp_dir(), $this->file->getBasename()), true, true);

            return Imagick::readImageBlob($base64);
        } catch (Exception $e) {
            return;
        }
    }
public function getThumbnail ( ) { try { $ ffmpeg = FFMpeg :: create ( ) ; $ video = $ ffmpeg -> open ( $ this -> file -> getPathname ( ) ) ; $ frame = $ video -> frame ( TimeCode :: fromSeconds ( 0 ) ) ; $ base64 = $ frame -> save ( tempnam ( sys_get_temp_dir ( ) , $ this -> file -> getBasename ( ) ) , true , true ) ; return Imagick :: readImageBlob ( $ base64 ) ; } catch ( Exception $ e ) { return ; } }
Generates a thumbnail for the video from the first frame.

@return Imagick
Generates a thumbnail for the video from the first frame .