obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Last frame of media source flashes before starting video playback

Open mercantigo opened this issue 4 years ago • 19 comments

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 https://github.com/obsproject/obs-studio/issues/2906, but it was solved. Now, the bug returned...

mercantigo avatar May 08 '21 05:05 mercantigo

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?

RytoEX avatar May 15 '21 07:05 RytoEX

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.

mercantigo avatar May 15 '21 17:05 mercantigo

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!

RoyceRemix avatar Jan 12 '22 23:01 RoyceRemix

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/

SimonGZ avatar Mar 04 '22 18:03 SimonGZ

Problem persists on 28.0.1

DrewSunn avatar Sep 14 '22 10:09 DrewSunn

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

tt2468 avatar Apr 03 '23 01:04 tt2468

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

gravelfreeman avatar Apr 19 '23 23:04 gravelfreeman

@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 avatar Apr 20 '23 17:04 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.

SimonGZ avatar Nov 30 '23 19:11 SimonGZ

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 avatar Jan 11 '24 12:01 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

CSMBY avatar Jan 11 '24 12:01 CSMBY

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.

codemann8 avatar Jun 21 '24 10:06 codemann8