sipsorcery-org / SIPSorceryMedia.FFmpeg

GNU Lesser General Public License v2.1
31 stars 24 forks source link

[Problem] Unable to load DLL 'avformat.58', 'swscale.5' in Windows 11 #36

Closed Timka654 closed 2 years ago

Timka654 commented 2 years ago

Hi, have problems on my test sample

I'm used WebRTC for receive traffic and convert this with "FFmpegVideoEndPoint" class

System.DllNotFoundException: Unable to load DLL 'avcodec.58 under ..\\BroadcastStreamServer\\bin\\Debug\\net6.0\\': The specified module could not be found.
   at FFmpeg.AutoGen.ffmpeg.LoadLibrary(String libraryName, Boolean throwException)
   at FFmpeg.AutoGen.ffmpeg.<>c.<.cctor>b__7_59()
   at SIPSorceryMedia.FFmpeg.FFmpegVideoEncoder.DecodeFaster(AVCodecID codecID, Byte[] buffer, Int32& width, Int32& height)

Problem with 'avformat.58' have solution - download FFMpeg and paste to solution folder, but i'm cannot find swscale.5.dll udp. FFMpeg contains swscale.5.dll, i'm dont set "copy to output"

In readme written

For Windows
No additional steps are required for an x64 build. The nuget package includes the [FFmpeg](https://www.ffmpeg.org/) x64 binaries.

but i'm cannot find native platform-library in build folder