[mythtv] [mythtv-commits] Ticket #8775: Forced display aspect setting not honoured in TV recording playback

R. G. Newbury newbury at mandamus.org
Sun Aug 15 14:28:14 UTC 2010


On 08/15/2010 09:09 AM, Michael T. Dean wrote:
> On 08/15/2010 06:08 AM, John wrote:
>> Personally I would like to see the mythtv and plugins use a single
>> consistent value to define aspect ratio, rather than messing with X,
>> including for instance mythgallery.
>
> John,

> The part I'm concerned about is the part where you say, "I have a
> 720x576 modeline on a PAL 16:9 TV. By default myth treats this as a 4:3
> display." So, I'd just like to verify your system configuration, which
> will make it much easier to duplicate the issue. Can you please post the
> output (~/settings.txt) of:
>
> xdpyinfo 2>&1 | tee ~/settings.txt &&
> cat<< "EOF" | mysql -umythtv -p mythconverg 2>&1 | tee -a ~/settings.txt
> SELECT * FROM settings WHERE value IN ('AspectOverride', 'Zoom',
> 'GuiWidth', 'GuiHeight', 'GuiSizeForTV', 'UseVideoModes',
> 'GuiVidModeResolution', 'XineramaScreen', 'XineramaMonitorAspectRatio');
> SELECT * FROM settings WHERE value LIKE 'TVVidModeResolution%';
> SELECT * FROM settings WHERE value LIKE 'TVVidModeForceAspect%';
> SELECT * FROM settings WHERE value LIKE 'VidMode%';
> EOF

Mike, not to try to thread-jack here but I think the underlying problem 
may be some missing SQL in the setup routine. Values which one would 
expect to be carried through are not propagated. At the least, this 
might be misleading the OP as to what is happening. (Sorry for the 
length of this, in advance).

Succinctly, using mythfrontend -> setup -> appearance -> page 2 adjusts 
the GUI settings, but *not* any of the other values when GuiSizeForTV is 
'1'.

