Xabe.FFmpeg icon indicating copy to clipboard operation
Xabe.FFmpeg copied to clipboard

How to SetExecutablesPath for LINUX

Open curlyfro opened this issue 2 years ago • 1 comments

i'm running dotnet core 6 on linux.

i'm getting: Xabe.FFmpeg.Exceptions.FFmpegNotFoundException: Cannot find FFmpeg in /opt/ffmpeglib/ or PATH. This package needs installed FFmpeg. Please add it to your PATH variable or specify path to DIRECTORY with FFmpeg executables in FFmpeg.ExecutablesPath

i've set my environment PATH variable to include /opt/ffmpeglib which is where executables for ffmpeg and ffprobe are located. i tried running with and without setting the below setting. i'm getting the same error. what am I doing wrong? FFmpeg.SetExecutablesPath(@"/opt/ffmpeglib/", "ffmpeg", "ffprobe");

curlyfro avatar Dec 06 '22 18:12 curlyfro

Hello @curlyfro Can you show me output from "ls /opt/ffmpeglib"? Everything looks fine. If I need to guess there is a problem with executables names or permissions.

tomaszzmuda avatar Dec 16 '22 20:12 tomaszzmuda