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