LARAVEL FFMpeg: Unable to save frame error

Viewed 1118

When I'm trying to save my thumbnail, I'm getting "Unable to save frame" error.

I'm using https://github.com/protonemedia/laravel-ffmpeg Laravel-ffmpeg package, AWS S3 server.

My code:

Route::get('/thumbnail', function() {
    $file = FFMpeg::fromDisk('s3')
    ->open('/videos/71239_1598846328_p.mp4')
    ->getFrameFromSeconds(10)
    ->export()
    ->toDisk('s3')
    ->save('/videos/thumb.png');
    return "ok";
});

Can someone tell me what I'm doing wrong?

1 Answers

Please make sure that the folder path where you want to save the thumbnail exist and have the write permission.

Related