Re: GStreamer, Ubuntu, display scaling and wrong screen recording.

Davide Perini via gstreamer-devel <[email protected]>
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.