Suppose I have a video foo.mkv and an image bar.png (which has an alpha channel). I can mix this image over the video as follows:
ffmpeg -i foo.mkv -i bar.png -filter_complex "[0:v][1:v]overlay" -vcodec libx264 myresult.mkv
(using a few lines here for readability, usually one command line).
Now, in addition to the png image, which has its own alpha channel, I would also apply general transparency when blending this image on video.
In the example above, the image will be 100% visible on top of the video - or at least the part where its alpha channel is completely opaque.
Is there a way to add a custom general transparency or transparency ratio, something like opacity=0.5 or something else that would make the image only 50% visible?
filter ffmpeg transparency video alpha
Rocketuts
source share