obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
57.29k stars 7.72k forks source link

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

Open mercantigo opened 3 years ago

mercantigo commented 3 years ago

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

RytoEX commented 3 years ago

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?

mercantigo commented 3 years ago

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.

RoyceRemix commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

Problem persists on 28.0.1

tt2468 commented 1 year ago

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

gravelfreeman commented 1 year ago

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

SimonGZ commented 1 year ago

@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 commented 7 months ago

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 commented 6 months ago

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 commented 6 months ago

@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 2) Constantly switching between two scenes

codemann8 commented 2 weeks ago

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.