Search code examples
laravelffmpeg

Disk [videos] does not have a configured driver


I am trying to create a thumbnail using laravel and ffmpeg. But am getting this error.

Disk [videos] does not have a configured driver.

My code

public function index()
{
    FFMpeg::fromDisk('videos')
        ->open('steve_howe.mp4')
        ->getFrameFromSeconds(10)
        ->export()
        ->toDisk('thumnails')
        ->save('FrameAt10sec.png');
    // $videos =  Videos::where('user_email', Auth::user()->email)->get();
    //  return view('instructor.videos')->with('videost', $videos);
}

What could be the solution. Thanks


Solution

  • Open your config file config/filesystems.php and check the key videos, make sure it contains 'driver' => 'local' or any other driver that you are wanting to use.

    Example

    'videos' => [
        'driver' => 'local',
        'root' => storage_path('videos'),
    ],