<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><title>Arm Based Frontend</title><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p><span style='font-family:"Calibri","sans-serif"'>Hello all,</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>I</span> <span style='font-family:"Calibri","sans-serif"'>know, here we go again, another question about low power front ends.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Well, not really.&nbsp; I ran across some notes that said there was now VDPAU for the sunxi/mali400 chip devices.&nbsp; It seems to sit on top of the &#8220;binary blob&#8221; drivers.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>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.&nbsp; 3.4.79ish.&nbsp; Followed all the instructions on installing</span> <span style='font-family:"Calibri","sans-serif"'>&#8220;binary blob&#8221; drivers and fbturbo and finally VDPAU.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Then, being a masochist I downloaded the latest fixes .027 and went about compiling mythtv.&nbsp; Yes on the hackberry itself, I have not yet fiddled with cross compiling.&nbsp; I only compiled libs programs and yes it took forever.&nbsp; There was a syntax error in the ffmpeg portion.&nbsp; I found a patch for it in the ffmpeg forums and then it compiled ok.&nbsp; In fact everything compiled ok.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>So, I fired up mythfrontend.&nbsp; Damned if it did not come up.&nbsp; I set video play back to vdpau slim, audio to the hdmi device and went to play back a recording.&nbsp; I chose a very low file for my first test.&nbsp; A</span> <span style='font-family:"Calibri","sans-serif"'>recording of</span> <span style='font-family:"Calibri","sans-serif"'>&#8220;It takes a thief&#8221;.&nbsp; After some crackling, it played.&nbsp; Yep it played.&nbsp; Not perfectly.&nbsp; Not usably, but it played.&nbsp; Oddly it played too fast as if I had chosen to play it back at maybe 1.5 times normal.&nbsp; There was some video tearing but the VDPAU stuff is still very new, perhaps that will change.&nbsp; I can&#8217;t get the OSD to appear, not sure why.&nbsp; Choosing OpenGL for the painter gives a black screen (I fell</span> <span style='font-family:"Calibri","sans-serif"'>back to qt).&nbsp; Oh and playback continued with 30-50 percent idle processor.&nbsp; Audio seems to be sketchy, I will try it with the non-hdmi connector to see if that makes a difference.</span> <o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Playing back higher quality digital programs produced similar results.&nbsp; Attempts to playback recordings from my HDPVR resulted in a ball of scrambled pixels in the center of the screen.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>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><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Small update, I got past the missing OSD by setting an environment variable.<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";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) :<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[VDPAU SUNXI] We can&#8217;t decode interlaced frames yet! Sorry<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>And this may be the root of the &#8220;too fast&#8221; playback issue:<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.913903 I&nbsp; VidOutVDPAU: Enabled deinterlacing.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.914129 E&nbsp; VSYNC: DRMVideoSync: VBlank ioctl did not work, unimplemented in this driver?<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.918892 I&nbsp; Player(0): Video timing method: RTC<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.919016 I&nbsp; Player(0): Display Refresh Rate: 60.013 Video Frame Rate: 29.970<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.919092 I&nbsp; Player(0): SetFrameInterval ps:1 scan:1<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.924087 I&nbsp; playCtx: StartPlaying(): took 0 ms to start player.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.924217 I&nbsp; TV: Created player.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.924393 I&nbsp; TV: StartPlayer(0, WatchingPreRecorded, main) -- end ok<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.925670 I&nbsp; TV: Changing from None to WatchingPreRecorded<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.938901 I&nbsp; VidOutVDPAU: Created VDPAU decoder (2 ref frames)<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.942618 I&nbsp; TV: DrawUnusedRects() -- begin<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.942740 I&nbsp; TV: DrawUnusedRects() -- end<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.943057 I&nbsp; TV: Main UI disabled.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.943125 I&nbsp; TV: HandleStateChange(0) -- end<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.943454 I&nbsp; TV: tv-&gt;Playback() -- end<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:07.943511 I&nbsp; TV: Entering main playback loop.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:08.005643 I&nbsp; Player(0): Waiting for video buffers...<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:08.023848 I&nbsp; AFD: EIA-708 caption service #1 is in the Undetermined language.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:08.028406 I&nbsp; Player(0): Enabled deinterlacing<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:08.058360 I&nbsp; VDPAU: Added 2 output surfaces (total 4, max 4)<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:08.058196 I&nbsp; Dec: Selected track #1 (type 5) in the Undetermined language(7695972)<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.065231 I&nbsp; Player(0): Video is 3.33668 frames behind audio (too slow), dropping frame to catch up.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.065720 I&nbsp; Player(0): Video is 3.44655 frames behind audio (too slow), dropping frame to catch up.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.066074 I&nbsp; Player(0): Video is 3.27419 frames behind audio (too slow), dropping frame to catch up.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.220057 I&nbsp; Player(0): Video is 3.16336 frames behind audio (too slow), dropping frame to catch up.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.220476 I&nbsp; Player(0): Video is 3.24165 frames behind audio (too slow), dropping frame to catch up.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.220844 I&nbsp; Player(0): Video is 3.05311 frames behind audio (too slow), dropping frame to catch up.<o:p></o:p></span></p><p style='margin-left:5.25pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:10.738573 I&nbsp; Player(0): FPS:&nbsp;&nbsp; 46.18 Mean: 21654 Std.Dev:&nbsp; 7665 CPUs: 100% <o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2014-04-19 14:25:13.783087 I&nbsp; Player(0): FPS:&nbsp;&nbsp; 39.11 Mean: 25571 Std.Dev:&nbsp; 7414 CPUs: 66%<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If I interpret this correctly it is attempting to display frames at 60FPS and failing&#8230;.<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";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.<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tim<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p></div></body></html>