sdcb / Sdcb.FFmpeg

FFmpeg basic .NET API generated by CppSharp
GNU Lesser General Public License v3.0
334 stars 53 forks source link

求教怎么初始化? #19

Open 938134 opened 5 months ago

938134 commented 5 months ago

VS2022已安装 Sdcb.FFmpeg 6.1.0.1、Sdcb.FFmpeg.runtime.windows-x64 6.1.1.

FormatContext inFc = FormatContext.OpenInputUrl("rtsp://admin:@192.168.58.89:554/channel=1_stream=0"); inFc.LoadStreamInfo(); MediaStream inVideoStream = inFc.GetVideoStream(); 运行时报错System.DllNotFoundException:“无法加载 DLL“avformat-60”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。” 使用大佬库时要先初始化吗?查了下DEBUG\DLL\X64\下有avformat-60

sdcb commented 5 months ago

这个包是不是没装: Sdcb.FFmpeg.runtime.windows-x64

938134 commented 5 months ago

已经安装了

sdcb commented 4 months ago

使用DepedenciesGUI去查一下avformat-60,看看是不是有依赖问题?