<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12px"><br><blockquote id="yui_3_16_0_1_1420581388484_2923" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div id="yui_3_16_0_1_1420581388484_2922" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1420581388484_2921" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1420581388484_2920" dir="ltr"><font id="yui_3_16_0_1_1420581388484_2919" size="2" face="Arial"><b><span style="font-weight:bold;">From:</span></b> Alex Williamson <alex.l.williamson@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Discussion about MythTV <mythtv-users@mythtv.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, 7 January 2015, 2:40<br> <b><span style="font-weight: bold;">Subject:</span></b> [mythtv-users] vaapi only enabled every _other_ channel change<br> </font> </div> <div id="yui_3_16_0_1_1420581388484_2924" class="y_msg_container"><br><div id="yiv8828695145"><div id="yui_3_16_0_1_1420581388484_2925" dir="ltr">I'm running mythtv-frontend-0.27.4-2.fc21.x86_64 and I notice that when watching live tv, the cpu load goes up every other channel change. I can simply hit 's' for the epg, then enter to re-select the same channel. Every other time, the frontend doesn't even appear to try to use vaapi. This happens on either hdhr or hdpvr streams. Here's an example log from the frontend:<div id="yui_3_16_0_1_1420581388484_2926"><br></div><div id="yui_3_16_0_1_1420581388484_2935">[even number instance, vaapi gets used]</div><div id="yui_3_16_0_1_1420581388484_2927"><br></div><div id="yui_3_16_0_1_1420581388484_2929"><div id="yui_3_16_0_1_1420581388484_2928">2015-01-06 08:23:27.967604 I Clearing OpenGL painter cache.</div><div id="yui_3_16_0_1_1420581388484_2930">2015-01-06 08:23:28.017757 I ScreenSaverX11Private: DPMS Deactivated 1</div><div id="yui_3_16_0_1_1420581388484_2931">2015-01-06 08:23:32.979412 W RingBuf(myth://bling.home/2107_20150106152332.mpg): Not starting read ahead thread, already running</div><div id="yui_3_16_0_1_1420581388484_2932">libva info: VA-API version 0.36.0</div><div id="yui_3_16_0_1_1420581388484_2933">libva info: va_getDriverName() returns 0</div><div id="yui_3_16_0_1_1420581388484_2934">libva info: Trying to open /usr/lib64/dri/i965_drv_video.so</div><div>libva info: Found init function __vaDriverInit_0_36</div><div>libva info: va_openDriver() returns 0</div><div>2015-01-06 08:23:34.128765 I AFD: codec AC3 has 2 channels</div><div>2015-01-06 08:23:34.131506 I AFD: Opened codec 0x89f7ac0, id(AC3) type(Audio)</div><div>libva info: VA-API version 0.36.0</div><div>libva info: va_getDriverName() returns 0</div><div>libva info: Trying to open /usr/lib64/dri/i965_drv_video.so</div><div>2015-01-06 08:23:34.366453 I GLVid: Using raw RGBA input textures.</div><div>libva info: Found init function __vaDriverInit_0_36</div><div>libva info: va_openDriver() returns 0</div><div>2015-01-06 08:23:34.378802 I AFD: Opened codec 0x89ff4a0, id(H264) type(Video)</div><div>2015-01-06 08:23:34.736995 N Player(0): Waited 114ms for video buffers AAAAAAAAAAAAAAAAAAAAAAAAP</div><div><br></div><div>[change the channel, no sign of vaapi, high CPU load]</div><div><br></div><div>2015-01-06 08:23:48.013040 I Clearing OpenGL painter cache.</div><div>2015-01-06 08:23:48.042981 I ScreenSaverX11Private: DPMS Deactivated 1</div><div>2015-01-06 08:23:52.073611 W RingBuf(myth://bling.home/2107_20150106152351.mpg): Not starting read ahead thread, already running</div><div>2015-01-06 08:23:53.223838 I AFD: codec AC3 has 2 channels</div><div>2015-01-06 08:23:53.225933 I AFD: Opened codec 0x88121e0, id(AC3) type(Audio)</div><div>2015-01-06 08:23:53.411727 I GLVid: Using custom UYVY input textures.</div><div>2015-01-06 08:23:53.449907 E OpenGL: : 1281 @ mythrender_opengl.cpp, 567</div><div>2015-01-06 08:23:53.453494 I AFD: Opened codec 0x880d960, id(H264) type(Video)</div><div>2015-01-06 08:23:53.799952 W Player(0): Waited 100ms for decoder to unpause</div><div>2015-01-06 08:23:53.900322 W Player(0): Waited 100ms for decoder to unpause</div><div>2015-01-06 08:23:54.000663 W Player(0): Waited 100ms for decoder to unpause</div><div>X Error: BadDrawable (invalid Pixmap or Window parameter) 9</div><div> Extension: 153 (Uknown extension)</div><div> Minor opcode: 4 (Unknown request)</div><div> Resource id: 0x260009b</div><div>2015-01-06 08:23:54.181196 N Player(0): Waited 102ms for video buffers UuUUULuLLAAAAAAAAAAAAAAAAAAAAAAP</div><div>2015-01-06 08:24:06.388500 E RingBuf(myth://bling.home/2107_20150106152400.mpg): RingBuffer::Reset() nonzero readpos. toAdjust: 1 readpos: 185264 readAdjust: 16034896</div><div><br></div><div>[change the channel again, oh look, there'a vaapi]</div><div><br></div><div>2015-01-06 08:25:10.857729 I Clearing OpenGL painter cache.</div><div>2015-01-06 08:25:10.902170 I ScreenSaverX11Private: DPMS Deactivated 1</div><div>2015-01-06 08:25:15.890047 W RingBuf(myth://bling.home/2107_20150106152515.mpg): Not starting read ahead thread, already running</div><div>libva info: VA-API version 0.36.0</div><div>libva info: va_getDriverName() returns 0</div><div>libva info: Trying to open /usr/lib64/dri/i965_drv_video.so</div><div>libva info: Found init function __vaDriverInit_0_36</div><div>libva info: va_openDriver() returns 0</div><div>2015-01-06 08:25:16.992209 I AFD: codec AC3 has 2 channels</div><div>2015-01-06 08:25:16.993214 I AFD: Opened codec 0x6118f80, id(AC3) type(Audio)</div><div>libva info: VA-API version 0.36.0</div><div>libva info: va_getDriverName() returns 0</div><div>libva info: Trying to open /usr/lib64/dri/i965_drv_video.so</div><div>libva info: Found init function __vaDriverInit_0_36</div><div>libva info: va_openDriver() returns 0</div><div id="yui_3_16_0_1_1420581388484_2945">2015-01-06 08:25:17.129130 I GLVid: Using raw RGBA input textures.</div><div id="yui_3_16_0_1_1420581388484_2946">2015-01-06 08:25:17.137664 I AFD: Opened codec 0x88d2c00, id(H264) type(Video)</div><div id="yui_3_16_0_1_1420581388484_2947">2015-01-06 08:25:17.410588 N Player(0): Waited 102ms for video buffers AAAAAAAAAAAAAAAAAAAAAAAAP</div></div><div id="yui_3_16_0_1_1420581388484_2948"><br></div><div id="yui_3_16_0_1_1420581388484_2949">Almost seems like a resource contention issue that the odd instances can't initialize vaapi because it's still in use by the previous even instance. Can anyone reproduce this? Is there a fix? Thanks,</div><div id="yui_3_16_0_1_1420581388484_2950"><br></div><div id="yui_3_16_0_1_1420581388484_2951">Alex</div></div></div><br>_______________________________________________<br>mythtv-users mailing list<br><a ymailto="mailto:mythtv-users@mythtv.org" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br><a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>MythTV Forums: <a href="https://forum.mythtv.org/" target="_blank">https://forum.mythtv.org</a><br><br><div id="yui_3_16_0_1_1420581388484_2964"><br></div><div id="yui_3_16_0_1_1420581388484_2962"><br></div></div></div></div></blockquote><div id="yui_3_16_0_1_1420581388484_2922" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1420581388484_2921" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1420581388484_2924" class="y_msg_container"><div dir="ltr" id="yui_3_16_0_1_1420581388484_2963">Looks like there's a ticket:</div><div id="yui_3_16_0_1_1420581388484_3045" dir="ltr"><a id="yui_3_16_0_1_1420581388484_3044" href="https://code.mythtv.org/trac/ticket/12319">#12319 (Switching LiveTV channels breaks VAAPI acceleration) – MythTV</a></div><div id="yui_3_16_0_1_1420581388484_3066" dir="ltr"><br></div><div id="yui_3_16_0_1_1420581388484_3067" dir="ltr">Ben<br></div><div style="width:450px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px; background-color: #ffffff;" id="enhancrCard_0" class="link-enhancr-attachment link-enhancr-element" contenteditable="false"><table class="link-enhancr-element" style="width:450px; height:auto; position: relative; display: block;" border="0" cellpadding="0" cellspacing="0"><tbody><tr class="link-enhancr-element"><td class="link-enhancr-element" colspan="7" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px;"> </div></td></tr><tr class="link-enhancr-element"><td rowspan="5" class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td><td rowspan="5" class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 14pt;"> </div></td><td colspan="2" class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 6pt;"> </div></td><td rowspan="5" class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 20pt;"> </div></td><td class="link-enhancr-element" rowspan="5" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;" width="1"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td></tr><tr><td class="link-enhancr-element" colspan="2" style="width: 100%; vertical-align: middle; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';"><div class="link-enhancr-text-part link-enhancr-element" style="line-height:16.5px; background-color: #ffffff; width: 414px;"><div class="link-enhancr-element" style="word-wrap: break-word; word-break: break-all;"><span class="link-enhancr-element icon icon-shrink link-enhancr-toggle"></span><span class="link-enhancr-element icon icon-close link-enhancr-delete"></span><a href="https://code.mythtv.org/trac/ticket/12319" class="link-enhancr-card-urlWrapper link-enhancr-element" style="text-decoration: none !important; color: #000000 !important; line-height: 100%; font-size: 18px; display: block;"><span class="link-enhancr-element link-enhancr-card-title" style="margin: 0; font-weight: normal;margin-bottom: 3px; font-size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: hidden !important; display: inline-block;">#12319 (Switching LiveTV channels breaks VAAPI acceleration) – MythTV</span></a><div style="font-size: 13px; line-height: 20px; color: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" class="link-enhancr-card-description link-enhancr-element">I have VAAPI acceleration configured for TV playback and this works fine for first channel watched during LiveTV (~20% cpu usage). </div></div></div></td></tr><tr><td colspan="2" class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 6pt;"></div></td></tr><tr><td class="link-enhancr-element" style="vertical-align: middle; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="link-enhancr-element" style="font-size: 0pt;"><a href="https://code.mythtv.org/trac/ticket/12319" class="link-enhancr-card-url link-enhancr-element" style="color: black; text-decoration: none !important;cursor:pointer !important;" target="_blank"><span id="yui_3_16_0_1_1420581388484_3063" class="link-enhancr-element link-enhancr-view-on" style="display: inline-block; line-height: 11px; max-width: 314px; min-width: 254px; overflow: hidden; max-height: 13px; word-break: break-all;"><span class="link-enhancr-element link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;">View on <span style="font-weight: bold" class="link-enhancr-view-on-domain">code.mythtv.org</span></span></span></a></div></td><td class="link-enhancr-element" style="vertical-align: middle; width: 100px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="link-enhancr-element link-enhancr-preview-wrapper" style="max-width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-height: 11px; max-height: 13px; font-size: 0pt;"><span class="link-enhancr-element link-enhancr-preview-by link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;">Preview by Yahoo</span></div></td></tr><tr><td colspan="2" class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 9pt;"></div></td></tr><tr class="link-enhancr-element"><td class="link-enhancr-element" colspan="7" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px"> </div></td></tr></tbody></table></div><div style="" class="" dir="ltr"><br style="" class=""></div></div></div></div><blockquote id="yui_3_16_0_1_1420581388484_2923" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div id="yui_3_16_0_1_1420581388484_2922" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1420581388484_2921" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"> </div> </div> </blockquote> </div></body></html>