Repository navigation
Conversation
|
I don't claim to know a ton about OBS pull requests and merge etiquette, but I'll comment here that as someone who has been frustrated by this bug for a long time, I've tried this change on my Mac and it's a huge improvement. In my ideal world, the first frame would preload in some way because I can still see a fraction of a second where the scene loads and then the media source pops in a moment afterward, but this fix is much better than the current behavior. It's much less distracting now because the media source starts at the beginning rather than flashing the last frame of the video then jerking back to the beginning. |
When a video source is activated, and played, the last cached frame is shown before the video playback is restarted. This issue occurs mainly when the the video source properties have "Show nothing when playback ends" unticked as the video will persist upon ending, then if you deactivate and reactivate the source, you'll see the last frame appear before the video restarts. This change fixes that issue so that when a video source is activated, it plays from the first frame.
969e8ff to
bf92f0a
Compare
|
Can you please approve and include in the next version? |
|
Hi all, This continues to be a bug on 32.1.1 - could this be looked at please? @SimonGZ it looks like they might be waiting on some changes from you. |
Description
When a video source is activated it appears that the last cached frame is shown before the video playback is restarted. This commit should resolve the issues #2906 and #4667. This issue occurs mainly when the the video source properties have "Show nothing when playback ends" unticked as the video will persist upon ending, then if you deactivate and reactivate the source, you'll see the last frame appear before the video restarts.
The bugged state is shown here: https://www.youtube.com/watch?v=Up3L_4YepRQ
This fixed state, with the changes, is shown here: https://www.youtube.com/watch?v=gjyV74gqOFI
To reproduce the bug in OBS v31.0, add a video media source that has an obvious, and distinct final frame compared to the first frame, activate the source and play the video, when it ends, deactivate the source, activate it and restart the video. The last frame will appear as the initial frame before the video continues to play.
Motivation and Context
It should resolve #2906 and #4667
How Has This Been Tested?
I've tested this by compiling against the current master branch with the proposed changes and activated/deactivated video sources with the multiple properties ticked and unticked. See video linked in the 'Description' above.
Hardware & OS Versions: Asus ROG Maximus XI Hero MB, i9-9900KS, 32GB RAM, RTX 3070, Win11 24H2
Types of changes
Checklist: