<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi,<br><br>I'm using the latest code from 0.21 fixes branch (r18536) and trying to get a smooth h.264 playback on a Intel Core2Duo 2140 1.6 GHz. I have set the "max CPU" setting in the display profile to 2 since it is a dual core and according to the mythfrontend.log file is 2 cores used for decoding in ffmpeg but when I'm watching a h.264 stream with the internal mythtv player (like live tv) I get prebuffer pauses and one of the threads in mythfrontend process is using 100% CPU according to ps but that means 100% on one core and it does not seem to spread the decoding on 2 cores properly. Is this not really supported in 0.21? Do I need to go the CoreAVC path to get this working? I have tried running both as a regular user and as root but there is no difference. The kernel is configured for SMP and I can see two CPU:s in /proc/cpuinfo. What is the problem?<br><br><br>top -H output during h.264 playback (with jerky video):<br>&nbsp;<br>top - 15:00:55 up 1 min,&nbsp; 1 user,&nbsp; load average: 0.56, 0.16, 0.05<br>Tasks: 102 total,&nbsp;&nbsp; 5 running,&nbsp; 97 sleeping,&nbsp;&nbsp; 0 stopped,&nbsp;&nbsp; 0 zombie<br>Cpu(s): 52.1%us,&nbsp; 0.8%sy,&nbsp; 0.0%ni, 45.3%id,&nbsp; 0.0%wa,&nbsp; 0.5%hi,&nbsp; 1.3%si,&nbsp; 0.0%st<br>Mem:&nbsp;&nbsp; 1032168k total,&nbsp;&nbsp; 325024k used,&nbsp;&nbsp; 707144k free,&nbsp;&nbsp;&nbsp;&nbsp; 7252k buffers<br>Swap:&nbsp; 1959920k total,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0k used,&nbsp; 1959920k free,&nbsp;&nbsp; 149960k cached<br><br>&nbsp; PID USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PR&nbsp; NI&nbsp; VIRT&nbsp; RES&nbsp; SHR S %CPU %MEM&nbsp;&nbsp;&nbsp; TIME+&nbsp; COMMAND<br>&nbsp;3366 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 334m 142m&nbsp; 68m R&nbsp; 100 14.1&nbsp;&nbsp; 0:18.65 mythfrontend<br>&nbsp;3275 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RT -10 99.8m&nbsp; 88m&nbsp; 51m S&nbsp;&nbsp;&nbsp; 6&nbsp; 8.8&nbsp;&nbsp; 0:02.47 Xorg<br>&nbsp;3364 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 334m 142m&nbsp; 68m R&nbsp;&nbsp;&nbsp; 1 14.1&nbsp;&nbsp; 0:00.28 mythfrontend<br>&nbsp;3368 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 334m 142m&nbsp; 68m S&nbsp;&nbsp;&nbsp; 1 14.1&nbsp;&nbsp; 0:00.14 mythfrontend<br>&nbsp;3321 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 4240 2048 1540 S&nbsp;&nbsp;&nbsp; 0&nbsp; 0.2&nbsp;&nbsp; 0:00.06 xscreensaver<br>&nbsp;3329 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 334m 142m&nbsp; 68m S&nbsp;&nbsp;&nbsp; 0 14.1&nbsp;&nbsp; 0:01.69 mythfrontend<br>&nbsp;3367 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 334m 142m&nbsp; 68m S&nbsp;&nbsp;&nbsp; 0 14.1&nbsp;&nbsp; 0:00.40 mythfrontend<br>&nbsp;3372 mythtv&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 334m 142m&nbsp; 68m R&nbsp;&nbsp;&nbsp; 0 14.1&nbsp;&nbsp; 0:00.08 mythfrontend<br>&nbsp;3359 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 2308 1112&nbsp; 852 R&nbsp;&nbsp;&nbsp; 0&nbsp; 0.1&nbsp;&nbsp; 0:00.04 top<br>&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp; 0&nbsp; 2088&nbsp; 680&nbsp; 580 S&nbsp;&nbsp;&nbsp; 0&nbsp; 0.1&nbsp;&nbsp; 0:00.78 init<br><br><br>lines from my mythfrontend.log file with -v all parameter:<br><br>2008-10-04 14:26:18.611 AFD: Stream #0, has id 0x4100 codec id H264, type Video, bitrate 0 at 0x0xaa939df0<br>2008-10-04 14:26:18.614 VDP: Accepting: cmp(&gt; 1000 700) dec(ffmpeg) cpus(2) rend(xv-blit) osd(softblend) osdfade(disabled) deint(none,none) filt()<br>2008-10-04 14:26:18.614 VDP: Accepting: cmp(&gt; 0 0) dec(ffmpeg) cpus(2) rend(xv-blit) osd(softblend) osdfade(disabled) deint(linearblend,linearblend) filt()<br>2008-10-04 14:26:18.614 VDP: LoadBestPreferences(2048x2048, 0)<br>2008-10-04 14:26:18.614 VDP: LoadBestPreferences(2048x2048, 60)<br>2008-10-04 14:26:18.615 VDP: LoadBestPreferences(1280x720, 60)<br>2008-10-04 14:26:18.615 Using 2 CPUs for decoding<br>2008-10-04 14:26:18.618 VDP: Accepting: cmp(&gt; 1000 700) dec(ffmpeg) cpus(2) rend(xv-blit) osd(softblend) osdfade(disabled) deint(none,none) filt()<br>2008-10-04 14:26:18.619 VDP: Accepting: cmp(&gt; 0 0) dec(ffmpeg) cpus(2) rend(xv-blit) osd(softblend) osdfade(disabled) deint(linearblend,linearblend) filt()<br><br></div><br /><hr />Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. <a href='http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008' target='_new'>Learn Now</a></body>
</html>