You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 got the same error (the found path is /usr/lib/x86_64-linux-gnu)
the full stacktrace :
System.Exception: Failed to open the media stream
---> System.DllNotFoundException: Cannot load FFmpeg libraries from /usr/lib/x86_64-linux-gnu directory.
Required FFmpeg version: 6.x (shared build)
Make sure the "Build"Prefer 32-bit" option in the project settings is turned off.
For more information please see https://github.com/radek-k/FFMediaToolkit#setup
---> System.NotSupportedException: Specified method is not supported.
at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_1162()
at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_452()
at FFmpeg.AutoGen.ffmpeg.av_version_info()
at FFMediaToolkit.FFmpegLoader.LoadFFmpeg()
--- End of inner exception stack trace ---
at FFMediaToolkit.FFmpegLoader.HandleLibraryLoadError(Exception exception)
at FFMediaToolkit.FFmpegLoader.LoadFFmpeg()
at FFMediaToolkit.Decoding.Internal.InputContainer.MakeContext(String url, MediaOptions options, AVFormatContextDelegate contextDelegate)
at FFMediaToolkit.Decoding.Internal.InputContainer.MakeContainer(Stream input, MediaOptions options)
at FFMediaToolkit.Decoding.Internal.InputContainer.LoadStream(Stream stream, MediaOptions options)
at FFMediaToolkit.Decoding.MediaFile.Open(Stream stream, MediaOptions options)
--- End of inner exception stack trace ---
at FFMediaToolkit.Decoding.MediaFile.Open(Stream stream, MediaOptions options)
at FFMediaToolkit.Decoding.MediaFile.Open(Stream stream)
I don't know what to do
Thanks for your help
The text was updated successfully, but these errors were encountered:
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.
but I'm getting the following error when FFMediaToolkit registers the binaries:
Specified method is not supported. -- at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_1162()
at FFmpeg.AutoGen.ffmpeg.av_version_info()
at FFMediaToolkit.FFmpegLoader.LoadFFmpeg()
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.
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: