<br><br><div class="gmail_quote">On Jan 23, 2008 8:51 AM, Daniel Kristjansson &lt;<a href="mailto:danielk@cuymedia.net">danielk@cuymedia.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, 2008-01-23 at 12:13 +0000, Oliver Maunder wrote:<br>&gt; I&#39;m using the official VIA drivers because the Openchrome doesn&#39;t yet<br></div><div class="Ih2E3d">&gt; I&#39;ve tracked this down to DRM VSync calls. Commenting out the line<br>
&gt; TESTVIDEOSYNC(DRMVideoSync) in VideoSync::BestMethod (in<br>&gt; libs/libmythtv/vsync.cpp) cures the problem.<br>&gt;<br>&gt; This leads to a second issue where video works but the colours are<br>&gt; messed up because MythTV is using I420 encoding which the driver<br>
&gt; doesn&#39;t seem to like. This can be fixed by uncommenting the line<br>&gt; &nbsp; &nbsp; &nbsp;#define USE_ATI_PROPRIETARY_DRIVER_XVIDEO_HACK<br>&gt; &nbsp; in videoout_xv.cpp in 0.2.20. This #define isn&#39;t the SVN version,<br>&gt; but a similar one-line fix will work.<br>
</div>The SVN version defaults to using the reversed I420 encoding that<br>the AIT hack enabled. Unfortunately it seems many video card driver<br>writers don&#39;t test I420 before shipping the drivers.<br><div class="Ih2E3d">
<br>&gt; submit a patch, but I don&#39;t know what the policy is about hacking<br>&gt; around driver issues. The code would need to test for the VIA driver<br>&gt; and use the workarounds if it&#39;s founds. Is this sort of thing done<br>
&gt; elsewhere in the code?<br></div>Hacking around driver issues is something we do but don&#39;t like doing.<br>When we do it we vastly prefer using a method that tests for the broken<br>driver at run time and only applies the patch if needed.<br>
<br>The GrabSuitibleXvPort() function in libs/libmythtv/videoout_xv.cpp<br>queries the adaptor name, something like that could be used to test<br>for the presence of the VIA drivers.<br><br>-- Daniel<br><br></blockquote><div>
<br>I&#39;ve managed to catch up to the same point as Oliver -- installed on Ubuntu and MythTV 0.20.2 and made patches as indicated in first e-mail.&nbsp; Although this does allow the board to work, it does not get MPEG-2 hardware acceleration.&nbsp; I get the following errors now:<br>
<br>2008-01-31 23:32:51.236 VideoOutputXv: XvMCTex: Init failed<br>2008-01-31 23:32:51.238 VideoOutputXv: XVideo Adaptor Name: &#39;XV_SWOV&#39;<br>2008-01-31 23:32:54.872 TV: Changing from None to WatchingLiveTV<br>2008-01-31 23:32:54.932 Using realtime priority.<br>
2008-01-31 23:32:55.165 Video timing method: RTC<br>2008-01-31 23:32:55.550 VideoOutputXv Error: XvMC output requested, but is not supported by display.<br>Xlib:&nbsp; extension &quot;XVideo-MotionCompensation&quot; missing on display &quot;:0.0&quot;.<br>
<br>I already configured /etc/XvMCConfig to point to /usr/lib/libviaXvMCPro.so , so that&#39;s not the issue.&nbsp; Also, I know the machine is capable since Via&#39;s version of mplayer (VeMP) is working fine with HDTV sources on this machine at relatively low CPU (~30%).&nbsp; Any ideas where to go from here? Other debugging steps to take?&nbsp; Any reason to believe SVN would be better?<br>
</div></div><br>