Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Aspect Ratio skewed?

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


martin at martinm-76

Jul 20, 2005, 2:35 PM

Post #1 of 12 (1558 views)
Permalink
Aspect Ratio skewed?

Hi all.

Yesterday I checked out the latest SVN and today I got it compiled in between
recordings. I just got it installed on my two backends and the frontend about
an hour ago.

The first thing I noticed was a distinctly squashed picture when playing back
recordings. All my recordings are (or should be) 4:3, but now for some reason
I have to select 16:9 stretched to get the right layout.

The first time I seemed to loose the OSD, but it has returned now, maybe
because I went through a lot of settings, maybe not.

I have made examples of these modes available here:

http://www.martinm-76.dk/mythtv/

4-3.jpg and 16-9-stretched.jpg respectively.

After I got the OSD back, it is usable this way, but.... it isn't 16:9
stretched recordings!!?

I am using linearblend and denoise3d on playback and the Titivillus theme /
Isthmus OSD.

Has anyone else seen something like this?

Unfortunately I didn't notice the exact changeset number at checkout time. Is
there a command or something to see that it is?


wendy at seltzer

Jul 20, 2005, 7:19 PM

Post #2 of 12 (1513 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

At 11:35 PM 7/20/2005 +0200, Martin Moeller wrote:
>Hi all.
>
>Yesterday I checked out the latest SVN and today I got it compiled in between
>recordings. I just got it installed on my two backends and the frontend about
>an hour ago.
>
>The first thing I noticed was a distinctly squashed picture when playing back
>recordings. All my recordings are (or should be) 4:3, but now for some reason
>I have to select 16:9 stretched to get the right layout.
>
>The first time I seemed to loose the OSD, but it has returned now, maybe
>because I went through a lot of settings, maybe not.
>
>I have made examples of these modes available here:
>
>http://www.martinm-76.dk/mythtv/
>
>4-3.jpg and 16-9-stretched.jpg respectively.
>
>After I got the OSD back, it is usable this way, but.... it isn't 16:9
>stretched recordings!!?
>
>I am using linearblend and denoise3d on playback and the Titivillus theme /
>Isthmus OSD.
>
>Has anyone else seen something like this?

I unfortunately have been noticing this as well, for the past few weeks of
cvs/svn. I'm using Xinerama/Twinview, and it gets the aspect ratio wrong
no matter on which screen (LCD or TV) I put the display. mythfrontend
reports the correct resolution for both screens.

--Wendy


--
Wendy Seltzer -- wendy [at] seltzer
Electronic Frontier Foundation
Berkman Center for Internet & Society at Harvard Law School
http://cyber.law.harvard.edu/seltzer.html
Chilling Effects: http://www.chillingeffects.org/
http://wendy.seltzer.org/mythtv/


martin at martinm-76

Jul 20, 2005, 11:00 PM

Post #3 of 12 (1515 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

Thanks Wendy.

I have just verified that indeed it only happens on my Xinerama/TwinView
configured machine. At least that means my dedicated frontend won't be
affected, but I really hope a solution will be found for this...

/Martin.

Torsdag den 21. juli 2005 04:19 skrev Wendy Seltzer:
> At 11:35 PM 7/20/2005 +0200, Martin Moeller wrote:
> >Hi all.
> >
> >Yesterday I checked out the latest SVN and today I got it compiled in
> > between recordings. I just got it installed on my two backends and the
> > frontend about an hour ago.
> >
> >The first thing I noticed was a distinctly squashed picture when playing
> > back recordings. All my recordings are (or should be) 4:3, but now for
> > some reason I have to select 16:9 stretched to get the right layout.
> >
> >The first time I seemed to loose the OSD, but it has returned now, maybe
> >because I went through a lot of settings, maybe not.
> >
> >I have made examples of these modes available here:
> >
> >http://www.martinm-76.dk/mythtv/
> >
> >4-3.jpg and 16-9-stretched.jpg respectively.
> >
> >After I got the OSD back, it is usable this way, but.... it isn't 16:9
> >stretched recordings!!?
> >
> >I am using linearblend and denoise3d on playback and the Titivillus theme
> > / Isthmus OSD.
> >
> >Has anyone else seen something like this?
>
> I unfortunately have been noticing this as well, for the past few weeks of
> cvs/svn. I'm using Xinerama/Twinview, and it gets the aspect ratio wrong
> no matter on which screen (LCD or TV) I put the display. mythfrontend
> reports the correct resolution for both screens.
>
> --Wendy
>
>
> --
> Wendy Seltzer -- wendy [at] seltzer
> Electronic Frontier Foundation
> Berkman Center for Internet & Society at Harvard Law School
> http://cyber.law.harvard.edu/seltzer.html
> Chilling Effects: http://www.chillingeffects.org/
> http://wendy.seltzer.org/mythtv/


paulx at andreassen

Jul 21, 2005, 5:39 AM

Post #4 of 12 (1513 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

On Thu, 21 Jul 2005 04:00 pm, Martin Moeller wrote:
> Torsdag den 21. juli 2005 04:19 skrev Wendy Seltzer:
> > At 11:35 PM 7/20/2005 +0200, Martin Moeller wrote:
> > >Hi all.
> > >
> > >Yesterday I checked out the latest SVN and today I got it compiled in
> > > between recordings. I just got it installed on my two backends and the
> > > frontend about an hour ago.
> > >
> > >The first thing I noticed was a distinctly squashed picture when playing
> > > back recordings. All my recordings are (or should be) 4:3, but now for
> > > some reason I have to select 16:9 stretched to get the right layout.
> > >
> > >The first time I seemed to loose the OSD, but it has returned now, maybe
> > >because I went through a lot of settings, maybe not.
> > >
> > >I have made examples of these modes available here:
> > >
> > >http://www.martinm-76.dk/mythtv/
> > >
> > >4-3.jpg and 16-9-stretched.jpg respectively.
> > >
> > >After I got the OSD back, it is usable this way, but.... it isn't 16:9
> > >stretched recordings!!?
> > >
> > >I am using linearblend and denoise3d on playback and the Titivillus
> > > theme / Isthmus OSD.
> > >
> > >Has anyone else seen something like this?
> >
> > I unfortunately have been noticing this as well, for the past few weeks
> > of cvs/svn. I'm using Xinerama/Twinview, and it gets the aspect ratio
> > wrong no matter on which screen (LCD or TV) I put the display.
> > mythfrontend reports the correct resolution for both screens.
> >
> > --Wendy
> >
> > --
> > Wendy Seltzer -- wendy [at] seltzer
> > Electronic Frontier Foundation
> > Berkman Center for Internet & Society at Harvard Law School
> > http://cyber.law.harvard.edu/seltzer.html
> > Chilling Effects: http://www.chillingeffects.org/
> > http://wendy.seltzer.org/mythtv/
>
> Thanks Wendy.
>
> I have just verified that indeed it only happens on my Xinerama/TwinView
> configured machine. At least that means my dedicated frontend won't be
> affected, but I really hope a solution will be found for this...
>
> /Martin.
>

Hi Wendy and Martin,

It maybe due to a patch I've submitted for Xinerama/TwinView.

Could you both check for DisplaySize lines in your XF86Config-4 / Xorg.conf
files. These shouldn't be needed and may cause your problems.

Paul

--
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


Dibblahmythml0015 at pendor

Jul 21, 2005, 5:53 AM

Post #5 of 12 (1499 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

Paul Andreassen wrote:
>
> Could you both check for DisplaySize lines in your XF86Config-4 / Xorg.conf
> files. These shouldn't be needed and may cause your problems.
>
> Paul
>

"shouldn't be needed"? Since when? This is the only obvious way to
specify the DPI of the display device. It's also the only way listed in
the documentation.

Cheers,

Allan.
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


wendy at seltzer

Jul 21, 2005, 6:07 AM

Post #6 of 12 (1519 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

At 10:39 PM 7/21/2005 +1000, Paul Andreassen wrote:

>Hi Wendy and Martin,
>
>It maybe due to a patch I've submitted for Xinerama/TwinView.
>
>Could you both check for DisplaySize lines in your XF86Config-4 / Xorg.conf
>files. These shouldn't be needed and may cause your problems.

Thanks Paul, but my XF86Config-4 has no DisplaySize line.
<http://wendy.seltzer.org/mythtv/XF86Config-4>

--Wendy

