<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 19, 2014 at 11:53 AM, Timothy Krantz <span dir="ltr">&lt;<a href="mailto:tkrantz@stahurabrenner.com" target="_blank">tkrantz@stahurabrenner.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><div><div class="h5"><p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Hello all,</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">I</span> <span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">know, here we go again, another question about low power front ends.</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Well, not really.  I ran across some notes that said there was now VDPAU for the sunxi/mali400 chip devices.  It seems to sit on top of the “binary blob” drivers.</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">So, I fired up my trusty hackberry board and installed Fedora 20, got it completely up to date with the latest kernel off of the sunxi site.  3.4.79ish.  Followed all the instructions on installing</span> <span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">“binary blob” drivers and fbturbo and finally VDPAU.</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Then, being a masochist I downloaded the latest fixes .027 and went about compiling mythtv.  Yes on the hackberry itself, I have not yet fiddled with cross compiling.  I only compiled libs programs and yes it took forever.  There was a syntax error in the ffmpeg portion.  I found a patch for it in the ffmpeg forums and then it compiled ok.  In fact everything compiled ok.</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">So, I fired up mythfrontend.  Damned if it did not come up.  I set video play back to vdpau slim, audio to the hdmi device and went to play back a recording.  I chose a very low file for my first test.  A</span> <span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">recording of</span> <span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">“It takes a thief”.  After some crackling, it played.  Yep it played.  Not perfectly.  Not usably, but it played.  Oddly it played too fast as if I had chosen to play it back at maybe 1.5 times normal.  There was some video tearing but the VDPAU stuff is still very new, perhaps that will change.  I can’t get the OSD to appear, not sure why.  Choosing OpenGL for the painter gives a black screen (I fell</span> <span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">back to qt).  Oh and playback continued with 30-50 percent idle processor.  Audio seems to be sketchy, I will try it with the non-hdmi connector to see if that makes a difference.</span> <u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Playing back higher quality digital programs produced similar results.  Attempts to playback recordings from my HDPVR resulted in a ball of scrambled pixels in the center of the screen.</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Anyway, I *<b>think</b>* this may be the farthest anyone has gotten with one of these boards and I just wanted to share my experience.</span><u></u><u></u></p>
<p><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p></div></div><p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Small update, I got past the missing OSD by setting an environment variable.<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I believe this to be the source of being unable to play recordings from my HDPVR (a message coming from the VDPAU layer I guess) :<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">[VDPAU SUNXI] We can’t decode interlaced frames yet! Sorry<u></u><u></u></span></p><p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">And this may be the root of the “too fast” playback issue:<u></u><u></u></span></p><p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.913903 I  VidOutVDPAU: Enabled deinterlacing.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.914129 E  VSYNC: DRMVideoSync: VBlank ioctl did not work, unimplemented in this driver?<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.918892 I  Player(0): Video timing method: RTC<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.919016 I  Player(0): Display Refresh Rate: 60.013 Video Frame Rate: 29.970<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.919092 I  Player(0): SetFrameInterval ps:1 scan:1<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.924087 I  playCtx: StartPlaying(): took 0 ms to start player.<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.924217 I  TV: Created player.<u></u><u></u></span></p><p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.924393 I  TV: StartPlayer(0, WatchingPreRecorded, main) -- end ok<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.925670 I  TV: Changing from None to WatchingPreRecorded<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.938901 I  VidOutVDPAU: Created VDPAU decoder (2 ref frames)<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.942618 I  TV: DrawUnusedRects() -- begin<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.942740 I  TV: DrawUnusedRects() -- end<u></u><u></u></span></p><p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.943057 I  TV: Main UI disabled.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.943125 I  TV: HandleStateChange(0) -- end<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.943454 I  TV: tv-&gt;Playback() -- end<u></u><u></u></span></p><p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:07.943511 I  TV: Entering main playback loop.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:08.005643 I  Player(0): Waiting for video buffers...<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:08.023848 I  AFD: EIA-708 caption service #1 is in the Undetermined language.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:08.028406 I  Player(0): Enabled deinterlacing<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:08.058360 I  VDPAU: Added 2 output surfaces (total 4, max 4)<u></u><u></u></span></p><p style="margin-left:5.25pt">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:08.058196 I  Dec: Selected track #1 (type 5) in the Undetermined language(7695972)<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.065231 I  Player(0): Video is 3.33668 frames behind audio (too slow), dropping frame to catch up.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.065720 I  Player(0): Video is 3.44655 frames behind audio (too slow), dropping frame to catch up.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.066074 I  Player(0): Video is 3.27419 frames behind audio (too slow), dropping frame to catch up.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.220057 I  Player(0): Video is 3.16336 frames behind audio (too slow), dropping frame to catch up.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.220476 I  Player(0): Video is 3.24165 frames behind audio (too slow), dropping frame to catch up.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.220844 I  Player(0): Video is 3.05311 frames behind audio (too slow), dropping frame to catch up.<u></u><u></u></span></p>
<p style="margin-left:5.25pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:10.738573 I  Player(0): FPS:   46.18 Mean: 21654 Std.Dev:  7665 CPUs: 100% <u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2014-04-19 14:25:13.783087 I  Player(0): FPS:   39.11 Mean: 25571 Std.Dev:  7414 CPUs: 66%<u></u><u></u></span></p><p>
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If I interpret this correctly it is attempting to display frames at 60FPS and failing….<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If anyone has a clue how I can hack a change to this to force 29.97 I would love to try it.</span></p>
</div></div></blockquote><div><br></div><div>Nice job, Tim.  That&#39;s excellent.   I&#39;m one of the many looking for a true mythtv frontend on a low power system and this sounds like the most promising option thus far.</div>
<div><br></div><div>Any pointers on systems that have this GPU, if others want to join the effort?</div></div></div></div>