UnityVLCIntegration
UnityVLCIntegration copied to clipboard
DllNotFoundException
I tried to run the demo, but dont work i got this error when i hit play DllNotFoundException: VlcUnityWrapper UseRenderingPlugin.createTextureAndPassToPlugin () (at Assets/UseRenderingPlugin.cs:169) UseRenderingPlugin.Start () (at Assets/UseRenderingPlugin.cs:179)
I'm testing on windows
I guess it's because the dll is not shared with windows, it's possible to generate a dll for windows? @nimag42
Hello @kelvinRosa, you're right, I didn't packaged the lib for Windows, there is no dll in the repo. If you're familiar with Makefile and building libs, you can tweak the Makefile in the "VLC-Unity-Wrapper" dir, to compile the sources to build the dll. I suppose changing the CXXFLAGS, LIBS and PLUGIN_SHARED variable should be enough... I have actually never compiled libs for Windows..
I will make an attempt this evening on my Windows computer.
@nimag42 i'm not too familiar with makefile, did some builds in the past, but if you are able to try this attemp i'll be very happy to test and try here too to help you improve this, i'm searching for a way to play vlc videos in months.
Well, I managed to build a 32 bit version of the lib on Windows, but I can't test it since my version of the Editor is 64 bits. I'm struggling to build a 64 bits version, but I will continue to try
I just committed ( b23c382 ) a dll I managed to compile.
You need libvlc.dll and libvlccore.dll in some folder in $PATH such as C:\Windows\System32 You can find libvlc and libvlccore from the install dir of VLC (it need to be a 64bits install, typically C:\Program Files\VideoLan\VLC)
Be sure to update the path of videos in useRenderingPlugin.cs
I'll test and tell you
2018-02-22 20:13 GMT-03:00 Jacquin Théo [email protected]:
I just committed ( b23c382 https://github.com/nimag42/UnityVLCIntegration/commit/b23c382035a410c3148dc7538935509ceb33a3fb ) a dll I managed to compile.
You need libvlc.dll and libvlccore.dll in some folder in $PATH such as C:\Windows\System32 You can find libvlc and libvlccore from the install dir of VLC (it need to be a 64bits install, typically C:\Program Files\VideoLan\VLC)
Be sure to update the path of videos in useRenderingPlugin.cs
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nimag42/UnityVLCIntegration/issues/1#issuecomment-367855299, or mute the thread https://github.com/notifications/unsubscribe-auth/AE5KePW5Os_CDc8u_iHWAE18VtqcQzdwks5tXfSdgaJpZM4SKB4A .
Dont know why but every time that i try to play my unity and my build crashes, at first time i was receiving a error, but when i put the vlc dlls to system path, the error stops, but them that crashes appear.
Ouch... Do you have any crash log ?
Despite the new dll, it still suffers from the same issue. Running on windows 10. Already put on the $Path variable the path to the libvlc dlls.
DllNotFoundException: VlcUnityWrapper UseRenderingPlugin.createTextureAndPassToPlugin () (at Assets/UseRenderingPlugin.cs:169) UseRenderingPlugin.Start () (at Assets/UseRenderingPlugin.cs:179)
Any ideas on how to solve this nimag42?
Thank you for time
@nimag42 Great project and I am using your windows dll and I added the C:\Program Files\VideoLan\VLC to my PATH variables and I don't see the crashes but nothing plays. I updated the UseRenderingPlugin.cs to play a local and two remote but nothing plays. Just wondering if anyone else got this to work?
Actually I take that back it does actually play but only the audio not the video.
Facing the same issue here even though the VlcUnityWrapper dll is in the Assets/x86_64 folder
DllNotFoundException: VlcUnityWrapper
C:\Program Files\VideoLAN\VLC is already added to the $Path. Do I need a 32 bit editor to make it work?
Hi, I am facing the same issue. Did someone fix this?
Hi @nimag42 !
Cool idea!
But my unity is crashing :(
Stack Trace of Crashed Thread 10776:
0x00007FFB51F6E5A8 (libvlccore) vlc_mutex_lock
0x00007FFB7C3F1825 (libvlc) libvlc_retain
0x00007FFB7C3FC135 (libvlc) libvlc_media_new_from_input_item
0x00007FFB7C3FC368 (libvlc) libvlc_media_new_location
0x00000000687C1D5C (VlcUnityWrapper) launchVLC
0x000000003A644688 (Assembly-CSharp) UseRenderingPlugin.launchVLC()
0x000000003A6440F3 (Assembly-CSharp) UseRenderingPlugin.OnMenuClick()
0x000000003A643EA9 (UnityEngine.CoreModule) UnityEngine.Events.InvokableCall1.Invoke() 0x000000003A643D43 (UnityEngine.CoreModule) UnityEngine.Events.CachedInvokableCall
1.Invoke()
0x000000003A6408D7 (UnityEngine.CoreModule) UnityEngine.Events.UnityEvent.Invoke()
0x000000003A6401D3 (UnityEngine.UI) UnityEngine.UI.Button.Press()
0x0000000035DDFF5B (UnityEngine.UI) UnityEngine.UI.Button.OnPointerClick()
0x000000003A59FFC1 (UnityEngine.UI) UnityEngine.EventSystems.ExecuteEvents.Execute()
0x000000003A5964C1 (UnityEngine.UI) UnityEngine.EventSystems.ExecuteEvents.Execute()
0x0000000035DF99AB (UnityEngine.UI) UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress()
0x0000000035DEBC4B (UnityEngine.UI) UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent()
0x0000000035DEB82B (UnityEngine.UI) UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent()
0x0000000035DE90EB (UnityEngine.UI) UnityEngine.EventSystems.StandaloneInputModule.Process()
0x0000000035DB8C67 (UnityEngine.UI) UnityEngine.EventSystems.EventSystem.Update()
0x000000003A585C58 (mscorlib) System.Object.runtime_invoke_void__this__()
0x00007FFB59A4A1EB (mono-2.0-bdwgc) mono_get_runtime_build_info
0x00007FFB599D1A92 (mono-2.0-bdwgc) mono_perfcounters_init
0x00007FFB599DAA7F (mono-2.0-bdwgc) mono_runtime_invoke
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 0000000140BDBF7A)
0x0000000140BDBF7A (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 0000000140BD4970)
0x0000000140BD4970 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 0000000140B89CE8)
0x0000000140B89CE8 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 0000000140B8A3C9)
0x0000000140B8A3C9 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001406CAF79)
0x00000001406CAF79 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001406D09D8)
0x00000001406D09D8 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 0000000140948A33)
0x0000000140948A33 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 000000014094747B)
0x000000014094747B (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 0000000140947544)
0x0000000140947544 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 000000014094A02C)
0x000000014094A02C (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001413CBE87)
0x00000001413CBE87 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001413CAD34)
0x00000001413CAD34 (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001415C490D)
0x00000001415C490D (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001415C6BFC)
0x00000001415C6BFC (Unity) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00000001420A09B7)
0x00000001420A09B7 (Unity) (function-name not available)
0x00007FFB99A23034 (KERNEL32) BaseThreadInitThunk
0x00007FFB9BB43691 (ntdll) RtlUserThreadStart
I have built dll for win64. But when I use it I have Unity crash without crash-logs