SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
716 stars 101 forks source link

Missing on dll in FFmpeg V5 ? #225

Closed LauraKami closed 1 year ago

LauraKami commented 1 year ago

Hello, It's me again ;o) When I deploy my application with Flyleaf on a virgin machine, the application does not start with only the dlls of the FFMeg folder (the new ones of version 5). I need to add in my FFmpeg directory the dlls of version 4.0 I added everything because I didn't know which one was missing... Then it works ;o) attached the two lists (sorry for the weird character it's a cross between Japanese and French ;o) Thank's in advance.

R‚pertoire de C:\Users\laurent\source\repos\Flyleaf\FFmpeg 30/11/2022 21:39 78ÿ275ÿ584 avcodec-59.dll 30/11/2022 21:39 12ÿ841ÿ984 avformat-59.dll 30/11/2022 21:39 1ÿ188ÿ864 avutil-57.dll 30/11/2022 21:39 613ÿ376 swresample-4.dll 30/11/2022 21:39 678ÿ400 swscale-6.dll

R‚pertoire de c:\ffmpeg 29/05/2022 21:33 72ÿ245ÿ248 avcodec-58.dll 30/11/2022 21:39 78ÿ275ÿ584 avcodec-59.dll 29/05/2022 21:33 1ÿ840ÿ640 avdevice-58.dll 29/05/2022 21:33 12ÿ171ÿ776 avfilter-7.dll 29/05/2022 21:33 12ÿ313ÿ088 avformat-58.dll 30/11/2022 21:39 12ÿ841ÿ984 avformat-59.dll 29/05/2022 21:33 868ÿ864 avutil-56.dll 30/11/2022 21:39 1ÿ188ÿ864 avutil-57.dll 29/05/2022 21:33 136ÿ192 postproc-55.dll 15/11/2018 21:29 146ÿ624 SoundTouch.dll 15/11/2018 21:29 174ÿ272 SoundTouch_x64.dll 29/05/2022 21:33 602ÿ112 swresample-3.dll 30/11/2022 21:39 613ÿ376 swresample-4.dll 29/05/2022 21:33 566ÿ784 swscale-5.dll 30/11/2022 21:39 678ÿ400 swscale-6.dll

SuRGeoNix commented 1 year ago

Hi @LauraKami, FlyleafLib works by default with FFmpeg v4 however if you want to use FFmpeg v5 you will need to add (in your application's NuGet packages) the FFmpeg.Autogen v5.1.1 package. In case you want to use avdevices (dshow etc.) you will need to have also the avdevice, avfilter, postproc dlls but most probably you don't need those. You can download the recommended patched libraries from the releases (both v4/v5 are included and with all the dlls if required). Let me know if you need more clarification!

LauraKami commented 1 year ago

Good evening, Thank you, @SuRGeoNix, Now I understand why I end up in V4. I imitated your examples, and I don't use nuget, I have your library in my project. (project dependency). So I added the ffmpeg.autogen\5.1.1\ nuget and now it works fine. Thank you again for your patience, have a good day. (But, maybe for beginners like me, it would be better to leave in the FFmpeg folder the 4.x and 5.x versions of the dlls, so it will work the first time, especially in this v4/v5 transition period)