mrayGStreamerUnity icon indicating copy to clipboard operation
mrayGStreamerUnity copied to clipboard

Test scenes can not be run

Open 18rmt14 opened this issue 7 years ago • 3 comments

I tried following the steps the README.md.(excepted step 4.I used visual studio 2017 & runtimes x64 version) But i can not run Test 1.unity.I get errors in console:

NullReferenceException: Object reference not set to an instance of an object
CustomPipelinePlayer.Update () (at mrayGStreamerUnity-master/mrayGStreamerUnity-master/Unity/UnityTests/Assets/GStreamerUnity/Components/CustomPipelinePlayer.cs:69)

I confirmed that gstreamer was installed properly. What do i need to do to solve this problem ?

18rmt14 avatar Nov 29 '18 10:11 18rmt14

@18rmt14, I am getting this problem of "Plugin Load Error" While running the test scenes, its giving error

Failed to load 'Assets/Plugins/x86_64/GStreamerUnityPlugin.dll' with error 'The specified module could not be found. '. GstBaseTexture:Initialize() (at Assets/GStreamerUnity/Scripts/GstBaseTexture.cs:92) GstBaseTexture:Initialize() (at Assets/GStreamerUnity/Scripts/GstBaseTexture.cs:88) CustomSBSPipelinePlayer:Start() (at Assets/GStreamerUnity/Components/CustomSBSPipelinePlayer.cs:39)

@18rmt14 can u plz tell me whether u have gotten this kind of problem or not? and please suggest me some possible ways to resolve this.

spaul13 avatar Apr 06 '19 00:04 spaul13

@18rmt14, I am getting this problem of "Plugin Load Error" While running the test scenes, its giving error

Failed to load 'Assets/Plugins/x86_64/GStreamerUnityPlugin.dll' with error 'The specified module could not be found. '. GstBaseTexture:Initialize() (at Assets/GStreamerUnity/Scripts/GstBaseTexture.cs:92) GstBaseTexture:Initialize() (at Assets/GStreamerUnity/Scripts/GstBaseTexture.cs:88) CustomSBSPipelinePlayer:Start() (at Assets/GStreamerUnity/Components/CustomSBSPipelinePlayer.cs:39)

@18rmt14 can u plz tell me whether u have gotten this kind of problem or not? and please suggest me some possible ways to resolve this.

Not the exact same error but I also meet the DllNotFound error. This problem may be caused by https://github.com/mrayy/mrayGStreamerUnity/issues/13. After changing the local gstreamer version from minGW to msvc, my test scene can find the DLL.

JinghaoZhao avatar Nov 04 '20 22:11 JinghaoZhao

The two versions of GStreamer runtimes have different dll conventions:

  • mingw uses "lib" prefix for the dlls, which leads to the error gstreamer dlls are not found.

The compiled version in this repo takes to assumption that the installed gstreamer dlls don't have such prefix.

You could also double check that by using a dependency walker, which you can test the plugin dll to check any missing dependencies: https://www.dependencywalker.com/

mrayy avatar Nov 05 '20 05:11 mrayy