Video size when using glimagesink

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

Video size when using glimagesink

Patrick Fü


Hey all, 

I'm wondering if there is a way to change the video size when using glimagesink. 

May pipeline is created with "playbin" and internally it uses "qtdemux" and "glimagesink".

The video is smaller then my screensize and I wanna make it fullscreen. 
I found the same question on the mailing list without an answer. 

Is it even possible  ? 

Thanks, 
Patrick


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video size when using glimagesink

Nicolas Dufresne-4
Le mardi 20 septembre 2016 à 11:23 +0200, Patrick Fü a écrit :

> I'm wondering if there is a way to change the video size when using
> glimagesink. 
>
> May pipeline is created with "playbin" and internally it uses
> "qtdemux" and "glimagesink".
>
> The video is smaller then my screensize and I wanna make it
> fullscreen. 
> I found the same question on the mailing list without an answer. 
>
> Is it even possible  ?

Yes. Through the VideoOverlay interface you pass a "native window", if
you resize this window on a supported windowing system, glimagesink
will scale the video maintaining aspect ratio.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video size when using glimagesink

Matthew Waters
In reply to this post by Patrick Fü
On 20/09/16 19:23, Patrick Fü wrote:

>
>
> Hey all,
>
> I'm wondering if there is a way to change the video size when using
> glimagesink.
>
> May pipeline is created with "playbin" and internally it uses
> "qtdemux" and "glimagesink".
>
> The video is smaller then my screensize and I wanna make it fullscreen.
> I found the same question on the mailing list without an answer.
>
> Is it even possible  ?
To do this, you have to write code to integrate with your GUI toolkit
using GstVideoOverlay and use your GUI toolkit to fullscreen the
window.  glimagesink doesn't expose/support fullscreening with the
window system.

Cheers
-Matt

> Thanks,
> Patrick
>



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

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

Re: Video size when using glimagesink

jared Hu
Hi Matthew,

On X11/linux platform, glimagesink will not response to _set_render_rectangle(). It will change the video size following the window system. But on wayland, it does because the _set_render_rectangle() is implemented.

Thanks
Jared
Reply | Threaded
Open this post in threaded view
|

Re: Video size when using glimagesink

Patrick Fü

Hi Matthew, Hi Jared, 


thanks for you answers. 
Gonna see what I can do. 


cheers, patrick

2016-09-21 3:44 GMT+02:00 jared Hu <[hidden email]>:
Hi Matthew,

On X11/linux platform, glimagesink will not response to
_set_render_rectangle(). It will change the video size following the window
system. But on wayland, it does because the _set_render_rectangle() is
implemented.

Thanks
Jared



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-size-when-using-glimagesink-tp4679664p4679689.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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