Bug Report Hotkey to Unhide Video Overlay Causes Last Frame to Flash

DJ Monopoli

New Member
So I've been having a couple bugs with hiding/unhiding media sources for a while now, but for the sake of providing as much information as possible I'll explain how I have it setup first.

SETUP
I have video overlay media sources (Quicktime animation with alpha layer for transparency) with the following settings in properties:

☐ Loop
☑ Restart playback when source becomes active
☑ Use hardware decoding when available
☐ Hide source when playback ends
☐ Close file when inactive

In "Hotkeys" I have the same hotkey set to both hide AND unhide the video (If it means anything I have 2 different quicktime videos I do this with and I use alt+shift+a for one of them and alt+shift+i for the other) and I set that same hotkey for that media source on every scene so that when I press the hot key, the video plays at the same time and is synced up on all scenes when switching through.

The way it works is the video starts out hidden on all scenes, I hit the hotkey to unhide and activate the media source on all scenes, the quicktime animation plays through on all scenes at the same time and I can switch through the scenes seamlessly and the video is always at the same exact part in each scene.

BUGS
Everything works out great, except for these 2 problems I've always had:

1. Almost every time when I first hit the hotkey it flashes a random frame of the video before the video starts playing. Usually it's the last frame of the video but sometimes it flashes a random frame from the middle of the video depending if I hid the video early last time I played it or not.

2. Sometimes hiding/unhiding the media source doesn't restart playback and the video stays stuck on the last frame despite "restart playback when source becomes active" being checked off. When this happens the only way I found to start the video over is to go to properties for the video and hit okay. This issue happens at random, sometimes it happens every time I do it and sometimes I have trouble reproducing it.

I've experimented with doing this same process with "hide source when playback ends" enabled and "close file when inactive" enabled in properties and had the same issues.

Any thoughts?
 

Iskandar

New Member
Did you find a solution?
I'm having the same problem. Drives me nuts!

Edit: I see the original post is placed in the "Windows Support" section. I'm having the same issue on the Mac.
 

Roninpawn

New Member
Same here on the single frame of stutter at playback start.
I confirm that the frame that flashes before playback begins is the last frame of video OBS displayed through that Media Source.
Please fix.

...as it kind of makes the whole project look dumb when our live video rendering/encoding/broadcasting software can't playback an mp4 properly.
 

Narcogen

Active Member
Have you tried using a hotkey or a third party controller like obs-websocket, UpDeck or Touch Portal, or some other macro solution, to unhide a source in an inactive scene, wait a few milliseconds, and then transition to a a scene that includes the now visible source? The delay would only need to be long enough to hide the bad frame.
 

JackLyttle

New Member
I'm getting this bug too. I don't believe it's specific to hotkeys - I'm getting the error when directly using the UI to show or hide the video.

My videos are mp4s with chromakey. The problem occurs whether or not the chromakey filter is on.

Also, if there's a decent length of time between hiding the video and showing it again, the stray frame doesn't appear.
 
Last edited:

isqfan

New Member
I was just looking this up. I thought it’d be a nightmare to word properly to get a relevant result, but this is it. So, bump, I guess.
 

SteveXM

New Member
I'm having the same exact issue. A solution to this would be amazing. I love using TVs that drop down from out of frame, the only issue is when activating and deactivating the last frame is shown,looks really bad. Please someone help
 

Raxell

New Member
Here with the same issue. It looks horrible when unhide a video or any source and appear the last frame... :(
 

stanmcking

New Member
Same issue here but not only with a hotkey setup by manually clicking it, the last frame pops up quick and then it plays the Alpha animation. Hope to have a solution quick!?
 

guusguus

New Member
Same problem here, using transparent .mov files last frame shows up first and then the video starts. have tested it with exporting a blank frame as last frame, this stops the flashing first frame but also takes away the possibility to stop on the last frame.

Is there a solution to this problem?
 

JackLyttle

New Member
I'm getting this bug too. I don't believe it's specific to hotkeys - I'm getting the error when directly using the UI to show or hide the video.

My videos are mp4s with chromakey. The problem occurs whether or not the chromakey filter is on.

Also, if there's a decent length of time between hiding the video and showing it again, the stray frame doesn't appear.
This problem still exists, but there's a workaround. You'll need a completely transparent .webm file - it only needs to be a second long, if that.

Use this webm file as a "show transition", and set the crossover frame a frame or two from the start. OBS will start playing the source, but not show it until it hits the crossover frame, which happens *after* the stray frame would have flashed up.

Might take a bit of fiddling to get the right crossover point, hard to say because I don't know how much this issue varies from set-up to set-up or machine to machine.
 
Top