Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

[FEATURE]: Allow setting the chroma key / color key color from OBS defaults #209

Open
lhriley opened this issue Aug 24, 2023 · 1 comment
Labels
feature New feature or request

Comments

@lhriley
Copy link

lhriley commented Aug 24, 2023

Description

The current chroma key color in vpuppr appears to be #00d150 (ref) which is very difficult to properly key out as it doesn't seem to relate to any standard color keys.

OBS allows chroma keying on any color, which may or may not be easy to implement in vpuppr. As a middle ground, vpuppr should support the pre-defined colors that OBS has:

  • Green #00ff00
  • Blue #ff9900
  • Magenta #ff00ff

Additionally, the OBS color key filter supports:

  • Red #0000ff

Why is this needed

Since this color is relatively non-standard it is very difficult to properly key out. This results in noisey edges around the object which look messy and reduce the quality of the resulting image.

Additional information

Chroma Key:

https://github.com/obsproject/obs-studio/blob/cdced774e88d4049ac9f3f3810c4c10f6eff43ac/plugins/obs-filters/chroma-key-filter.c#L154-L159

https://github.com/obsproject/obs-studio/blob/cdced774e88d4049ac9f3f3810c4c10f6eff43ac/plugins/obs-filters/chroma-key-filter.c#L188-L193

Color key:

https://github.com/obsproject/obs-studio/blob/cdced774e88d4049ac9f3f3810c4c10f6eff43ac/plugins/obs-filters/color-key-filter.c#L138-L145

https://github.com/obsproject/obs-studio/blob/cdced774e88d4049ac9f3f3810c4c10f6eff43ac/plugins/obs-filters/color-key-filter.c#L164-L171

For additional reference, this site shows the "official" green screen color and the closest safe colors for various processes:
https://www.color-name.com/green-screen.color

@lhriley lhriley added the feature New feature or request label Aug 24, 2023
@you-win
Copy link
Member

you-win commented Sep 14, 2023

For what it's worth, the current release version of vpuppr should be using #00b140 (or something close to it), which is one of the first search results for "chroma key green hex code" on Google.

The chroma key png file was only there for testing (or at least it should have been).

I will take into account the OBS defaults, since that's probably what most people are using to capture anyways.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants