[mythtv-commits] Ticket #2903: Patch to fix refresh rate calculation for interlaced modelines, allows Bobdeint on 50Hz displays

MythTV mythtv at cvs.mythtv.org
Thu Jan 11 01:37:52 UTC 2007


#2903: Patch to fix refresh rate calculation for interlaced modelines, allows
Bobdeint on 50Hz displays
----------------------------------+-----------------------------------------
 Reporter:  drvik at bigpond.net.au  |       Owner:  ijr    
     Type:  patch                 |      Status:  new    
 Priority:  minor                 |   Milestone:  unknown
Component:  mythtv                |     Version:  0.20   
 Severity:  medium                |  
----------------------------------+-----------------------------------------
 videoout_xv calculates refresh rates based on Vtotal and Htotal only...
 this only works for progressive modelines... interlaced modelines have
 effectively a double refresh rate than is able to be calculated via the
 existing method...

 for example... I run a 576i modeline that has a 50.00Hz refresh rate and I
 play back material that is PAL DVB also 576i and at 25 FPS... I should be
 able to utilise Bob deinterlacing using this setup but Myth will not allow
 it....

 Myth calculates refresh rate at '''40000''' (incorrect for 50Hz)  and
 frame interval at 40000 (correct for 25FPS), then disables Bobdeint
 because the refresh rate is not high enough (when it infact is)

 My simple patch completely fixes this...

 In the rate calculation code, it checks if the interlace flag is set, and
 if it is will double the calculated refresh rate... here is the relevant
 output from '-v playback'



  2007-01-09 11:29:17.438 Using deinterlace method bobdeint
  2007-01-09 11:29:17.554 Refresh rate: '''20000''', frame interval: 40000



 Myth will then happily play 25FPS material at a 50FPS with Bobdeint... it
 looks great!

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2903>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list