<br><br>
<div><span class="gmail_quote">On 28/01/2008, <b class="gmail_sendername">Mark Kendall</b> &lt;<a href="mailto:mark.kendall@gmail.com">mark.kendall@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 28/01/2008, Mark Kendall &lt;<a href="mailto:mark.kendall@gmail.com">mark.kendall@gmail.com</a>&gt; wrote:<br>
&gt;<br>&gt; Try the attached (against svn). This should give you a new CPU based<br>&gt; &#39;Interlaced (2x)&#39; deinterlacer option. Not tested extensively, and<br>&gt; still needs some refinement, but appears to be working as expected.<br>
<br>Actually...<br><br>I just went back to basics as I was looking into why my patch didn&#39;t<br>get a sync 100% of the time. So I went back to bobdeint and it just<br>works - seemingly 100% of the time.<br><br>So the question is, why can&#39;t you use bobdeint with your modeline? I&#39;m<br>
guessing (because I&#39;ve seen the same problem) that X is reporting a<br>slightly erroneous refresh rate (i.e. slightly too low) and hence bob<br>gets rejected.<br><br>A slightly cleaner way to do this would be to adapt a 2x onefield<br>
filter - which would eliminate any osd flicker etc and might just<br>improve picture quality as there would be no bob adjustment or<br>scaling.<br><br>Ah. The never ending joy of tinkering with mythtv!<br><br>Mark<br>_______________________________________________<br>
mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</blockquote></div>
<div><br>Mark,</div>
<div>&nbsp;</div>
<div>Yes on 0.20.2 (that I&#39;m using) it&#39;s a mystery why bob works at all!</div>
<div>Why?</div>
<div>&nbsp;</div>
<div>Well (remember I&#39;m using a standard Interlace CRT TV with RGB-SCART drive), when I try to play</div>
<div>full frame, non-scaled interlaced PAL content WITHOUT BOB, it doesn&#39;t get the sync to FRAME correctly.</div>
<div>&nbsp;</div>
<div>Theorectically BOB deint would also need to sync to FRAME correctly, otherwise you&#39;d get some wierd combing effects</div>
<div>I suspect when the&nbsp;FIELDS are shown out of order. But on my system it just works, so presumeably the BOB code is able to sync to FRAME (with my driver/card/myth/X combination) but the normal (non filtered) code isn&#39;t!</div>

<div>&nbsp;</div>
<div>Of course, BOB is required whenever you do scaling (because bob enforces the order of fields, you can scale the fields then display them in the correct order).</div>
<div>&nbsp;</div>
<div>Unfortunately I won&#39;t be able to try your patch for some time (weeks) I&#39;m afraid....first I&#39;d have to move to SVN! And I&#39;d like to guard my regression path whilst I do it, as decent output is more important to me than the whizz bang features of SVN.</div>

<div>&nbsp;</div>
<div>&gt;So the question is, why can&#39;t you use bobdeint with your modeline? I&#39;m<br>&gt;guessing (because I&#39;ve seen the same problem) that X is reporting a<br>&gt;slightly erroneous refresh rate (i.e. slightly too low) and hence bob<br>
&gt;gets rejected</div>
<div>Well in 0.20&nbsp; bobdeint rejects any mode where the FRAME rate is less than 2x the signal framerate i.e. 50hz in PAL land.</div>
<div>I suppose it&#39;s a question of semantics! The FRAME rate is still 25 but you can change the picture at 50hz. The 0.20 doesn&#39;t</div>
<div>take this into account (that it can display the diff fields at 50hz on an interlaced display). Viktor&#39;s patc just fools the code into thinking the&nbsp;FRAME rate of the display is twice what it is, the correct method is simply to fix bobdeint itself so&nbsp;it realises the difference.</div>

<div>&nbsp;</div>
<div>&gt;A slightly cleaner way to do this would be to adapt a 2x onefield<br>&gt;filter - which would eliminate any osd flicker etc and might just<br>&gt;improve picture quality as there would be no bob adjustment or<br>
&gt;scaling.<br>&nbsp;</div>
<div>Actually yes&nbsp;2x onefield (NOT the SAME field!)&nbsp;is exactly what&#39;s needed with an interlaced display.</div>
<div>Basically it goes:</div>
<div>&nbsp;</div>
<div>&lt;FRAME SYNC&gt; 1st FIELD ---&gt;&nbsp; Scale as appropriate ----&gt; Display</div>
<div>&lt;field sync&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2nd FIELD --&gt; Scale as appropriate ---&gt; Display.</div>
<div>
<div>&lt;FRAME SYNC&gt; 1st FIELD ---&gt;&nbsp; Scale as appropriate ----&gt; Display</div>
<div>&lt;field sync&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2nd FIELD --&gt; Scale as appropriate ---&gt; Display.</div>
<div>etc. etc.</div>
<div>&nbsp;</div>
<div>Where &quot;Scale as appropriate&quot; means doing the necessary to display 16:9 on an 4:3 etc.</div>
<div>&nbsp;</div>
<div>So I am talking about 2xOnefield(with different fields)&nbsp;or BOBdeint here? I don&#39;t know. But that&#39;s the effect I&#39;m after.</div>
<div>(Maybe it should be called 2xBOTHfields!?!? But isn&#39;t that the same as bob?)</div>
<div>&nbsp;</div>
<div>Of course I&#39;m sure you know all this several times over!</div>
<div>&nbsp;</div>
<div>&gt;Re-reading the above, it has also occurred to me that you won&#39;t be<br>&gt;able to use XvMC with this as you can&#39;t filter an XvMC/partially<br>&gt;decoded frame. But see what results you get and get back to me.<br>
&nbsp;</div>
<div>That&#39;s interesting, I&#39;m obviously missing some subtleties with how XvMC/bobdeint works here, but currently I&#39;m using</div>
<div>XvMC+Bobdeint+ViktorsHack on an interlaced display and it works. Has this changed from 0.20-&gt;0.21?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Cheers</div>
<div>&nbsp;</div>
<div>Steve</div>
<div>&nbsp;</div></div>
<div>&nbsp;</div>