<div 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><br></div><div>[even number instance, vaapi gets used]</div><div><br></div><div><div>2015-01-06 08:23:27.967604 I  Clearing OpenGL painter cache.</div><div>2015-01-06 08:23:28.017757 I  ScreenSaverX11Private: DPMS Deactivated 1</div><div>2015-01-06 08:23:32.979412 W  RingBuf(myth://bling.home/2107_20150106152332.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: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>2015-01-06 08:25:17.129130 I  GLVid: Using raw RGBA input textures.</div><div>2015-01-06 08:25:17.137664 I  AFD: Opened codec 0x88d2c00, id(H264) type(Video)</div><div>2015-01-06 08:25:17.410588 N  Player(0): Waited 102ms for video buffers AAAAAAAAAAAAAAAAAAAAAAAAP</div></div><div><br></div><div>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><br></div><div>Alex</div></div>