GStreamer, Ubuntu, display scaling and wrong screen recording.

Davide Perini perini.davide at dpsoftware.org
Sat Jun 24 10:33:47 UTC 2023


Hi all,
I am recording the screen using latest GStreamer and Ubuntu 22.04/23.04 
on an Nvidia GPU.

I have a 3840x2160 screen, if I record the screen without using any 
scaling set in the OS,
it works correctly.
If I record the screen by setting a 125%, 150% or 200% scaling in the 
OS, the recorded image is cropped.

This is the command I'm using to debug it.

gst-launch-1.0 ximagesrc startx=1 endx=3839 starty=0 endy=2159 ! 
video/x-raw,framerate=30/1 ! videoscale method=0 ! ximagesink

At 150% scaling, a 3840x2160 monitor should output 2560x1440 pixels, so 
I tried with this command:

gst-launch-1.0 ximagesrc startx=1 endx=2559 starty=0 endy=1439 ! 
video/x-raw,framerate=30/1 ! videoscale method=0 ! ximagesink

but same error.

How can I tell GStreamer to consider the OS scaling?

Thank you
Davide


More information about the gstreamer-devel mailing list