-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromakey filter #388
Comments
This works just fine here. I get no errors. |
I downloaded and installed javacpp-presets module with gradle:
Am I using the latest version ffmpeg (3.0.1)? If I write How I can see the version ffmpeg in my project? |
Try to install it manually: https://github.com/bytedeco/javacpp-presets/#manual-installation |
I added next files:
and get this error :
|
chromakey filter was added in ffmpeg version 3.0 |
JavaCV 1.2 uses FFmpeg 3.0 so this should now work. Enjoy! |
I have video with green background. I can use ffmpeg with chromakey filter in command line on Windows.
ffmpeg -i video.mp4 -i punch_green.mp4 -filter_complex "[1:v]chromakey=0x12da11:0.2:0.2[chromakey_res];[0:v][chromakey_res]overlay=eof_action=pass[out]" -map "[out]" out.mp4
This example gets second video, removes green background and then overlays it on first video.
How can I do this with FFmpegFrameFilter?
When do I try execute this code
FFmpegFrameFilter filter = new FFmpegFrameFilter("chromakey=0x12da11:0.2:0.2", grabberEffect.getImageWidth(), grabberEffect.getImageHeight());
I take next error
Error: No such filter: 'chromakey'
The text was updated successfully, but these errors were encountered: