Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
140 stars 2 forks source link

video players desync audio and visuals or lose audio entirely after playing for long times #3200

Open RueShejn opened 2 days ago

RueShejn commented 2 days ago

Describe the bug?

video players set to loop or stream audio seem to just stop playing audio randomly after 30min-1hr of continuous play, videos also desync sound from visuals in sessions with multiple users

only common thing ive been able to figure out is that it usually happens if the player is running for a while non-stop

To Reproduce

spawn a video and set it to loop or spawn in a stream and wait

Expected behavior

the videos should not lose sound to visual sync and the video players should not loose sound when playing normally

Screenshots

No response

Resonite Version Number

Beta 2024.11.19.479

What Platforms does this occur on?

Windows

What headset if any do you use?

desktop, VR

Log Files

DESKTOP-L6KVB13 - 2024.11.19.479 - 2024-11-19 10_13_43.log

Additional Context

Sorry for the large log file it takes a while for these issues to popup

Reporters

No response

shiftyscales commented 2 days ago

This has been previously reported in #1415. As far as I'm aware, this is just something that happens with the currently available playback engines. Whenever there is a client hitch / stutter, the sync will slowly drift with time, this can be seen in the CurrentClockError value on the VideoTextureProvider.

I assume it is something that will be improved / resolved with the VLC upgrade #1476 - but I'm curious if @Frooxius has any suggestions for ways this could possibly be improved in the interim?

In social contexts, users usually resolve this by briefly pausing and resuming playback, which will resynchronize the video and audio until they invariably drift noticeably out of sync again.

I have noticed this issue rather frequently while watching longer-form content with others, but I'm uncertain what all could be done to improve this issue in the short-term.