[mythtv-users] Bob deinterlacing not working

William Munson w.munson at comcast.net
Mon Mar 3 01:03:29 UTC 2008


Steve Peters - Priority Electronics wrote:
> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Tom Dexter
> Sent: Sunday, March 02, 2008 7:19 AM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] Bob deinterlacing not working
>
>
> 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_r
>> ate.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
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
>
>
>
> Right now I've got an ubuntu "stock" install of .20.2   so how would I apply
> this patch? I've never ventured into getting the -fixes versions of myth (if
> that's even a version). Please point me in the right direction. Also, is
> there compiling to be done? Never really done that...and if so, would I edit
> that videoout_xv.cpp file before compiling?
>
> Looks like I have some homework to do. Please help me get started.
> -Steve
>
>
>   

ok... pointing in the right direction. You will need to go thru a 
process called moving from release to SVN which involves installing a 
bunch of libraries and programs and compiling whichever flavor of mythtv 
you chose. There are lots of good help files in the wiki and at the 
ubuntu forums. Once you are comfortable and successful at compiling myth 
then all you need to do is modify videoout_xv.cpp and rebuild and 
install. Its not for everyone but its not that hard either.

Bill




More information about the mythtv-users mailing list