CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
912 stars 268 forks source link

Feature request: Mixer Keyer behaviour #453

Open jesperstarkar opened 8 years ago

jesperstarkar commented 8 years ago

From AMCP 2.1 wiki:

Replaces layer n+1's alpha with the R (red) channel of layer n, and hides the RGB channels of layer n

Why was it decided to use the R channel as the source for the keyer? If an alpha channel is available why can't this be the source?

Suggestion: Add an additional parameter mode to the AMCP protocol, indicating which channel(s) to use as key source.

Default value: A (breaking change) or Default value R (current implementation)

Possible values:

"R",        /// red channel
"G",       /// green channel
"B,         /// blue channel
"A,         /// alpha channel
"RGB"   /// rgb channels combined
mint-dewit commented 8 years ago

Every channel is defined by an integer between 0 and 255. In a file with an alpha channel this means four channels: red, green, blue and alpha.

If the file does not support alpha channel it is only mising one channel, thus you add an alpha or keying file, but you only need one of the channels. Inside a key signal all the channels have the same values (that's why it is in black and white) thus it doesn't matter what channel you use.

This issue should probably be closed.