OpenELEC Forum
Wrong aspect ratio on refresh rates other than 60! - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: DISPLAY (https://forum.openelec.tv/forumdisplay.php?fid=59)
+--- Thread: Wrong aspect ratio on refresh rates other than 60! (/showthread.php?tid=83296)



Wrong aspect ratio on refresh rates other than 60! - Pups - 03-26-2017

OE 7.0.1 x86 does not show images/videos correctly on FullHD screen resolutions with refresh rates other than 60Hz! In other words, if I change screen refresh rate (manually or automatically by auto-refresh feature), the image become distorted. With "distorted" I mean that it is not displayed pixel-to-pixel correctly.

I attached few screenshots:

"Error: Attachment file size exceed limit allowed by configuration"
What? 340KB ???

As you can see, the image on first screenshot (50Hz) is little bit squeezed horizontally and the black bars appear at both sides. Looks like incorrect aspect ratio. At the same time the second image (60Hz) is displayed correctly.

P.S. HTPC is based on ASUS N3150I-C MB.
P.P.S. OE 6.0.3 does not have this issue.


Wrong aspect ratio on refresh rates other than 60! - Pups - 03-28-2017

Hey, Hello!

No one see that?


Wrong aspect ratio on refresh rates other than 60! - Pups - 04-01-2017

Hi All,

Great news! I found the root of the problem.

The issue is caused by wrong default aspect ratios in the GUI configuration file (guisettings.xml). The file is located in /storage/.kodi/userdata/ directory (also is accessible through the samba share "Userdata"). All resolutions and refresh rates are described separately in the file, so the aspect ratios can be configured differently. 1920x1080@60Hz mode has correct value, but others not. That's why we have the black bars on the videos and the image is squeezed accordingly.

To correct this, you have to edit the aspect ratio values in the guisettings.xml file for all required resolutions. I changed only 1920x1080 modes as I'm using only them.

For example, for 1920x1080p@23.98Hz mode, default aspect ratio was 1.009191, which is wrong:
---
<resolution>
<description>HDMI1: 1920x1080 @ 23.98Hz</description>
<subtitles>1042</subtitles>
<pixelratio>1.009191</pixelratio>
<refreshrate>23.976080</refreshrate>
<output>HDMI1</output>
<xrandrid>0x10f</xrandrid>
<overscan>
<left>0</left>
<top>0</top>
<right>1920</right>
<bottom>1080</bottom>
</overscan>
</resolution>
---
You have to change this value to: 1.000000 for all standard square-pixel resolutions and refresh rates (for example 1920x1080, 1280x720).

So the problem is solved!

Best Regards,
Tepp

Edit: you have to stop the kodi through the SSH before making changes, otherwise the values will revert on reboot:
#systemctl stop kodi
make changes
#systemctl start kodi