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

boyjarv's avatar

error : "Unable to load FFProbe"

Please help, I am getting: error: "Unable to load FFProbe"

I have downloaded ffmpeg.exe ffPlay.exe ffProbe.exe

I have added to environment files, I have tested, all working but when I try and upload an MP$ file, I get the error Unable to load FFProbe

here is teh bottom of my .ENV file:

FFMPEG_BINARIES=C:\PATH_programs\ffmpeg
FFPROBE_BINARIES=C:\PATH_programs\ffprobe

here is my laravel-ffmpeg.php file:

<?php

return [
    // 'ffmpeg' => [
    //     'binaries' => env('FFMPEG_BINARIES', 'C:\PATH_programs\ffmpeg'),

    //     'threads' => 12,   // set to false to disable the default 'threads' filter
    // ],

    // 'ffprobe' => [
    //     'binaries' => env('FFPROBE_BINARIES', 'C:\PATH_programs\ffprobe'),
    // ],

    'ffmpeg.binaries' => env('FFMPEG_BINARY', 'C:\PATH_programs\ffmpeg'),
    'ffprobe.binaries' => env('FFPROBE_BINARY', 'C:\PATH_programs\ffprobe'),

    'timeout' => 3600,

    'log_channel' => env('LOG_CHANNEL', 'stack'),   // set to false to completely disable logging

    'temporary_files_root' => env('FFMPEG_TEMPORARY_FILES_ROOT', sys_get_temp_dir()),

    'temporary_files_encrypted_hls' => env('FFMPEG_TEMPORARY_ENCRYPTED_HLS', env('FFMPEG_TEMPORARY_FILES_ROOT', sys_get_temp_dir())),
];

Please help, why is there always a problem with everything?

0 likes
4 replies
boyjarv's avatar

is anyone able to help me here please?

Tray2's avatar

The easiest would be to add the directory to the path in windows.

There is always issues with the difference between / and \ on windows and linux systems.

boyjarv's avatar

ok it's connected but now I get: error : "Unable to probe "

would it be something wrong with my php code?

public function updateVideo($model, $request, $path, $methodType)
    {
        $ffmpeg = FFMpeg::create();  // Create an instance of FFMpeg
        
        $video = $ffmpeg->open($request->file('mp4_url'));
        $frame = $video->getFrameFromString('00:00:03.00');
        $image = ImageIntervention::make($frame);
        if (!empty($model->mp4_url)) {
            $currentVideo = public_path() . $path . $model->mp4_url;

            if (file_exists($currentVideo)) {
                unlink($currentVideo);
            }
        }

        $file = $request->file('mp4_url');
        $extension = $file->getClientOriginalExtension();

        

        $name = time() . '.' . $extension;
        $video->save(public_path() . $path . $name);
        $image->save(public_path() . $path . $name);

        if ($methodType === 'store') {
            $model->user_id = $request->get('user_id');
        }

        $model->mp4_url = $name;

        $model->save();
    }

Please or to participate in this conversation.