video fullscreen

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed Jul 9 10:47:12 PDT 2014


Le mercredi 09 juillet 2014 à 19:24 +0200, Marco Trapanese a écrit :
> Il 08/07/2014 17:06, Marco Trapanese ha scritto:
> > pipeline = gst_element_factory_make("playbin", 
> > "player");g_object_set(G_OBJECT(pipeline), "uri", uri, NULL);
> > bus = gst_element_get_bus(pipeline);
> > gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);
> >
> >
> > When the video size is smaller than the resolution of the monitor, a 
> > transparent border appears around, showing the console behind.
> >
> > How could I tell to the pipeline to show the video in fullscreen mode?
> 
> 
> I think I have to set the properties of my video-sink which is glimagesink.
> 
> So I'm trying this pipeline on a command line:
> 
> gst-launch-1.0 playbin uri=file:///path/to/.mp4 video-sink=glimagesink
> 
> but I cannot understand how to specify the width and height of the output.

Just set your window background color to opaque black instead of
transparent. Not fully sure how that is handle in QT, but I'm sure
you'll figure-out. glimagesink will keep aspect ratio right, so you'll
get borders as you notice, but it won't deal with the background, it's
the application choice.

Nicolas



More information about the gstreamer-devel mailing list