Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

successdav's avatar

FFMpeg Executable not found

I have installed FFMPeg on my system and have added it to the system variables,

when I run ffmpeg on console it shows that its working by displaying some helpful commands i could run.

I then follow the steps here https://github.com/PHP-FFMpeg/PHP-FFMpeg#ffprobe which is to run

$ composer require php-ffmpeg/php-ffmpeg

then

I setup the code like this

public function store(Request $request, Course $course)
    {
        if (! auth()->user()->isAdmin()) {
            abort(403,'You do not have access to carry out this request');
        }

        $request->validate([
            'video' => 'required|mimetypes:video/avi,video/mpeg,video/mp4,video/quicktime'
        ]);

        $course->update([
            'video_Path' => request()->file('video')->storeAs('promovideo', $course->title, 'public')
        ]);

        $ffmpeg = FFMpeg\FFMpeg::create(array(
            'ffmpeg.binaries'  => '/opt/local/ffmpeg/bin/ffmpeg',
            'ffprobe.binaries' => '/opt/local/ffmpeg/bin/ffprobe',
            'timeout'          => 3600, // The timeout for the underlying process
            'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
        ), $logger);
        
        $video = $ffmpeg->open($course->videoPath);

        dd($video);

        return response($course->video_path, 204);
    }

but I still get Alchemy\BinaryDriver\Exception\ExecutableNotFoundException: Executable not found, proposed : /usr/bin/ffprobe

0 likes
3 replies
Tray2's avatar

What is the output of which ffprobe?

When I run that command I see

/usr/bin/ffprobe
1 like
successdav's avatar

I dont get anything when I run that code on the console

successdav's avatar
successdav
OP
Best Answer
Level 4

Fix by running sudo apt-get install ffmpeg --fix-missing

Please or to participate in this conversation.