[mythtv-users] Skewed text and video display on widescreen 5120x1440

Alain mythuser at alain.homeunix.org
Sun Jan 10 16:18:12 UTC 2021


Hi,
     I do not have the choice of "Auto (Assume...)", I only have the 
"Auto" choice or more specific ones.  But whichever I choose, the 
results seems to be the same visually.  However, I do expect this ratio 
to be related to the mythfrontend window size rather than the display 
size, which is not what other comments seemed to imply.

     I ran   mythfrontend -v playback     as suggested, log  is in 
stretched.log.gz.  From the log, the lines which seem to be pertinent are :

2021-01-10 16:59:55.164802 I  VideoWin: New video parameters: Size 
1280x720 DisplaySize: 1280x720 Aspect: 1.77778
2021-01-10 16:59:55.164822 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:55.164832 I  VideoWin: Display Rect: 5120x810+0+302 
Aspect: 1.01767
2021-01-10 16:59:55.164839 I  VideoWin: Video Rect:   1280x720+0+0 
Aspect: 1.77778
2021-01-10 16:59:55.164875 I  VDP: LoadBestPreferences(1280x720, 50.000, 
h264)
2021-01-10 16:59:55.164900 I  VDP: LoadBestPreferences result: 
priority:1 width: height: fps: codecs:
2021-01-10 16:59:55.164911 I  VDP: decoder:ffmpeg renderer:opengl 
deint0:high deint1:high cpus:2
2021-01-10 16:59:55.164947 I  VideoWin: Window using screen HDMI-0 5120x1440
2021-01-10 16:59:55.164953 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:55.164965 I  VideoWin: Display Rect: 5120x796+0+309 
Aspect: 1
2021-01-10 16:59:55.164973 I  VideoWin: Video Rect:   1280x720+0+0 
Aspect: 1.77778
2021-01-10 16:59:55.164988 I  ColourSpace: PictureAttributes: 
Brightness,Contrast,Colour,Hue,Range
2021-01-10 16:59:55.165006 I  VideoOutput: Display aspect ratio: 1 
(Detected)
2021-01-10 16:59:55.165016 I  VideoOutput: Window aspect ratio: 1.01767
2021-01-10 16:59:55.165023 I  VideoWin: New display aspect: 1.01767
2021-01-10 16:59:55.165028 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:55.165035 I  VideoWin: Display Rect: 5120x810+0+302 
Aspect: 1.01767
2021-01-10 16:59:55.165042 I  VideoWin: Video Rect:   1280x720+0+0 
Aspect: 1.77778
2021-01-10 16:59:55.167857 W  GLVid: New frame format: None:None 
1280x720 (Tex: 2D) -> YUV420P:YUY2 1280x720 (Tex: 2D)
2021-01-10 16:59:55.175077 I  GLVid: Resizing from 1280x720 to 5120x810 
for Sampling

     If I use   mythfrontend -v playback -nw -geometry 1920x1080+2000+0, 
I get exactly the same results in the log which make no sense to me.  If 
I restrict the window size, then the display ratio should take into 
account the window size rather than the display size no?

2021-01-10 16:59:49.435867 I  VideoWin: Window using screen HDMI-0 5120x1440
2021-01-10 16:59:49.435926 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:49.435945 I  VideoWin: Display Rect: 5120x1132+0+141 
Aspect: 1
2021-01-10 16:59:49.435960 I  VideoWin: Video Rect:   720x576+0+0 
Aspect: 1.25
2021-01-10 16:59:49.436351 I  VideoOutput: Display aspect ratio: 1 
(Detected)
2021-01-10 16:59:49.436641 I  VideoOutput: Window aspect ratio: 1.01767
2021-01-10 16:59:49.436666 I  VideoWin: New display aspect: 1.01767
2021-01-10 16:59:49.436679 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:49.436689 I  VideoWin: Display Rect: 5120x1152+0+131 
Aspect: 1.01767
2021-01-10 16:59:49.436700 I  VideoWin: Video Rect:   720x576+0+0 
Aspect: 1.25
2021-01-10 16:59:49.439230 I  Created 16 YUV420P (720x576) video buffers
...
2021-01-10 16:59:55.164802 I  VideoWin: New video parameters: Size 
1280x720 DisplaySize: 1280x720 Aspect: 1.77778
2021-01-10 16:59:55.164822 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:55.164832 I  VideoWin: Display Rect: 5120x810+0+302 
Aspect: 1.01767
2021-01-10 16:59:55.164839 I  VideoWin: Video Rect:   1280x720+0+0 
Aspect: 1.77778
2021-01-10 16:59:55.164875 I  VDP: LoadBestPreferences(1280x720, 50.000, 
h264)
2021-01-10 16:59:55.164900 I  VDP: LoadBestPreferences result: 
priority:1 width: height: fps: codecs:
2021-01-10 16:59:55.164911 I  VDP: decoder:ffmpeg renderer:opengl 
deint0:high deint1:high cpus:2
2021-01-10 16:59:55.164947 I  VideoWin: Window using screen HDMI-0 5120x1440
2021-01-10 16:59:55.164953 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:55.164965 I  VideoWin: Display Rect: 5120x796+0+309 
Aspect: 1
2021-01-10 16:59:55.164973 I  VideoWin: Video Rect:   1280x720+0+0 
Aspect: 1.77778
2021-01-10 16:59:55.165006 I  VideoOutput: Display aspect ratio: 1 
(Detected)
2021-01-10 16:59:55.165016 I  VideoOutput: Window aspect ratio: 1.01767
2021-01-10 16:59:55.165023 I  VideoWin: New display aspect: 1.01767
2021-01-10 16:59:55.165028 I  VideoWin: Window Rect: 5120x1415+0+0
2021-01-10 16:59:55.165035 I  VideoWin: Display Rect: 5120x810+0+302 
Aspect: 1.01767
2021-01-10 16:59:55.165042 I  VideoWin: Video Rect:   1280x720+0+0 
Aspect: 1.77778
2021-01-10 16:59:55.167857 W  GLVid: New frame format: None:None 
1280x720 (Tex: 2D) -> YUV420P:YUY2 1280x720 (Tex: 2D)
2021-01-10 16:59:55.168098 I  GLVid: Created 1 input textures for 'opengl'
2021-01-10 16:59:55.169233 I  ColourSpace: Input : bt709(Guessed) 
Depth:8 Range:Limited
2021-01-10 16:59:55.169246 I  ColourSpace: Input : Primaries:bt709 
Transfer: bt709
2021-01-10 16:59:55.169249 I  ColourSpace: Output: Range:Full Primaries: 
bt709
2021-01-10 16:59:55.175077 I  GLVid: Resizing from 1280x720 to 5120x810 
for Sampling

Regards,

Alain

On 09.01.21 19:40, Mark Kendall wrote:
> Can you generate some logs? :-
>
> Go into mythfrontend, set the 'Screen aspect ratio' setting to 'Auto
> (Assume square pixels)' and then exit to the console.
>
> Start up again with:-
>
> mythfrontend -v playback
>
> Start playback and let it play for a second or two.
>
> Stop playback, exit mythfrontend and post the full, unedited log.
>
> Should highlight where the problem is.
>
> Regards
> Mark
>
> On Sat, 9 Jan 2021 at 16:25, Alain <mythuser at alain.homeunix.org> wrote:
>> Hi,
>>
>>      Nope, I've set the  Screen aspect ratio to 16:9 and that didn't change anything.
>> I've found that if I set my display to a lower resolution first, start mythfrontend (GUI) it shows up fine as I've mentioned. If I then change the display back to 5120x1440, Mythfrontend GUI stays fine: a nice window at proper size and location. But when I start  a recording, it is squashed in the middle of the window.
>>
>> 2021-01-09 18:11:28.852953 C  mythfrontend version: fixes/31 [v31.0-v31.0] www.mythtv.org
>> 2021-01-09 18:11:28.852959 C  Qt version: compile: 5.12.5, runtime: 5.12.8
>> 2021-01-09 18:11:28.853021 I  Ubuntu 20.04.1 LTS (x86_64)
>>
>>    Anything else I can try ?
>>
>> Regards,
>>
>> Alain
>>
>>
>> On 09.01.21 17:04, Mark Kendall wrote:
>>
>> I'm guessing from your logs that you're running 0.31, so try changing
>> the screen aspect ratio setting:-
>>
>> Setup->Appearance->Theme/Screen Settings->Screen aspect ratio
>>
>> On 0.31 that defaults to 'Auto (Detect from display)' - which is
>> clearly not working when using 5120x1440. Try setting that to 'Auto
>> (Assume square pixels)' - which should work as expected. (I'd suggest
>> removing all of the geometry override settings etc)
>>
>> Regards
>> Mark
>>
>>
>>
>> On Sat, 9 Jan 2021 at 14:43, Alain <mythuser at alain.homeunix.org> wrote:
>>
>> Hi,
>>
>>    I've just moved to a wide display (screen), 5120x1440, and mythfrontend doesn't like it a bit. I set mythfrontend's window size to 1920x1080 for my tests.  If I change the screen size down to 3840x1080, then mythfrontend displays fine. I've tested using two different themes, both with qt and openGL as renderers.
>>
>>    The texts end up stretched wide and squashed vertically and too big. The video's are squashed vertically to the center of the display.
>>
>>
>>    I'm not sure where to go from there. The command I used:
>>
>> /bin/mythfrontend -nw -geometry 1920x1080+3520+360 -v frame\,gpu\,gpuvideo\,gui\,osd --loglevel debug
>>
>>     Then I did a diff on the output when this command was ran using using the different display resolutions and this is what I got (qt as renderer):
>>
>> 18d17
>> < I  Added logging to the console
>> 20c19,20
>> < I  MythUIHelper: Overriding GUI offset: x=3520 y=360
>> ---
>>
>> I  MythUIHelper: Overriding GUI offset: x=1920 y=0
>> I  Added logging to the console
>>
>> ...
>> 55c54
>> < I  Display: Geometry: 5120x1440+0+0 Size(Qt): 1mmx1mm        <<<=====
>> ---
>>
>> I  Display: Geometry: 3840x1080+0+0 Size(Qt): 1193mmx336mm
>>
>> 64c63
>> < I  Display: Screen HDMI-0: 5120x1440 (Make: Philips Consumer Electronics Company Model: PHL 498P9-)
>> ---
>>
>> I  Display: Screen HDMI-0: 3840x1080 (Make: Philips Consumer Electronics Company Model: PHL 498P9-)
>>
>> 66,68c65,67
>> < I  Display: Total desktop dim: 5120x1440, over 1 screen[s].
>> < I  Display: Using screen HDMI-0: 5120x1440 at 0+0
>> < N  Display: Desktop video mode: 5120x1440 70.303Hz
>> ---
>>
>> I  Display: Total desktop dim: 3840x1080, over 1 screen[s].
>> I  Display: Using screen HDMI-0: 3840x1080 at 0+0
>> N  Display: Desktop video mode: 3840x1080 75.000Hz
>>
>> 104,105c103,104
>> < I  Display: Found screen number 0 (HDMI-0)
>> < I  Display: Screen HDMI-0: 5120x1440 (Make: Philips Consumer Electronics Company Model: PHL 498P9-)
>> ---
>>
>> I  Display: Geometry override places window in screen 'HDMI-0'
>> I  Display: Screen HDMI-0: 3840x1080 (Make: Philips Consumer Electronics Company Model: PHL 498P9-)
>>
>> 107,108c106,107
>> < I  Display: Total desktop dim: 5120x1440, over 1 screen[s].
>> < I  Display: Using screen HDMI-0: 5120x1440 at 0+0
>> ---
>>
>> I  Display: Total desktop dim: 3840x1080, over 1 screen[s].
>> I  Display: Using screen HDMI-0: 3840x1080 at 0+0
>>
>> 1017d1015
>> < D  'title' (base.xml:1312): height overflow. line height 42 paragraph height 86, area height 60
>> 1033d1030
>> < D  'title' (base.xml:1254): height overflow. line height 34 paragraph height 68, area height 54
>>
>>
>> Alain
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: streched.log.gz
Type: application/gzip
Size: 8608 bytes
Desc: not available
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20210110/add52e8e/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: streched-1920x1080.log.gz
Type: application/gzip
Size: 10233 bytes
Desc: not available
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20210110/add52e8e/attachment-0001.gz>


More information about the mythtv-users mailing list