mixed video background color

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mixed video background color

Johan Basore
Hello everyone,

I composed 2 video streams into one video. So it works well.
But the problem is that the background of mixed video is transparent.
I want a solid black background.
Is there any way?
Here are source codes and screenshots.

***********************************************************
    gst_element_link(source1, decodebin1);
    gst_element_link(source2, decodebin2);
   
    g_signal_connect(decodebin1, "pad-added", G_CALLBACK(on_pad_added_video1), clrspace1);
    g_signal_connect(decodebin2, "pad-added", G_CALLBACK(on_pad_added_video2), clrspace2);

    gst_element_link_many(clrspace1, videoscale1, filter1, videomixer, nil);
    gst_element_link_many(clrspace2, videoscale2, filter2, videomixer, nil);
    gst_element_link_many(videomixer, outfilter, clrspace, h264enc, mpegtsmux, sink, nil);
***********************************************************


Thanks
Reply | Threaded
Open this post in threaded view
|

Re: mixed video background color

Sebastian Dröge-3
On Do, 2016-05-05 at 22:18 -0700, Johan Basore wrote:
> Hello everyone,
>
> I composed 2 video streams into one video. So it works well.
> But the problem is that the background of mixed video is transparent.
> I want a solid black background.
> Is there any way?
> Here are source codes and screenshots.

compositor has a background property. By default this is set to the
checkerboard pattern you see there, but it can also be set to black,
white and transparent.

(videomixer has the same property, but don't use videomixer)

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: mixed video background color

Johan Basore
Thanks a lot,
That works well.