Skip to content

Last frame of media source flashes before starting video playback #4667

Open

Description

@mercantigo

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

27.0.0-rc3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/BDsWd78G9u6yWpdA

OBS Studio Crash Log URL

No response

Expected Behavior

Play previously video starting with first frame

Current Behavior

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...

Activity

  1. RytoEX commented on May 15, 2021

    @RytoEX
    Member

    According to the comments on the Issue that you linked, this returned between 26.0.0 and 26.1.1.

    I seem to be having this issue again with 26.1.1

    I can confirm this is also happening to me on 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?

  2. mercantigo commented on May 15, 2021

    @mercantigo
    Author

    According to the comments on the Issue that you linked, this returned between 26.0.0 and 26.1.1.

    I seem to be having this issue again with 26.1.1

    I can confirm this is also happening to me on 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?

    I managed to reproduce on 26.x release.
    I had an older version before (maybe 25.x?) and, on then, the issue didnt happen.

  3. RoyceRemix commented on Jan 12, 2022

    @RoyceRemix

    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!

  4. SimonGZ commented on Mar 4, 2022

    @SimonGZ

    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/

  5. DrewSunn commented on Sep 14, 2022

    @DrewSunn

    Problem persists on 28.0.1

  6. tt2468 commented on Apr 3, 2023

    @tt2468
    Member

    @mercantigo Are you still able to reproduce this on 29.0.2?

  7. gravelfreeman commented on Apr 19, 2023

    @gravelfreeman

    Unfortunately we changed our After Effects template and we're not using folders in OBS anymore so I can't tell.

  8. SimonGZ commented on Apr 20, 2023

    @SimonGZ

    @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.

  9. SimonGZ commented on Nov 30, 2023

    @SimonGZ

    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.

  10. CSMBY commented on Jan 11, 2024

    @CSMBY

    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 ((((

  11. CSMBY commented on Jan 11, 2024

    @CSMBY

    @mercantigo Are you still able to reproduce this on 29.0.2?

    The bug is reproduced on all versions 29 and all versions 30. The most basic way to reproduce:

    1. Make a transparent stinger 1 second long, set the transition to 500 ms
    2. Make two scenes where in each a video file is played with a restart option
    3. Constantly switching between two scenes
  12. self-assigned this
    on Jan 15, 2024
  13. codemann8 commented on Jun 21, 2024

    @codemann8

    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.

  14. VirtuallyJesse commented on Nov 17, 2024

    @VirtuallyJesse

    Bug still exists in 30.2.3

  15. parish-of-brentford commented on Jan 3, 2025

    @parish-of-brentford

    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.

  16. Poodmund commented on Feb 19, 2025

    @Poodmund

    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

  17. SimonGZ commented on Feb 21, 2025

    @SimonGZ

    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.”

  18. SimonGZ commented on Feb 22, 2025

    @SimonGZ

    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.

  19. contentfree commented on May 29, 2025

    @contentfree

    Any chance the PR associated with this will be merged into the next release soon?

  20. codemann8 commented on Jun 9, 2025

    @codemann8

    @tt2468 See above comment

  21. SpokeLee commented on Oct 18, 2025

    @SpokeLee

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions