Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Last frame of media source flashes before starting video playback #2906

Closed
guusguusguus opened this issue May 10, 2020 · 8 comments · Fixed by #3206
Closed

[BUG] Last frame of media source flashes before starting video playback #2906

guusguusguus opened this issue May 10, 2020 · 8 comments · Fixed by #3206
Assignees
Labels
Confirmed This bug report has been confirmed by project members

Comments

@guusguusguus
Copy link

guusguusguus commented May 10, 2020

Platform

Operating system and version: Windows 10, Pro 64-bit
OBS Studio version: 25.0.8

Expected Behavior

Play 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 still noticeable around higher framerates (50 fps)

Additional information

I have a media source with a quicktime video with alpha enabled. When i start the scene with this media source it first shows the last frame of the video and then starts playing the video from the first frame. I have tested it with exporting the video with the last frame fully transparent and this solves the issue but it makes it impossible to end the video on the last frame.

i have also tested it without using transparency (a h264 mp4 file) and it has the same problem

problem persists on older versions (have tested it al the way back to version 16)

I have also been testing with framerates and the problem was most persistent with lower framerates (around 25 fps) and less persistent with higher framerates (around 50 fps) but the problem never really disappeared. the source material for the test was 25 fps

i started a post on the forum:
https://obsproject.com/forum/threads/last-frame-of-media-source-flashes-before-starting-video-playback.121882/

somebody confirms that the problem is also on the linux versions

i have been using the windows version (32 and 64 bit versions)

this is the output of the log file:

2020-05-10 00-55-14.txt

@guusguusguus guusguusguus changed the title Last frame of media source flashes before starting video playback [BUG] Last frame of media source flashes before starting video playback May 10, 2020
@RytoEX
Copy link
Member

RytoEX commented May 10, 2020

Please don't delete the issue template. Please edit your issue to use the template.

@therentabrain
Copy link

Workaround fwiw: I had this problem when going from one video file scene to another. I was able to avoid the flash by adding a full black screen jpg source under the first video. I also changed the first video from internal player to VLC. The second one is the internal player. I don't even remember what inspired this idea, or which one worked, but I hope something here helps.

@notr1ch notr1ch added the Confirmed This bug report has been confirmed by project members label Jun 10, 2020
@notr1ch notr1ch self-assigned this Jun 10, 2020
@chamberlago
Copy link

I seem to be having this issue again with 26.1.1

@tdp4
Copy link

tdp4 commented Apr 26, 2021

I can confirm this is also happening to me on 26.1.1.

@SimonGZ
Copy link

SimonGZ commented Feb 25, 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/

@therentabrain
Copy link

I don't even understand my own workaround above.
The one I use now is to put a very short black screen video file as the top item in the scene. When I switch to the scene, it plays the black frames on top and then that video stops, letting the thing underneath show through.

@DrewSunn
Copy link

Problem persists on 28.0.1

@tomica00
Copy link

Problem persists on 29.1.3
It's really annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed This bug report has been confirmed by project members
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants