Created
July 26, 2021 11:36
-
-
Save gtnbssn/9c1725444b6d5ddeb2a326c56eadfa59 to your computer and use it in GitHub Desktop.
ffmpeg: make black pixels transparent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://stackoverflow.com/questions/38578363/ffmpeg-overlaying-one-video-on-another-one-and-making-black-pixels-transparent | |
ffmpeg -i [INPUT VIDEO] -filter_complex "[0]split[m][a]; | |
[a]geq='if(gt(lum(X,Y),16),255,0)',hue=s=0[al]; | |
[m][al]alphamerge" output.webm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment