obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.38k stars 7.99k forks source link

"Show Transition" on Sources using Video Stingers sometimes don't display the video #8195

Open mape opened 1 year ago

mape commented 1 year ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

29.0.0

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://h.ma.pe/obsStingerIssue.txt

OBS Studio Crash Log URL

No response

Expected Behavior

The Video Stinger should always show when a source is enabled.

Current Behavior

Sometimes it doesn't. See attached videos.

Steps to Reproduce

  1. Add "Show transition" using Stinger to multiple Browser Sources and switch them on and off

Anything else we should know?

Video of it happening with Track Matte enabled. "Sponsors" source only starts working after opening Show Transition options without changing anything: https://im.ma.pe/9a9aec488c63d594011b1d1f03a12943.mp4

Shorter second example with Track Matte disabled. It starts "working" around 5 seconds into the video: https://im.ma.pe/ad15ee423d06c96c68a4f70974c43229.mp4

Note that I updated to 29.0.0 after recording the video and the issue persists.


I have a scene with 4 Browser sources (2x 2560x144, one 1920x1080 and one 640x380). I've added a Show transition to each source using a video Stinger with track matte and sometimes it seems like the video fails to load.

The video file used: webm, Video: VP80 3840x1080 30fps [V: English [eng] (vp8, yuv420p, 3840x1080) [default]]

Although the video doesn't show, after what seems to be the duration of the video the content shows up.

It seems to happen randomly, can't seem to find a stable way to reproduce it.

There are some logs but they don't necessarily seem to correspond to the time the issue happens. 12:36:43.168: Source sourceName Show Transition (Stinger) audio is lagging (over by 1398.03 ms) at max audio buffering. Restarting source audio.

After this log message I stripped the audio from the webm files but that doesn't seem to have solved the issue.

I also get a couple of

12:40:00.008:   input:                   C:/Users/mape/tmp/stinger.webm
12:40:00.008:   input_format:            (null)
12:40:00.008:   speed:                   100
12:40:00.008:   is_looping:              no
12:40:00.008:   is_linear_alpha:         no
12:40:00.008:   is_hw_decoding:          yes
12:40:00.008:   is_clear_on_media_end:   yes
12:40:00.008:   restart_on_activate:     yes
12:40:00.008:   close_when_inactive:     no
12:40:00.008:   ffmpeg_options:

but the timestamps don't line up 1:1 with when the issue happens.

mape commented 1 year ago

Was able to reproduce it using Show Transition Stingers on Display Capture and Images sources as well.

RytoEX commented 1 year ago

Could you please retest in OBS Studio 29.1.0 Beta 3 (or newer) and provide a new log file? We've fixed a few items with stingers since 29.0.0.

Additionally, could you please provide a test stinger/transition file that this happens with? So far, we've been unable to reproduce this in OBS Studio 29.1.0 Beta 3.