-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.DllNotFoundException: Cannot load FFmpeg libraries #136
Comments
Hello, I ran into the exact same issue and could not get it to work with the latest version of FFmpeg. The solution was to get the shared libraries of an older version of FFmpeg and place this in the /usr/lib/x86_64-linux-gnu folder. The one I got was from here: https://github.com/BtbN/FFmpeg-Builds/releases/tag/autobuild-2023-07-31-12-50 And the specific download was: ffmpeg-n6.0-32-gd4a7a6e7fa-linux64-gpl-shared-6.0.tar.xz This worked for me so it seems that the nuget package is not compatible with the latest version. Hope this helps. |
Hello, Currently I have the same issue, and even applying the suggestion by @curtmantle , it doesn't seem to work. I've put all files and folders on ffmpeg-n6.0-32-gd4a7a6e7fa-linux64-gpl-shared-6.0.tar inside /usr/lib/x86_64-linux-gnu/ffmpeg I'm registering the ffmpeg folder like this:
but I'm getting the following error when FFMediaToolkit registers the binaries:
I also print the ffmpeg version loaded by the toolkit and I'm getting an n/a. This project is made in .netcore 8 and is deployed in an isolated azure function on linux64, which uses Debian Locally on windows it works fine with the dll files obviously changing the location of the binaries. I appreciate your help! |
I struggled with DLLs not found on Windows. Edit: Further testing shows v4.5.1 works up to ffmpeg-n6.1.1 |
Hi,
I am using FFMedialTookKit 4.5.1 with .net core 6.0 on linux ubuntu official asp.net microsoft image mcr.microsoft.com/dotnet/aspnet:6.0-focal
I got and exception System.DllNotFoundException: Cannot load FFmpeg libraries
no matter which path i set in
FFmpegLoader.FFmpegPath = Configuration.GetValue<string>("ffmpeg");
when i attach a bash to my container i can check that ffmpeg is correctly installed at /usr/bin
i tried all paths /usr/bin /usr/share/ffmpeg /usr/lib /usr/lib/x86_64-linux-gnu
i also run
i got the same error (the found path is /usr/lib/x86_64-linux-gnu)
the full stacktrace :
I don't know what to do
Thanks for your help
The text was updated successfully, but these errors were encountered: