BtbN / FFmpeg-Builds

MIT License
7.76k stars 1.07k forks source link

Replacing the ffmpeg dll to achieve alpha channel support #419

Closed koenheltzel closed 2 weeks ago

koenheltzel commented 2 weeks ago

Hi! I'm very excited to use the plugin, but I really need alpha channel support in my project. I'm developing on Windows 10.

Here there's mention of "replacing" .dll files and that "The LGPL builds found here" should also be compatible. I don't "build" stuff regularly so a ready made replacement sounds good to me. I picked the 6.1 lgpl shared build because the .dll names in the bin folder (avcodec-60.dll, avfilter-9.dll etc) match the ones in your latest build. However those builds don't contain a libgdffmpeg.windows.template_release.x86_64.dll equivalent but instead an executable ffmpeg.exe. image

I'm a trial and error kind of person, so I tried copying the .dll files that are there to the addon folder. If I then run my Godot project, I see a lot more "Supported video codecs" being printed, but I'm met with this error:

VideoDecoder::recreate_codec_context: Couldn't copy codec parameters from h264: Cannot allocate memory
  <C++ Error>    Condition "param_copy_result < 0" is true. Returning: FAILED
  <C++ Source>   D:\a\EIRTeam.FFmpeg\EIRTeam.FFmpeg\video_decoder.cpp:203 @ VideoDecoder::recreate_codec_context()

So, am I misunderstanding that those builds are a drop-in replacement and you have to build the ffmpeg dll yourself?

Thank you very kindly for the work you've done and for looking into my noob issue!

koenheltzel commented 2 weeks ago

Sorry, wrong repository to submit this issue to!