GStreamer, Ubuntu, display scaling and wrong screen recording.

Davide Perini perini.davide at dpsoftware.org
Tue Jun 27 14:32:29 UTC 2023



I opened an issue for this problem here:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2718

I think that this is a bug :)

Thanks
Davide

Il 2023-06-24 12:33 Davide Perini via gstreamer-devel ha scritto:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230627/e6ad317a/attachment.htm>


More information about the gstreamer-devel mailing list