-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load DLL 'libffmpeghelper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) #116
Comments
Hi |
I managed to solve it. |
After Compiling The libffmpeghelper. |
It should be automatically included in the C# project, but if not copy it to the bin/debug or bin/release folder. |
I manage to Solve it 👍 |
Still cannot work! |
For me it was the post-build script that copies various DLLs to the build directory that was failing. XCOPY is temperamental and if you have spaces in the path it complains. The solution was to put quotes around the paths: xcopy "$(ProjectDir)x64*.dll" "$(TargetDir)" /Y /E /C /F |
@nshiggins thanks for your instructions. It works but showing another error:
|
@aslamiqbal Sounds like you compiled the project for 64 bit and copied a 32 bit ffmpeg dll file or vise versa. Or you compiled executeable for 64 bit and your Windows is 32 bits. |
Here to revive this thread as I've run into this issue trying to build my own project. Tried following @danelec-hpm steps but still getting the same issue. RtspClientSharp.Rtsp.RtspClientException: Receive error ---> System.DllNotFoundException: Unable to load DLL 'libffmpeghelper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E). |
Describe the bug
I cloned the repository, opened in VS 2019 and installed the Windows SDK that was missing. When running the player I am getting the error:
System.DllNotFoundException: 'Unable to load DLL 'libffmpeghelper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'
For some reason the libffmpeghelper.dll is not automatically copied to the players bin/debug folder?
I tried to copy it manually, but I am still getting above error.
To Reproduce
Clone repo. Build the solution and run the SimpleRtspPlayer sample. Type correct device address, login and password and click Start button.
The code fails at FFmpegVideoDecoder.cs line 37:
int resultCode = FFmpegVideoPInvoke.CreateVideoDecoder(videoCodecId, out IntPtr decoderPtr);
Expected behavior
That the video would just play
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: