Xabe.FFmpeg
Xabe.FFmpeg copied to clipboard
How to SetExecutablesPath for LINUX
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");
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.