You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Last frame of media source flashes before starting video playback #4667
First plays last frame and then starts playing from first frame
Steps to Reproduce
Add 'Media source'
Select a local video file (tested with quicktime and transparency and also h264 mp4)
Configure playback with the following settings:
[ ] loop
[x] restart playback when source becomes active
[x] or [ ] use hardware enc..
[ ] show noth...
[x] or [ ] close file when in...
Switch between scenes and the problem appears most of the time, problem is most consistent around lower framerates (25 fps) bu tstill noticeable around higher framerates (50 fps)
Anything else we should know?
The bug was firstly reported in #2906, but it was solved. Now, the bug returned...
So I've also had this issue in v27, but I've come up with a workaround solution utilizing the new Source Transition feature!
Make an Image Source of the last frame of your video and set the Show Transition (stinger) for it to your video file. This way when the transition ends, the video completely unloads and you have a seamless transition into the last frame as a still image. Done!
@tt2468 I'm not the original bug poster, but I can confirm this issue still exists on 29.0.2 on macOS 13.3.
When switching scenes to a scene with a media source that is set to restart playback when the source becomes active, the last frame of the media source will briefly flash on the screen before the video restarts.
I have tested this problem on 30.0.0 and unfortunately the problem remains (at least on my M1 Pro Macbook). I was hoping that #3206 would have fixed the issue but no, I still see the last frame of whatever video just played whenever I enter a slide with a media source set to "Restart playback when source becomes active"
Another way to experience this behavior is simply to toggle the visibility of the media element on and off. You'll see the last frame of the video pop in and then the video suddenly blink back to the beginning.
Before version 30, this bug was reproduced at 60 FPS, and from version 30+ this bug is reproduced at 30 FPS. That's why I always used 30 FPS. But now that doesn't help either. A very disgusting bug, it greatly affects the quality of the output video. I would even say that it becomes a shame for such quality of the video ((((
Is there any update to this issue? I've been monitoring this issue since February and am REALLY looking forward to this being fixed, but it doesn't seem to have went anywhere recently.
Bug still exists in 31.0.0. Only occurs when "Show nothing when playback ends" is unticked. Happens with all video formats. The first time the media source is played it works perfectly but subsequent replays (when the source becomes active) start by flashing up the last frame from when the source was last stopped. Seems like the frame buffer is not being cleared down when playback is stopped/finishes. Windows 10. Occurs with source media matching and not matching canvas base resolution and frame rate.
I have tried out @Poodmund's change and in my limited testing, it seems like a huge improvement. I don't see the last frame popping in anymore.
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 afterward, but it's much less distracting now because it's starting at the beginning rather than flashing the last frame of the video then jerking back to the beginning.
Thank you for your work on this and I hope it's a change that can be approved and added for a future release.
Activity
RytoEX commentedon May 15, 2021
According to the comments on the Issue that you linked, this returned between 26.0.0 and 26.1.1.
If that's the case, then this isn't specifically new to the OBS Studio 27 Release Candidates. Can you reproduce this on the 26.x releases?
mercantigo commentedon May 15, 2021
I managed to reproduce on 26.x release.
I had an older version before (maybe 25.x?) and, on then, the issue didnt happen.
RoyceRemix commentedon Jan 12, 2022
So I've also had this issue in v27, but I've come up with a workaround solution utilizing the new Source Transition feature!
Make an Image Source of the last frame of your video and set the Show Transition (stinger) for it to your video file. This way when the transition ends, the video completely unloads and you have a seamless transition into the last frame as a still image. Done!
SimonGZ commentedon Mar 4, 2022
Noting that this continues to be a problem in OBS 27.2.1 on Mac. This old forum post does a really nice job of visualizing the issue: https://obsproject.com/forum/threads/media-source-rendering-the-last-frame-at-the-beginning.110180/
DrewSunn commentedon Sep 14, 2022
Problem persists on 28.0.1
tt2468 commentedon Apr 3, 2023
@mercantigo Are you still able to reproduce this on 29.0.2?
gravelfreeman commentedon Apr 19, 2023
Unfortunately we changed our After Effects template and we're not using folders in OBS anymore so I can't tell.
SimonGZ commentedon Apr 20, 2023
@tt2468 I'm not the original bug poster, but I can confirm this issue still exists on 29.0.2 on macOS 13.3.
When switching scenes to a scene with a media source that is set to restart playback when the source becomes active, the last frame of the media source will briefly flash on the screen before the video restarts.
SimonGZ commentedon Nov 30, 2023
I have tested this problem on 30.0.0 and unfortunately the problem remains (at least on my M1 Pro Macbook). I was hoping that #3206 would have fixed the issue but no, I still see the last frame of whatever video just played whenever I enter a slide with a media source set to "Restart playback when source becomes active"
Another way to experience this behavior is simply to toggle the visibility of the media element on and off. You'll see the last frame of the video pop in and then the video suddenly blink back to the beginning.
CSMBY commentedon Jan 11, 2024
Before version 30, this bug was reproduced at 60 FPS, and from version 30+ this bug is reproduced at 30 FPS. That's why I always used 30 FPS. But now that doesn't help either. A very disgusting bug, it greatly affects the quality of the output video. I would even say that it becomes a shame for such quality of the video ((((
CSMBY commentedon Jan 11, 2024
The bug is reproduced on all versions 29 and all versions 30. The most basic way to reproduce:
codemann8 commentedon Jun 21, 2024
Is there any update to this issue? I've been monitoring this issue since February and am REALLY looking forward to this being fixed, but it doesn't seem to have went anywhere recently.
VirtuallyJesse commentedon Nov 17, 2024
Bug still exists in 30.2.3
parish-of-brentford commentedon Jan 3, 2025
Bug still exists in 31.0.0. Only occurs when "Show nothing when playback ends" is unticked. Happens with all video formats. The first time the media source is played it works perfectly but subsequent replays (when the source becomes active) start by flashing up the last frame from when the source was last stopped. Seems like the frame buffer is not being cleared down when playback is stopped/finishes. Windows 10. Occurs with source media matching and not matching canvas base resolution and frame rate.
Poodmund commentedon Feb 19, 2025
I've had a bash at resolving this and it seems to be working in my debug build. I have absolutely no idea on the ramifications of what I've done however, so anyone who could review would be greatly appreciated: Poodmund@4986749.
https://www.youtube.com/watch?v=gjyV74gqOFI
obs-ffmpeg: Fix bug with last frame showing on video restart
SimonGZ commentedon Feb 21, 2025
Very exciting. I will try to get this running on my machine to at least offer basic feedback of “yes it worked” or “no it didn’t.”
SimonGZ commentedon Feb 22, 2025
I have tried out @Poodmund's change and in my limited testing, it seems like a huge improvement. I don't see the last frame popping in anymore.
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 afterward, but it's much less distracting now because it's starting at the beginning rather than flashing the last frame of the video then jerking back to the beginning.
Thank you for your work on this and I hope it's a change that can be approved and added for a future release.
contentfree commentedon May 29, 2025
Any chance the PR associated with this will be merged into the next release soon?
codemann8 commentedon Jun 9, 2025
@tt2468 See above comment
SpokeLee commentedon Oct 18, 2025
32.0.1 still has this. Is there an idiots guide to installing a commit from source? I really would like to try @Poodmund's version.