obsproject / obsproject/obs-studio
Video with "Restart when active" delayed on scene switch in v30.1
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
- make a new scene
- add a brightly colored Color Source covering the whole canvas
- add a video above the color source, also covering the whole canvas with "Restart Playback when source becomes active" enabled
- switch away from the scene and switch back
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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