protonemedia / laravel-ffmpeg

This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.
https://protone.media/en/blog/how-to-use-ffmpeg-in-your-laravel-projects
MIT License
1.62k stars 193 forks source link

Export initial frame(of first sec) of image from video #499

Open omer-habib-blocship opened 11 months ago

omer-habib-blocship commented 11 months ago

The file is resulting into exception that Runtime Exception is resulted due to "Encoding failed ".

` use ProtoneMedia\LaravelFFMpeg\Support\FFMpeg;

$file= FFMpeg::open([$filename, 'thumb.jpg'])->getFrameFromSeconds(1)->save(); ` I have added the packages and config in lumen

image