BogdanovKirill / RtspClientSharp

Pure C# RTSP client for .NET Standard without external dependencies and with true async nature. I welcome contributions.
MIT License
694 stars 284 forks source link

x64 libffmpeghelper.dll An attempt was made to load a program with an incorrect format. #101

Closed solonm closed 3 years ago

solonm commented 3 years ago

Hi @BogdanovKirill thank you so much for this project.

I am working on a project that uses you FFmpegVideoPInvoke which in turn uses the libffmpeghelper.dll. I have another library that is only for 64 bit so i need to have all my projects building for x64. I added the dll's from the x64 directory in the bin and when it calls the CreateVideoDecoder method it throws the exception: System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)'

image

If I have my project pointing on x86 this works as expected.

Please let me know if there is anything else i can check or if someone got the x64 dll to work on their project.

Desktop (please complete the following information):

Thanks

solonm commented 3 years ago

I just managed to rebuild the libffmpeghelper project to x64 and it worked as expected. Not sure if there is a problem with the provided dlls

jaydubal commented 11 months ago

Hello @solonm can you please provide your "libffmpeghelper.dll" / x64? thanks.