-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Ubuntu Scaling not applied correctly (Wrong recording dimensions) #129
Comments
Hi @jkowalk I was able to reproduce the issue... I sincerely don't know if it's a Luciferin problem or a GStreamer one, I'll investigate the problem and let you know if I find some news about it. |
just for reference, this problem does not affect Wayland. |
I just want to add plus one to this issue. Looking forward to a solution or a workaround. I am using it on Debian 12. Cheers! |
@gk1089 what is the version of GStreamer you are using? can you try to update it to 1.24.4? |
Same problem here with the latest Pop OS stable (22.04) My display is But Firefly detects it like so log: On previous deb version I had it working fine with forcing the resolution and scaling to the correct values and using PIPEWIREXDG capture method. But on the latest version (via flatpack) it doesn't work anymore(any capture method, yes I granted screen capturing rights) - for some reason I get very low FPS and the lights are not doing it's job. I can assist with any test needed. |
@Yury-MonZon if you are using Wayland you need to use PIPEWIREXDG and not XIMAGERC. can yoy try this please: before installing this deb, |
No, I'm not using Wayland:
Installed without any problems (old configs deleted before that)
But the resolution is wrong. Captured area is not the whole screen. Overall it starts/stops much faster than flatpack latest version. Works fine with PIPEWIREXDG (still wrong resolution, capture area looks correct) |
Firefly Luciferin version
2.11.7
Glow Worm Luciferin version
5.10.6
Firmware type
FULL
What is the stream method?
WiFi Stream
Fiefly Luciferin config file
Relevant log output
How to reproduce
I have a 3840x2160 4k Monitor set up with Firefly Luciferin. In the OS I have a scaling of 150%. Same Settings in the Firefly App. On Windows it works as expected, whole screen gets captured and so on.
But on Ubuntu only the top left corner of the screen gets recorded. The log also states, that the scaling seems to be applied wrong:
ximagesrc startx=1 endx=2559 starty=0 endy=1439 ! videoscale ! videoconvert (Width: 2560.0 Height: 1440.0 Scaling: 2.0 MinX: 0.0 MinY: 0.0)
I also tried 100%, which works correct:
ximagesrc startx=1 endx=3839 starty=0 endy=2159 ! videoscale ! videoconvert (Width: 3840.0 Height: 2160.0 Scaling: 1.0 MinX: 0.0 MinY: 0.0)
And 200%, which again only records a forth of the screen:
ximagesrc startx=1 endx=1919 starty=0 endy=1079 ! videoscale ! videoconvert (Width: 1920.0 Height: 1080.0 Scaling: 2.0 MinX: 0.0 MinY: 0.0)
I was able to verify this by running:
gst-launch-1.0 ximagesrc startx=1 endx=2559 starty=0 endy=1439 ! video/x-raw,framerate=30/1 ! videoscale method=0 ! video/x-raw,width=1920,height=1080 ! ximagesink
which resulted in only the top left corner showing up.
The correct settings for 150% scaling would be:
ximagesrc startx=1 endx=5759 starty=0 endy=3239
which is screen_resolution * 1.5 - 1
So I thought I'll just set the screen resolution to 5760 to 3240 and scaling to 100% in the app settings, which didn't work either. Log output was:
ximagesrc startx=1 endx=2559 starty=0 endy=1439 ! videoscale ! videoconvert (Width: 2560.0 Height: 1440.0 Scaling: 2.0 MinX: 0.0 MinY: 0.0)
It seems to me that there is something wrong with the calculation of the dimensions, but maybe someone can help me out.
Thanks anyways for the great system and your work so far.
The text was updated successfully, but these errors were encountered: