New chroma keying implementation

#1
In the latest builds of CasparCG Server 2.1.0 the chroma key shader has been rewritten to work in HSB/HSV instead of RGB, this allows for the following parameters to be changed:
  • Hue
  • Hue Width
  • Minimum Saturation
  • Minimum Brightness/Value
Parameters that are no longer needed because of the above:
  • Predefined Color
  • Threshold
I have created a JavaFX tool for testing out the new features before they are available in the CasparCG Client:
http://casparcg.com/builds/CasparCG%20T ... encies.jar
It requires Java 8 and can be started with

Code: Select all

java -jar tools-chromakey-1.0-SNAPSHOT-jar-with-dependencies.jar
chroma_key_gui.png
chroma_key_gui.png (22.88 KiB) Viewed 1124 times
The tool can work in realtime against the CasparCG Server but can also export a Custom Command to the clipboard that you can paste as a rundown item in the CasparCG Client.

I recommend starting with keying something like:

Image

Spectrum.2400.1800.S.G [Public domain], by Bautsch 16:36, 18 January 2008 (UTC) (Own work), from Wikimedia Commons

.. to get a feel for how it works.

Re: New chroma keying implementation

#3
jackreynolds wrote:Here is a question - is there a way to define colors to never be keyed? Like to ensure that a certain color cannot be keyed in it?
That makes no sense to me. What is your question, and what would you like to do? Normally a choma key is defined by selecting a color to key. All other colors do not key...
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: New chroma keying implementation

#7
jackreynolds wrote:Dumb question: Is there a reason to use that command to start the application that I am missing? Double clicking seems to run it just fine for me on Mac.
What are you talking about? The tread is entitled "New chroma keying implementation".
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: New chroma keying implementation

#10
I have now updated the spill suppression algorithm to work in the HSV color space and it works really well. Download the updated test client: http://casparcg.com/builds/CasparCG%20T ... encies.jar

And the latest build of the server to test:
http://casparcg.com/builds/CasparCG%20S ... nux.tar.gz

The windows build server seems to take forever, so we will see when http://casparcg.com/builds/CasparCG%20S ... indows.zip will be up.

Who is online

Users browsing this forum: No registered users and 3 guests

cron