tomaszzmuda / Xabe.FFmpeg

.NET Standard wrapper for FFmpeg. It allows to process media without know how FFmpeg works, and can be used to pass customized arguments to FFmpeg from dotnet core application.
https://xabe.net/product/xabe_ffmpeg/
Other
715 stars 128 forks source link

How to SetExecutablesPath for LINUX #434

Open curlyfro opened 1 year ago

curlyfro commented 1 year ago

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");

tomaszzmuda commented 1 year ago

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.