GStreamer transparent video background

Antonio Ospite ao2 at ao2.it
Fri Oct 13 15:49:05 UTC 2017


On Tue, 10 Oct 2017 15:03:31 -0700 (MST)
Stivius <maxim11853 at gmail.com> wrote:

> Hello!
> I was trying to use GStreamer along with GTK+3 library to put the video into
> created GTK window. But the problem is that I want this video to be with the
> transparent background. For example, if a window has 400x400 size and video
> has 1366x768 then the video will be resized to fit into 400x400 keeping
> aspect ratio. It leads to a black background which I couldn't remove
> programmatically. I googled it many times, trying to find the answer but no
> result. I can do my GTK window transparent (or at least use another color
> than black) but the video will overlap this window and background color will
> stay black. I have attached the screenshot.
> Could please point me how to achieve it? Maybe there are some workarounds. 
>

How do you rescale the video? If you use videoscale check out the
"add-borders" property, try setting it to false.

Ciao,
   Antonio

-- 
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?


More information about the gstreamer-devel mailing list