[mythtv-users] Bob deinterlacing not working

Tom Dexter digitalaudiorock at gmail.com
Sun Mar 2 15:18:32 UTC 2008


On Sat, Mar 1, 2008 at 5:32 PM, William Munson <w.munson at comcast.net> wrote:
>
>  Where and how to patch your software depends on your installation. If
>  you are running a prepackaged binary (.rpm or .deb) then you are pretty
>  much out of luck unless you are willing to learn how to compile and
>  install your own customized version. I am currently running/compiling
>  0.21-fixes svn driving a hdtv monitor that only does 1080i. Myth
>  complains that the bitrate is too low and will not do bob. I made a
>  small patch which effectively lies to myth and doubles the bitrate and
>  enabled bob2x. The display looks great and is well deinterlaced. If you
>  want this diff write me off list and I will take a look in the code and
>  find it again. I will only work against svn trunk or 0.21-fixes branches.
>
>  Vicktors origional patch is here:
>
>  http://svn.mythtv.org/trac/attachment/ticket/2903/interlaced_refresh_rate.diff
>

A patch that would work with the current 0.20-fixes would look like this:

Index: libs/libmythtv/videoout_xv.cpp
===================================================================
--- libs/libmythtv/videoout_xv.cpp
+++ libs/libmythtv/videoout_xv.cpp
@@ -306,6 +306,9 @@

     rate = (dot_clock * 1000.0) / rate;

+    if (mode_line.flags & 0x010) // #define V_INTERLACE 0x010
+        rate = rate * 2;
+
     // Assume 60Hz if rate isn't good:
     if (rate < 20 || rate > 200)
     {


Tom


More information about the mythtv-users mailing list