TEST SETUP:
Testing setup on this desktop, I set a Gui size of 1900x1200 and a 
GuiOffset of 20 pixels in width. This left an open gap on the screen, to 
the left, and aligned the right side of the myth main screen with the 
right side of the display. I specifically forced ALL data values to 
'1900', '1200' or '1900x1200' by direct sql statements (as in 'update 
settings set data = '1900' where data like "1920%";' etc.)

Your 'select' (with the addition of 'GuiOffsetX' and 'GuiOffsetY') gave 
this:
value   data    hostname
AspectOverride  0       tor1.mandamus.org
GuiHeight       1200    tor1.mandamus.org
GuiOffsetX      20      tor1.mandamus.org
GuiOffsetY      0       tor1.mandamus.org
GuiSizeForTV    1       tor1.mandamus.org
GuiVidModeResolution    1900x1200       tor1.mandamus.org
GuiWidth        1900    tor1.mandamus.org
UseVideoModes   0       tor1.mandamus.org
value   data    hostname
TVVidModeResolution     1900x1200       tor1.mandamus.org
TVVidModeResolution0    1900x1200       tor1.mandamus.org
TVVidModeResolution1    1900x1200       tor1.mandamus.org
TVVidModeResolution2    1900x1200       tor1.mandamus.org
value   data    hostname
TVVidModeForceAspect    0.0     tor1.mandamus.org
TVVidModeForceAspect0   0.0     tor1.mandamus.org
TVVidModeForceAspect1   0.0     tor1.mandamus.org
TVVidModeForceAspect2   0.0     tor1.mandamus.org
value   data    hostname
VidModeHeight0  1200    tor1.mandamus.org
VidModeHeight1  1200    tor1.mandamus.org
VidModeHeight2  1200    tor1.mandamus.org
VidModeWidth0   1900    tor1.mandamus.org
VidModeWidth1   1900    tor1.mandamus.org
VidModeWidth2   1900    tor1.mandamus.org

Everything is 1900 or 1200 as expected and the offset is 20.

ACTUAL TEST
I then used setup to increase the screen width to '1920' pixels and 
remove the GuiOffset. This gave me a left-aligned myth main screen with 
a 20 pixel gap *at the right* (as expected) and the 'select' gave this:

value   data    hostname
AspectOverride  0       tor1.mandamus.org
GuiHeight       1200    tor1.mandamus.org
GuiOffsetX      0       tor1.mandamus.org
GuiOffsetY      0       tor1.mandamus.org
GuiSizeForTV    1       tor1.mandamus.org
GuiVidModeResolution    1900x1200       tor1.mandamus.org
GuiWidth        1920    tor1.mandamus.org
UseVideoModes   0       tor1.mandamus.org
value   data    hostname
TVVidModeResolution     1900x1200       tor1.mandamus.org
TVVidModeResolution0    1900x1200       tor1.mandamus.org
TVVidModeResolution1    1900x1200       tor1.mandamus.org
TVVidModeResolution2    1900x1200       tor1.mandamus.org
value   data    hostname
TVVidModeForceAspect    0.0     tor1.mandamus.org
TVVidModeForceAspect0   0.0     tor1.mandamus.org
TVVidModeForceAspect1   0.0     tor1.mandamus.org
TVVidModeForceAspect2   0.0     tor1.mandamus.org
value   data    hostname
VidModeHeight0  1200    tor1.mandamus.org
VidModeHeight1  1200    tor1.mandamus.org
VidModeHeight2  1200    tor1.mandamus.org
VidModeWidth0   1900    tor1.mandamus.org
VidModeWidth1   1900    tor1.mandamus.org
VidModeWidth2   1900    tor1.mandamus.org

The only items which changed were the offset and the GuiWidth, whereas I 
expected that the others would change and the main screen would display 
at a 1920 width. It did not: it continued at 1900



REVISED TEST
All of this was with 'Use Gui size for TV playback' checked. And 
playback size was not affected.

Unchecking that item, and checking 'Separate video modes for Gui and TV 
playback' on the next page (Video Mode Settings) and then making all 
input selections equal to 1920 cured things, and I got this:

value   data    hostname
AspectOverride  0       tor1.mandamus.org
GuiHeight       1200    tor1.mandamus.org
GuiOffsetX      0       tor1.mandamus.org
GuiOffsetY      0       tor1.mandamus.org
GuiSizeForTV    0       tor1.mandamus.org
GuiVidModeResolution    1920x1200       tor1.mandamus.org
GuiWidth        1920    tor1.mandamus.org
UseVideoModes   1       tor1.mandamus.org
value   data    hostname
TVVidModeResolution     1920x1200       tor1.mandamus.org
TVVidModeResolution0    1920x1200       tor1.mandamus.org
TVVidModeResolution1    1920x1200       tor1.mandamus.org
TVVidModeResolution2    1920x1200       tor1.mandamus.org
value   data    hostname
TVVidModeForceAspect    0.0     tor1.mandamus.org
TVVidModeForceAspect0   0.0     tor1.mandamus.org
TVVidModeForceAspect1   0.0     tor1.mandamus.org
TVVidModeForceAspect2   0.0     tor1.mandamus.org
value   data    hostname
VidModeHeight0  1200    tor1.mandamus.org
VidModeHeight1  1200    tor1.mandamus.org
VidModeHeight2  1200    tor1.mandamus.org
VidModeWidth0   1920    tor1.mandamus.org
VidModeWidth1   1920    tor1.mandamus.org
VidModeWidth2   1920    tor1.mandamus.org


Conclusion:  when GuiSizeForTV is set to '1', changed GUI values are not 
propogated to TVVidMode... or VidMode... values, leaving the display 
*wrong*. (This is not *exactly* a bug, but it is hard to view it as a 
feature!).

Proposal:
GuiWidth and GuiHeight should be propogated into the other respective 
xxWidth and xxHeight values, and a Resolution value constructed 
(1920x1200) and pushed into the various TVVidModeResolutionX entries. 
Otherwise 'what you see is not what you expected'.

When GuiSizeForTV is 1, then the values are forced to be set through the 
Video Mode Settings page and the display follows/uses those values. And 
'what you see is what you expected'.

WorkAround: which the OP should probably try unchecking on page 2, and 
checking the box at the top of page 3, and filling in the desired video 
sizes.

I suspect that this will completely obviate any need to mess with the X 
configuration, as everything will (may?) be done in myth.

Geoff

              R. Geoffrey Newbury			



More information about the mythtv-dev mailing list