Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
paul-lrr opened this issue Apr 6, 2024 · 3 comments
Open

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

paul-lrr opened this issue Apr 6, 2024 · 3 comments

Comments

@paul-lrr
Copy link

paul-lrr commented Apr 6, 2024

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)

@clr1107
Copy link

clr1107 commented Apr 14, 2024

I've had this issue too. I tried with ProRes and x264 with fastdecode enabled and had the same results, so it may not be a decoding issue. I recorded it in 60fps and with both of these tests I had 1 frame of delay.

@flaeri
Copy link
Contributor

flaeri commented Apr 14, 2024

With this config I can't reproduce, but I need to check the "show nothing when playback ends" for it to trigger.
image

@paul-lrr
Copy link
Author

upon closer inspection, it looks like the above behavior (showing nothing for one frame on scene change) happens when Show Nothing when playback ends is active.
When that setting isn't active, it will instead show one frame of wherever the video was when it last played. If the video is allowed to play completely, it will be the last frame of the video, if you switch away from the scene before the video is done playing, it will be whatever frame was the last displayed. Interestingly, I believe this behavior has been the case since at least v26, but up until v30.1, Show Nothing when playback ends did work properly. It seem likely that both issues have the same underlying cause and were previously mentioned in #4667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants