DEV Community

Discussion on: Generating Thumbnail From Uploaded Video in Laravel

Collapse
 
shadyonline profile image
Victor

I'm not sure about particular package you're talking about, but usually ffmpeg library and any PHP wrapper above it is used (at least php-ffmpeg), general command for CLI looks like this (you can take random time for your videos)
ffmpeg -i $uploaded_file -ss 00:00:01.000 -vframes 1 output.png