You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default software encoder x264 is failing to initialize while trying to access the desktop from browsers like brave and edge, saying the height not divisible by 2.
Here are some logs:
Brave browser's resolution: 1920x937
Edge browser's resolution: 1860x927
But in chrome it's working fine as the pixels of height is even numbered: 1920x912
Client device details:
windows 11
Brave Version 1.61.104 Chromium: 120.0.6099.115 (Official Build) (64-bit)]
Microsoft Edge Version 120.0.2210.77 (Official build) (64-bit)
Chrome Version 120.0.6099.110 (Official Build) (64-bit)
Image used is: ghcr.io/selkies-project/selkies-gstreamer/gst-py-example:main-ubuntu20.04
The text was updated successfully, but these errors were encountered:
Yeah, that is a known restriction in x264... The solution for now is to use an even viewport... I'll think of a solution.
ehfd
added
bug
Something isn't working
encoding
Audio or video encoders but not the OS interfaces
high-priority
Must be addressed as soon as possible, remove when resolved
labels
Dec 22, 2023
It seems like the point of subtracting the offsetHeight%2 from offsetHeight is just to eliminate the odd numbered pixel.
If that's the case, the reason for me still ending up with odd number is..
The DevicePixelRation of my device is 1.25
brave browser offsetHeight=750 => (750 - 0) * 1.25 = 937.5
So if we just do that subtraction after the multiplication then problem solved. I've tried this and I no longer face that not divisible by 2 error.
Let me know what you think, I've got the changes ready for PR.
The default software encoder x264 is failing to initialize while trying to access the desktop from browsers like brave and edge, saying the
height not divisible by 2
.Here are some logs:
Brave browser's resolution:
1920x937
Edge browser's resolution:
1860x927
But in chrome it's working fine as the pixels of height is even numbered:
1920x912
Client device details:
Image used is: ghcr.io/selkies-project/selkies-gstreamer/gst-py-example:main-ubuntu20.04
The text was updated successfully, but these errors were encountered: