Hi All,<br><br>I am using videomixer to compose four images.<br>0 -- background large, all black, alpha=0.0<br>1,2,3 -- foreground, small, alpha=0.5<br><br><br>Images 2 and three are partially overlapping.<br><br>The problem is that portions of image 2 and 3 that do not overlap are too dark.<br>
They look faded.<br><br>Since the contribution of the background is zero, I would expect the brightness of forground images to be unchanged from original image.<br><br>I wonder if there is some problem having to do with conventions regarding pre-multiplied alpha.<br>
Maybe I need to use special plugin to convert back to non-alpha colorspace.<br><br>My pipeline follows.<br>Any help greatly appreciated.<br><br>Thanks much,<br>Bert Douglas<br><br> videomixer name=mix<br> sink_0::zorder=0 sink_0::xpos=+000 sink_0::ypos=+000<br>
sink_1::zorder=1 sink_1::xpos=+250 sink_1::ypos=-100<br> sink_2::zorder=2 sink_2::xpos=+100 sink_2::ypos=+200<br> sink_3::zorder=3 sink_3::xpos=+400 sink_3::ypos=+200<br> ! ffmpegcolorspace<br>
! xvimagesink name=sink force-aspect-ratio=1<br><br> videotestsrc name=src0 pattern="black"<br> ! video/x-raw-rgb, framerate=1/10, width=1000, height=1000<br> ! videobox name=box0 alpha=0.0<br> ! mix.sink_0<br>
<br> videotestsrc name=src1 pattern="smpte"<br> ! video/x-raw-rgb, framerate=10/1, width=400, height=300<br> ! videobox name=box1 bottom=-200 right=-200 border-alpha=0.0 alpha=0.5<br> ! circle name=cir1 angle=0.0 height=200<br>
! mix.sink_1<br><br> videotestsrc name=src2 pattern="checkers-8"<br> ! video/x-raw-rgb, framerate=10/1, width=400, height=300<br> ! videobox name=box2 bottom=-200 right=-200 border-alpha=0.0 alpha=0.5<br>
! circle name=cir2 angle=120.0 height=200<br> ! mix.sink_2<br><br> videotestsrc name=src3 pattern="snow"<br> ! video/x-raw-rgb, framerate=10/1, width=400, height=300<br> ! videobox name=box3 bottom=-200 right=-200 border-alpha=0.0 alpha=0.5<br>
! circle name=cir3 angle=-120.0 height=200<br> ! mix.sink_3 <br><br>