obsproject / obsproject/obs-studio

Video with "Restart when active" delayed on scene switch in v30.1

Open
#10,488 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

30.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/aJxsFw6zyhrOQYd4

OBS Studio Crash Log URL

No response

Expected Behavior

Switching to a scene containing a video with "Restart Playback when source becomes active" enabled will immediately play the video without showing anything behind the video source. This was the behavior in v30

Current Behavior

In v30.1, when switching to a scene containing a video with "Restart Playback when source becomes active" enabled, there is at least one frame before the video loads and plays, resulting in a brief view of whatever is behind the video. eg. black, if the video is by itself, or other parts of the scene, if the video is in front of something.

Steps to Reproduce
  1. make a new scene
  2. add a brightly colored Color Source covering the whole canvas
  3. add a video above the color source, also covering the whole canvas with "Restart Playback when source becomes active" enabled
  4. switch away from the scene and switch back
  5. you will see a brief flash of the color source before the video starts playing
Anything else we should know?

I've done a few tests using identical scene collections and it doesn't happen with v30. I've also tested it on several different windows 10 computers with the same results. I'm not using "Close File When Inactive" and this happens every time I switch to the scene, so it doesn't seem to be related to whether the video is loaded into memory. It also happens regardless of the video format (mov, mp4, webm, etc)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the scene-switch behavior described in the issue on OBS Studio 30.1.1 using the linked log and the listed source settings. Trace video-source activation and rendering during a scene switch, then verify that the first visible frame is the video rather than the underlying source.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.