silphendio / vr-media-player

Image and video viewer for virtual reality, made with Godot
MIT License
17 stars 2 forks source link

no video in desktop mode #6

Open dei-layborer opened 4 months ago

dei-layborer commented 4 months ago

As the title says, there's no actual video when trying to use this in "desktop" mode (i.e. without a VR headset). There are no error messages related to the file, it just says it initialized the codec. I've added the additional codecs/libraries from the FFMpeg build, but that doesn't help.

The only error I do get is that it can't find OpenXR (which is odd, because it's installed), but then it just says it's switching to flatscreen mode or whatever. But again, this mode doesn't work, and I just get a gray screen.

Any ideas what could be causing this?

AJS-au commented 2 months ago

I think I may have encountered a similar issue. Can you confirm the following:

  1. You're using Godot v4.2.1 or v4.2.2
  2. You can load the file without error
  3. The file is playing audio

If you answered yes to all of the above then your issue is likely related to the EIRTeam.FFmpeg plugin - see https://github.com/EIRTeam/EIRTeam.FFmpeg/issues/23.

The fix is to either:

  1. Use Godot v4.3 (yes, this package says it uses v4.2 but I didn't encounter any errors yet using v4.3); or
  2. Use the previous version of the plugin which is v1.0.4 (instead of v1.1.0)

This package is really just integrating the plugin so I'd expect most issues to be relating to that.

no OpenXR found: proceeding with flatscreen mode

This is related to your comment but unrelated to the problem - I'm assuming this was the error you saw. I'm new to this area but I assume since it's aimed for XR devices and you're using desktop mode it's throwing this error but it can be ignored.