Questions tagged [chromakey]

The technique has been used in many fields to remove a background from the subject of a photo or video – particularly the newscasting, motion picture, and video game industries. A color range in the foreground footage is made transparent, allowing separately filmed background footage or a static image to be inserted into the scene. The chroma keying technique is commonly used in video production and post-production. This technique is also referred to as color keying, colour-separation overlay (CSO; primarily by the BBC), or by various terms for specific color-related variants such as green screen, and blue screen – chroma keying can be done with backgrounds of any color that are uniform and distinct, but green and blue backgrounds are more commonly used because they differ most distinctly in hue from most human skin colors. No part of the subject being filmed or photographed may duplicate the color used as the backing.

It is commonly used for weather forecast broadcasts, wherein a news presenter is usually seen standing in front of a large CGI map during live television newscasts, though in actuality it is a large blue or green background. When using a blue screen, different weather maps are added on the parts of the image where the color is blue. If the news presenter wears blue clothes, his or her clothes will also be replaced with the background video. Chroma keying is also common in the entertainment industry for visual effects in movies and video games.

87 questions
3
votes
1 answer

Android video remove chroma key background

I have checked this question. It is very similar: I want to record a video with android camera. After that with a library remove the background, which is with chroma key. First I think I should use android NDK in order to escape from SDK memory…
Moni
  • 65
  • 1
  • 7
3
votes
1 answer

How to remove green background of a video, making it transparent?

I have a video with a green background. I want to remove this green section (Chroma key), making it transparent, and then display the video over the website background. I can only find complex code that uses images.
Programmer123
  • 31
  • 1
  • 2
3
votes
1 answer

Faster method for adjusting PIL pixel values

I'm writing a script to chroma key (green screen) and composite some videos using Python and PIL (pillow). I can key the 720p images, but there's some left over green spill. Understandable but I'm writing a routine to remove that spill...however I'm…
Mike Bosland
  • 33
  • 1
  • 4
3
votes
1 answer

Set specific color in qt5 webview transparent

I'm developing Qt5 webview based application and I need to make a specific color inside webview be transparent or have an alpha channel. For example, web page, loaded into webview, may have fullscreen div with a background color (black in most…
VaMpir
  • 61
  • 2
  • 6
3
votes
6 answers

GPUImage terminates due to [AVAssetWriter startWriting] Cannot call method when status is 3'

I am having an issue running GPUImage. I have modified SimpleVideoFileFilter program(replaced the filter with a chromakeyfilter) and am using my own video. My program is terminating due to the following error: [AVAssetWriter startWriting] Cannot…
user2869423
  • 31
  • 2
  • 3
3
votes
2 answers

ChromaKey FLV Transparency

I have over 20000 FLV's at the moment. They currently have no alpha channel and are all CGI generated text on a black background. My issue: I need to be able to remove the black background and make it transparent, so I can use these videos to layer…
1321941
  • 2,139
  • 5
  • 26
  • 49
2
votes
0 answers

Is it possible to do a chromakey in a VideoView in Android

I am searching for a way to make certain colors in an android VideoView transparent like is shown in this HTML5 example: http://www.tinkernut.com/demos/273_chroma/video_chroma.html Here they specify range of rgb values that for each pixel in each…
ZippyFerguson
  • 889
  • 1
  • 7
  • 8
2
votes
1 answer

Data via Buffer Post Xcode 11.5 Update

What I Have: Referencing Apple's Chroma Key Code, it states that we can create a Chroma Key Filter Cube via func chromaKeyFilter(fromHue: CGFloat, toHue: CGFloat) -> CIFilter? { // 1 let size = 64 var cubeRGB = [Float]() //…
impression7vx
  • 1,728
  • 1
  • 20
  • 50
2
votes
2 answers

chromakey: ffmpeg green color video removal

I am using ffmpeg on Mac to remove green background of video and add other background as image it is converting properly the video but auido is missing. I am using below command. Am I doing anything wrong here? ffmpeg -i bg.jpg -i input.mp4…
AppleBee
  • 1,199
  • 12
  • 26
2
votes
1 answer

Chromakey component on a-frame works on desktop but fails on android mobile, how can i fix it?

I need to show transparent videos on a-frame that work both on android and iphone. I'm using this component: https://www.npmjs.com/package/aframe-chromakey-material This chromakey component is working perfect with mp4 videos on desktop PC, but on…
Javier Gonzalez
  • 369
  • 1
  • 2
  • 9
2
votes
1 answer

Chroma key in aframe

How to chroma key a video in aframe? I want to have a video of a person looking like an hologram in aframe. I've been looking into this but can't make it work for some reason. Does anyone has any idea of how to chroma key in aframe? (or another…
dianadf
  • 73
  • 1
  • 9
2
votes
2 answers

OpenGL: Chromakey With White

I am following this guide by Erik Buck to get a green screen effect for my video processing. This works absolutely marvelous but it doesn't exactly meet my requirement. I am tasked with using OpenGL in my iOS project to 'cut out' the white using…
Brandon A
  • 8,153
  • 3
  • 42
  • 77
2
votes
1 answer

Get a pixel color from GPUImageVideoCamera

I've created a simple green screen with GPUImage library and the following code: import UIKit import GPUImage class CaptureViewController: UIViewController { var videoCamera:GPUImageVideoCamera? var filter:GPUImageChromaKeyFilter? @IBOutlet…
Shlomi Schwartz
  • 8,693
  • 29
  • 109
  • 186
2
votes
1 answer

How to do Chroma Keying in ios to process a video file using Swift

I am working on a video editing application. I need a function to do chroma keying and replace green background in a video file (not live feed) with an image or another video. I have looked through the GPUImage framework but it is not suitable for…
JpHerron
  • 21
  • 1
  • 3
2
votes
1 answer

Android: Chroma key performance for video

I have a video stream and like to apply a chroma key effect on it. I tried this GPU library but it is even slower as my own code: public class ChromaKey { int[] pix; Bitmap bm; int picw, pich; int index, cur_pix, red2, green2,…
PiTheNumber
  • 22,828
  • 17
  • 107
  • 180