<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> <br>top - 15:00:55 up 1 min, 1 user, load average: 0.56, 0.16, 0.05<br>Tasks: 102 total, 5 running, 97 sleeping, 0 stopped, 0 zombie<br>Cpu(s): 52.1%us, 0.8%sy, 0.0%ni, 45.3%id, 0.0%wa, 0.5%hi, 1.3%si, 0.0%st<br>Mem: 1032168k total, 325024k used, 707144k free, 7252k buffers<br>Swap: 1959920k total, 0k used, 1959920k free, 149960k cached<br><br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br> 3366 mythtv 20 0 334m 142m 68m R 100 14.1 0:18.65 mythfrontend<br> 3275 root RT -10 99.8m 88m 51m S 6 8.8 0:02.47 Xorg<br> 3364 mythtv 20 0 334m 142m 68m R 1 14.1 0:00.28 mythfrontend<br> 3368 mythtv 20 0 334m 142m 68m S 1 14.1 0:00.14 mythfrontend<br> 3321 mythtv 20 0 4240 2048 1540 S 0 0.2 0:00.06 xscreensaver<br> 3329 mythtv 20 0 334m 142m 68m S 0 14.1 0:01.69 mythfrontend<br> 3367 mythtv 20 0 334m 142m 68m S 0 14.1 0:00.40 mythfrontend<br> 3372 mythtv 20 0 334m 142m 68m R 0 14.1 0:00.08 mythfrontend<br> 3359 root 20 0 2308 1112 852 R 0 0.1 0:00.04 top<br> 1 root 20 0 2088 680 580 S 0 0.1 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(> 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(> 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(> 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(> 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>