-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Kernel32 not found (on linux) GetFunctionPointer #109
Comments
progress on running on linux. Issues with FFmpeg.Autogen. Ruslan-B/FFmpeg.AutoGen#109
I changed the code for GetFunctionPointer
To this based on LoadNativeLibrary
The exception is gone though now I only hear sound, no video and it CTD after a while. It's progress I think though. I'm gonna step through my code see how far it gets before the CTD. I can post more code samples if you want. It's mostly on my Github fork https://github.com/Sebanisu/OpenVIII. I was waiting to pull till i worked out the linux issue. |
Well it is quite obvious you are getting wrong platform id from GetPlatformId. |
Ignore upper comment. Now I see (reformatted your comment), frankly, speaking we did not expected that someone going to use none .NET Standard version of the library on linux environment. I'll integrate your suggestions in to the repo and update the package. |
I was wondering if I should do a fork, commit and do a pull request? Thank you for your time and for this awesome library. |
You can, but I’ll be able to update package next Sunday only. I’m on vacation now and don’t have access to my window machine. (updated comment, as it appears Sunday today 😊) |
Sorry for the delay, I work on the weekends so I couldn't do the pull request till I got home. Have a good vacation. |
ffmpeg.autogen rtsp to rtmp? |
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
**I'm submitting a ... **
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Format = ffmpeg.avformat_alloc_context();
Causes
System.DllNotFoundException: kernel32 at at (wrapper managed-to-native) FFmpeg.AutoGen.Native.WindowsNativeMethods.GetProcAddress(intptr,string) at FFmpeg.AutoGen.Native.FunctionLoader.GetFunctionPointer (System.IntPtr nativeLibraryHandle, System.String functionName) [0x00000] in D:\FFmpeg.AutoGen\FFmpeg.AutoGen\Native\FunctionLoader.cs:55 at FFmpeg.AutoGen.Native.FunctionLoader.GetFunctionDelegate[T] (System.IntPtr nativeLibraryHandle, System.String functionName, System.Boolean throwOnError) [0x00000] in D:\FFmpeg.AutoGen\FFmpeg.AutoGen\Native\FunctionLoader.cs:28 at FFmpeg.AutoGen.ffmpeg.GetFunctionDelegate[T] (System.IntPtr libraryHandle, System.String functionName) [0x00000] in D:\FFmpeg.AutoGen\FFmpeg.AutoGen\FFmpeg.cs:50 at FFmpeg.AutoGen.ffmpeg+<>c.<.cctor>b__4_318 () [0x00000] in D:\FFmpeg.AutoGen\FFmpeg.AutoGen\FFmpeg.functions.export.g.cs:7163 at FFmpeg.AutoGen.ffmpeg.avformat_alloc_context () [0x00000] in D:\FFmpeg.AutoGen\FFmpeg.AutoGen\FFmpeg.functions.export.g.cs:7176 at FF8.FfccVaribleGroup..ctor () [0x0009c] in /home/robert/OpenVIII/FF8/FfccVaribleGroup.cs:53 at FF8.Ffcc..ctor (System.String filename, FFmpeg.AutoGen.AVMediaType mediatype, FF8.Ffcc+FfccMode mode) [0x00008] in /home/robert/OpenVIII/FF8/Ffcc.cs:31 at FF8.Module_movie_test.InitMovie () [0x00001] in /home/robert/OpenVIII/FF8/module_movie_test.cs:160 at FF8.Module_movie_test.Update () [0x000c5] in /home/robert/OpenVIII/FF8/module_movie_test.cs:88 at FF8.ModuleHandler.Update (Microsoft.Xna.Framework.GameTime gameTime) [0x000ac] in /home/robert/OpenVIII/FF8/ModuleHandler.cs:43 at FF8.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) [0x00030] in /home/robert/OpenVIII/FF8/Game1.cs:69 at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) [0x00019] in <4fc8466c27384bb19c7b81b2a6a71083>:0 at Microsoft.Xna.Framework.Game.Tick () [0x00103] in <4fc8466c27384bb19c7b81b2a6a71083>:0 at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () [0x00021] in <4fc8466c27384bb19c7b81b2a6a71083>:0 at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x0008b] in <4fc8466c27384bb19c7b81b2a6a71083>:0 at Microsoft.Xna.Framework.Game.Run () [0x0000c] in <4fc8466c27384bb19c7b81b2a6a71083>:0 at FF8.Program.Main () [0x00007] in /home/robert/OpenVIII/FF8/Program.cs:17
*If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem:
If I try to use any ffmpeg. functions exception occurs.
This function should alloc a avformatcontext
What is the motivation / use case for changing the behavior?
I would like my code to work in linux and windows.
Currently working fantastically in windows.
Please tell us about your environment:
MonoDevelop 7.7 (build 1869)
Target framework: .Net Framework 4.6
FFmpeg.AutoGen 4.1.0.2
MonoGame.Framework.DesktopGL 3.7.1.189
MonoGame.Framework.Desktop 3.7.0.7
MonoGame.Framework.OpenGL 3.7.1.189
NAudio 1.8.5
NAudio.Vorbis 1.0.0
NVorbis 0.8.6
on Ubuntu 18.10 64-bit running on VirtualBox 6.0
MaKiPL/OpenVIII-monogame#12 <-- the project i'm working on.
https://stackoverflow.com/questions/55405051/kernel32-not-found-when-using-ffmpeg-autogen-4-1-0-2-in-mono-linux <-- the question I posted on stack overflow.
The text was updated successfully, but these errors were encountered: