[mythtv-commits] Ticket #13400: Video playback wrong aspect ratio

MythTV noreply at mythtv.org
Wed Feb 6 10:36:16 UTC 2019


#13400: Video playback wrong aspect ratio
-------------------------------------+--------------------------------
 Reporter:  Klaas de Waal            |          Owner:  Peter Bennett
     Type:  Bug Report - General     |         Status:  infoneeded_new
 Priority:  minor                    |      Milestone:  31.0
Component:  MythTV - Video Playback  |        Version:  Master Head
 Severity:  medium                   |     Resolution:
 Keywords:  video playback gui qt    |  Ticket locked:  0
-------------------------------------+--------------------------------

Comment (by Klaas de Waal):

 Progress!!
 \\
 My system has two monitors, the first is 1920x1200 and the second is
 1920x1080.\\
 When I disconnect the second monitor and reboot the system then the video
 playback aspect ratio is correct!!
 \\

 Looking now again at the differences in the log files, the first
 significant differences are the display dimensions in line 171.\\
 The log file of a few days ago, mf-20190205-1436-ok.log, shows this (lines
 170-172):
 {{{
 2019-02-05 14:36:48.992544 I  VideoOutput: Pixel dimensions: Screen
 1920x1200, window 1280x720
 2019-02-05 14:36:48.992599 I  VideoOutput: Xinerama display dimensions:
 564x317 mm  Aspect: 1.77918
 2019-02-05 14:36:48.992610 I  VideoOutput: Estimated window dimensions:
 376x190 mm  Aspect: 1.97895

 }}}

 The display rectangle is then computed as 1150x720 (lines 202-203):
 {{{
 2019-02-05 14:36:49.044388 I  Display Rect  left: 65, top: 0, width: 1150,
 height: 720, aspect: 1.97895
 2019-02-05 14:36:49.044390 I  Video Rect    left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778

 }}}


 The log file mf-20190205-1435-bad.log shows a much larger width and it is
 called "Actual display dimensions" instead of "Xinerama display
 dimensions" (lines 170-172):
 {{{
 2019-02-05 14:35:29.816328 I  VideoOutput: Pixel dimensions: Screen
 1920x1200, window 1280x720
 2019-02-05 14:35:29.816332 I  VideoOutput: Actual display dimensions:
 1016x317 mm  Aspect: 3.20505
 2019-02-05 14:35:29.816334 I  VideoOutput: Estimated window dimensions:
 677x190 mm  Aspect: 3.56316

 }}}
 This looks like the width is the total width of both screens.\\
 The display rectangle is then computed as 639x720 (lines 202-203):
 {{{
 2019-02-05 14:35:29.851136 I  Display Rect  left: 320, top: 0, width: 639,
 height: 720, aspect: 3.56316
 2019-02-05 14:35:29.851139 I  Video Rect    left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778

 }}}
 A new log file, mf-20190206-1041.log (to be attached), from the latest
 master but with only the first screen connected, shows this (lines
 171-173):

 {{{
 2019-02-06 10:41:26.046554 I  VideoOutput: Pixel dimensions: Screen
 1920x1200, window 1280x720
 2019-02-06 10:41:26.046558 I  VideoOutput: Actual display dimensions:
 508x317 mm  Aspect: 1.60252
 2019-02-06 10:41:26.046560 I  VideoOutput: Estimated window dimensions:
 338x190 mm  Aspect: 1.77895

 }}}
 The display rectangle is then computed as 1280x720 (lines 203-204):

 {{{
 2019-02-06 10:41:26.081123 I  Display Rect  left: 0, top: 0, width: 1280,
 height: 720, aspect: 1.77778
 2019-02-06 10:41:26.081126 I  Video Rect    left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778

 }}}

 The 1280x720 is exactly the size of the window so that is very much OK.
 The video now fills the window exactly which is better than with the
 version of a few days ago which computes the window as 1150x720.\\
 \\
 So the problem is that the video rectangle computation needs to be fixed
 for the case in which people have more than one screen and run MythTV
 frontend in a window.\\

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13400#comment:9>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list