Kevga / BeatSaberCinema

A Beat Saber plugin for PC that allows you to sync up videos to play in the background of your maps.
GNU General Public License v3.0
66 stars 11 forks source link

Video not playing at all #13

Closed PnfrlEnm closed 3 years ago

PnfrlEnm commented 3 years ago

Every time I try to play a song with a video, the video just isn't there. The environment changes / moves as if there's a video playing, but there's no video (it may be black, but either way it doesn't show up). The game is also a slight bit laggier when there's supposed to be a video playing. There's also no audio in the preview mode, and the video there shows up, but it just plays the first few frames and then completely freezes.

_latest.log

Kevga commented 3 years ago

From the BSIPA log you attached I see nothing indicating what's going wrong.

Could you do the following: 1) Try to preview a video again, if possible a different one not in the WIP folder this time just to make sure 2) Start the song, wait for it to start 3) Quit the game, press Win+R, paste %userprofile%\appdata\locallow\Hyperbolic Magnetism\Beat Saber and press Enter 4) Attach the file called Player.log from the Explorer window that opens

That's the log file that Unity creates, video playback errors end up in there.

PnfrlEnm commented 3 years ago

First song (BLACKPINK - Kill This Love) I played the full level but didn't preview in the menu Second song (Madeon - The Prince) I only previewed the video in the menu

Player.log

Kevga commented 3 years ago

And just to make sure, the behavior was the same? Video not playing during gameplay and freezing in the preview? Does any video start playing when you select the level?

The second log didn't show any issues with video playback either, so I'm really not sure where the problem could be. You could try temporarily moving some other mods out of the Plugins folder to check if it's some sort of incompatibility with another mod.

PnfrlEnm commented 3 years ago

The behavior is the exact same. I'll play around with my mods and see if I can find one that's causing an issue.

Kevga commented 3 years ago

By pure chance I was able to reproduce the issue after I tried out the CAS ReShade tool that was posted on BSMG. The Unity video player component seemingly just refuses to play any video (and audio) when ReShade is installed. Do you also happen to use ReShade or something similar?

Here is a discussion about this exact issue in another project I found: https://forums.dfworkshop.net/viewtopic.php?f=22&t=4244 In short, it seems there is some issue with hardware accelerated H264 videos when using ReShade in Unity 2019.4 LTS (possibly only on NVIDIA hardware). GPU utilization increases dramatically after a failed playback attempt. Not much I can do about that sadly, as switching to a different codec is not an option in this case. YouTube only provides H264 and VP9, of which the latter does not work in the Unity video player, and transcoding would take way too long.

PnfrlEnm commented 3 years ago

Lo and behold, I am using ReShade :/