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

Mailing List Archive: MythTV: Dev

Re: [mythtv-commits] Ticket #5643: Match refreshrate with input framerate to reduce judder.

 

 

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


reidjr at btconnect

Jul 5, 2009, 4:46 AM

Post #1 of 2 (391 views)
Permalink
Re: [mythtv-commits] Ticket #5643: Match refreshrate with input framerate to reduce judder.

MythTV wrote:
> #5643: Match refreshrate with input framerate to reduce judder.
> ---------------------------------------+------------------------------------
> Reporter: henrik.sorensen[at]gmail.com | Owner: ijr
> Type: enhancement | Status: new
> Priority: minor | Milestone: unknown
> Component: mythtv | Version: unknown
> Severity: medium | Resolution:
> Mlocked: 0 |
> ---------------------------------------+------------------------------------
>
> Comment(by jyavenard[at]gmail.com):
>
> Following talks with Mark Kendall:
>
> -Reformat the code to MythTV's coding guidelines
> -If framerate > 24.5 fps and < 30.5 fps, then try 2X refresh rate first.
> This is to make sure 50 or 60Hz interlaced video use 50Hz or 60Hz
> progressive refresh rate first. Otherwise if the TV advertises 25 or 30Hz
> progressive, previously this is what Myth would use
> -Add explanation of the meaning of "Any" in the Settings -> Appearance
> configuration screen
> -Change the Settings screen to use floating points for refresh rates
> rather than integers.
> -Use type "double" instead of "float" to be consistent with the data type
> used in DisplayRes class (use same type as for the aspect ratio)
>
> Ideally, you would want to handle interlaced screen differently, but as
> there's no good support of interlaced screen in Myth or Xrandr, probably
> better to handle this in a separate patch.
>
>
This is great. Perhaps your "ideally" answers my question. I was going
to ask if there was anyway to frequency match when using S-Video output
from an NVIDIA card. My TV is happy to take 25 and 30 Frames interlaced
over Svideo. but I can only achieve this by changing the svideo settings
in Xorg from PAL to NTSC and restarting.

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


jyavenard at gmail

Jul 5, 2009, 5:51 AM

Post #2 of 2 (353 views)
Permalink
Re: [mythtv-commits] Ticket #5643: Match refreshrate with input framerate to reduce judder. [In reply to]

Hi

2009/7/5 John <reidjr[at]btconnect.com>:
> This is great. Perhaps your "ideally" answers my question. I was going to
> ask if there was anyway to frequency match when using S-Video output from an
> NVIDIA card.  My TV is happy to take 25 and 30 Frames interlaced over
> Svideo. but I can only achieve this by changing the svideo settings in Xorg
> from PAL to NTSC and restarting.

The current patch ignore the refresh rates marked as "Interlaced"
using the NV-EXTENSION and Dynamic Twinview. There are several reasons
as to why this decision was taken...
For a start, currently DisplayRes (the class handling the screens)
isn't interlaced aware; all it knows is the resolution of the screen,
the refresh rate and the aspect ratio; prior to this patch, the
refresh rate was completely independant of the rest of mythtv.
Because of this, for displayres, a 50Hz progressive screen appear just
the same as a 50Hz interlaced screen and there's no way to make choice
as to which one is best.
It will also give priority to progressive screen configuration because
that's the most common these days.

Currently, Myth will only ignore the screen resolution marked as
interlaced if you are using Dynamic Twinview. It's currently the only
mechanism reporting if something is interlaced or not, otherwise Myth
uses XrandR to know about what the screens are, and this doesn't tell
if a screen is interlaced or not (as far as I'm aware, I may be wrong)

But there are still ways to get what you want to achieve with this
current patch...
But not having enough information about your particular setup mean I
can't provide a direct answer.

In any case, Myth can only switch between the refresh rates it knows
about. If your video card only reports one rate at a time without
changing the X configuration, that's all myth can use.

When you run xrandr, what refresh rates does it report ?
With Dynamic TwinView active and inactive?

When you run nvidia-settings, what refresh rates does it report ?

If you download the source code of nvidia-settings
(http://cgit.freedesktop.org/~aplattner/nvidia-settings) , there is a
"sample" directory.
Compile the program nv-control-dpy with the option:
--print-used-modelines

This will show all the modelines currently usable by your videocard/screen.

This will allow to tell me weither mythtv with the patch will be able
to switch between the video mode properly...

If only one rate is reported, you will have to fiddle with xorg.conf
and add the require modelines so X is aware of the modes available.

At the end of the day, mythtv can only work with the information it has.

This conversation is probably better suited either directly to me, or
the mythtv user group rather than the development list ... I'm sure
none of the other developers are interested.

Jean-Yves
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
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 lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.