How to scale to maximum video sink width and height

Sebastian Dröge sebastian at centricular.com
Mon Oct 3 09:45:18 UTC 2016


On Sun, 2016-10-02 at 11:36 +0200, Pander wrote:
> 
> Now, these systems do not provide available screen dimension via
> xrandr or xpdyinfo as X is not used nor is X configured.
> 
> 1) Can gstreamer query the screen width and height?
> 
> 2) Can a pipeline like above do that automatically with a scaling
> with
> only referring to "maximum available screen size" in the video sink?
> 
> 3) Are there other non-gstreamer tools to figure out the width and
> height of a connected screen, without using tools from X?

Don't use gst-launch-1.0, it is only a debugging/testing tool, and the
same is true for the window created by the sinks.


If you need control over the window, embed it into your application
with the GstVideoOverlay interface or any of the UI toolkit specific
video sinks. This way you can also do full screen or anything else you
would like to do with the video.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161003/8e845ad9/attachment-0001.sig>


More information about the gstreamer-devel mailing list