SviMik
2017-05-09 02:17:36 UTC
Let's assume A is a video, and B is a png image with alpha channel. I need
to do the following blending (assuming the format is rgba and B_alpha is in
0...1 range):
red = (A_red - B_red * B_alpha) / (1 - B_alpha);
green = (A_green - B_green * B_alpha) / (1 - B_alpha);
blue = (A_blue - B_blue * B_alpha) / (1 - B_alpha);
I was looking into "blend" filter, but it seems I can't access the other
channels data.
The "geq" filter is limited to a single source.
What shall I use it that case?
I really hate the idea of digging into ffmpeg sources and writing my own
filter. Is there any chance to do this kind of blending without that?
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org wit
to do the following blending (assuming the format is rgba and B_alpha is in
0...1 range):
red = (A_red - B_red * B_alpha) / (1 - B_alpha);
green = (A_green - B_green * B_alpha) / (1 - B_alpha);
blue = (A_blue - B_blue * B_alpha) / (1 - B_alpha);
I was looking into "blend" filter, but it seems I can't access the other
channels data.
The "geq" filter is limited to a single source.
What shall I use it that case?
I really hate the idea of digging into ffmpeg sources and writing my own
filter. Is there any chance to do this kind of blending without that?
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org wit