--
Wendy Seltzer -- wendy [at] seltzer
Electronic Frontier Foundation
Berkman Center for Internet & Society at Harvard Law School
http://cyber.law.harvard.edu/seltzer.html
Chilling Effects: http://www.chillingeffects.org/


jstembridge at gmail

Jul 21, 2005, 9:47 AM

Post #7 of 12 (1534 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

On 7/21/05, Allan Stirling <Dibblahmythml0015 [at] pendor> wrote:
> "shouldn't be needed"? Since when? This is the only obvious way to
> specify the DPI of the display device. It's also the only way listed in
> the documentation.

Afaik it's of no real use for Twinview setups as you can only enter
one display size. At least it used to be like that as people
complained a lot about incorrect aspect ratios in xine. In the end we
just stopped using display size when dealing with Twinview.

James.
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


martin at martinm-76

Jul 21, 2005, 10:06 AM

Post #8 of 12 (1521 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

Torsdag den 21. juli 2005 15:07 skrev Wendy Seltzer:
> At 10:39 PM 7/21/2005 +1000, Paul Andreassen wrote:
> >Hi Wendy and Martin,
> >
> >It maybe due to a patch I've submitted for Xinerama/TwinView.
> >
> >Could you both check for DisplaySize lines in your XF86Config-4 /
> > Xorg.conf files. These shouldn't be needed and may cause your problems.
>
> Thanks Paul, but my XF86Config-4 has no DisplaySize line.
> <http://wendy.seltzer.org/mythtv/XF86Config-4>
>
Nor mine (unless you count commented ones).

What else might it be?

/Martin.
> --Wendy
>
> --
> Wendy Seltzer -- wendy [at] seltzer
> Electronic Frontier Foundation
> Berkman Center for Internet & Society at Harvard Law School
> http://cyber.law.harvard.edu/seltzer.html
> Chilling Effects: http://www.chillingeffects.org/


martin at martinm-76

Jul 21, 2005, 11:13 PM

Post #9 of 12 (1508 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

I looked over the settings and set GUI height and GUI width on my
Xinerama/TwinView setup and now the ratio is correct again.

That's good enough for me. It should probably be documented, though...

/Martin.

Torsdag den 21. juli 2005 19:06 skrev Martin Moeller:
> Torsdag den 21. juli 2005 15:07 skrev Wendy Seltzer:
> > At 10:39 PM 7/21/2005 +1000, Paul Andreassen wrote:
> > >Hi Wendy and Martin,
> > >
> > >It maybe due to a patch I've submitted for Xinerama/TwinView.
> > >
> > >Could you both check for DisplaySize lines in your XF86Config-4 /
> > > Xorg.conf files. These shouldn't be needed and may cause your
> > > problems.
> >
> > Thanks Paul, but my XF86Config-4 has no DisplaySize line.
> > <http://wendy.seltzer.org/mythtv/XF86Config-4>
>
> Nor mine (unless you count commented ones).
>
> What else might it be?
>
> /Martin.
>
> > --Wendy
> >
> > --
> > Wendy Seltzer -- wendy [at] seltzer
> > Electronic Frontier Foundation
> > Berkman Center for Internet & Society at Harvard Law School
> > http://cyber.law.harvard.edu/seltzer.html
> > Chilling Effects: http://www.chillingeffects.org/


paulx at andreassen

Jul 22, 2005, 12:15 AM

Post #10 of 12 (1519 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

Wendy and Martin,

Attached is an trimmed version of mythtv/libs/libmythtv/videoout_xv.cpp which
shows the calculation done for display_aspect, this includes support for
Xinerama.

Basicly, it takes the total display size in mm, and scales from the total
display resolution to the size of the view display resolution.

In my case
/etc/X11/XF86Config-4
Section "ServerFlags"
Option "Xinerama" "true"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen 0"
Screen "Screen 1" RightOf "Screen 0"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

From /var/log/XFree86.0.log:
...
(II) NVIDIA(0): Virtual screen size determined to be 1600 x 1200
(--) NVIDIA(0): Display dimensions: (400, 300) mm
(--) NVIDIA(0): DPI set to (101, 101)
...
(II) NVIDIA(1): Virtual screen size determined to be 1280 x 960
(--) NVIDIA(1): Display dimensions: (350, 260) mm
(--) NVIDIA(1): DPI set to (92, 93)

From mythfrontend:
Total desktop width=2880, height=1200, numscreens=2
2005-07-21 20:41:57.335 Using screen 0, 1600x1200 at 0,0

X reports to mythfrontend:
723mm 302mm
dpi 101 101

videoout_xv.cpp calculation:
w_mm = w_mm * gui_w / w;
w_mm = 723 * 1600 / 2880 = 401
h_mm = 302 * 1200 / 1200 = 302
display_aspect = 1.33 = 4/3
Correct in my case.

The possible things that may go wrong include:

Setting NoTwinViewXineramaInfo:
Option "NoTwinViewXineramaInfo" "boolean"
When in TwinView, the NVIDIA X driver normally provides
a Xinerama extension that X clients (such as window
managers) can use to to discover the current TwinView
configuration. Some window mangers can get confused by
this information, so this option is provided to disable
this behavior. Default: TwinView Xinerama information
is provided.

Forcing a dots per inch, as show from 'ps aux | grep dpi' :
/usr/bin/X11/X -dpi 100 -nolisten tcp

(--) VIA(0): Virtual size is 720x576 (pitch 720)
(**) VIA(0): *Mode "720x576": 26.8 MHz (scaled from 0.0 MHz), 30.5 kHz, 50.3
Hz
(II) VIA(0): Modeline "720x576" 26.80 720 752 848 880 576 588 593 605
(**) VIA(0): Default mode "640x480": 25.2 MHz (scaled from -0.0 MHz), 31.5
kHz, 60.0 Hz
(II) VIA(0): Modeline "640x480" 25.20 640 656 752 800 480 490 492 525
-hsync -vsync
(++) VIA(0): DPI set to (100, 100)

Using a incorrect DisplaySize in /etc/X11/XF86Config-4, correct example:
DisplaySize 183 146 # (99.93 dpi:100.21 dpi for 720x576)
dpi = resolution / ( mm / 25.4 )
dpi = 720 / ( 183 / 25.4) = 99.93 dpi


If you still can't get this to work, please post your /etc/X11/XF86Config-4
and /var/log/XFree86.0.log so I can do some checking.

Hope this helps,
Paul

Maybe I should put this on a wiki somewhere?
--
Attachments: videoout_xv-trimed.cpp (2.46 KB)


paulx at andreassen

Jul 22, 2005, 1:03 AM

Post #11 of 12 (1510 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

On Fri, 22 Jul 2005 04:13 pm, Martin Moeller wrote:
> I looked over the settings and set GUI height and GUI width on my
> Xinerama/TwinView setup and now the ratio is correct again.
>
> That's good enough for me. It should probably be documented, though...

I can't see how that could make a difference. The Xinerama code is the same
as the GUISizeForTV code except for:

if (gContext->GetNumSetting("GuiSizeForTV", 0))
gContext->GetResolutionSetting("Gui", gui_w,  gui_h);
else    // usingXinerama
{
int xbase, ybase;
gContext->GetScreenBounds(xbase,ybase,gui_w,gui_h);
}

Paul
--
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


paulx at andreassen

Jul 22, 2005, 1:26 AM

Post #12 of 12 (1498 views)
Permalink
Re: Aspect Ratio skewed? [In reply to]

On Thu, 21 Jul 2005 11:07 pm, Wendy Seltzer wrote:
> At 10:39 PM 7/21/2005 +1000, Paul Andreassen wrote:
> >Hi Wendy and Martin,
> >
> >It maybe due to a patch I've submitted for Xinerama/TwinView.
> >
> >Could you both check for DisplaySize lines in your XF86Config-4 /
> > Xorg.conf files. These shouldn't be needed and may cause your problems.
>
> Thanks Paul, but my XF86Config-4 has no DisplaySize line.
> <http://wendy.seltzer.org/mythtv/XF86Config-4>

I'm not sure what sections are used and which are dropped in your XF86Config-4
file. You may only need to set a DisplaySize for your TV. Do you run the
monitor at 1280x1024 with the TV at 800x600 to the right of the monitor?

Could you please post your /var/log/XFree86.0.log and the terminal output of
mythfrontend?

Paul
--
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.