LinHES Forums http://forums.linhes.org/ |
|
XvMC seems to be on but still have high CPU http://forums.linhes.org/viewtopic.php?f=21&t=20555 |
Page 1 of 1 |
Author: | pszalapski [ Sun Nov 22, 2009 4:24 pm ] |
Post subject: | XvMC seems to be on but still have high CPU |
I recently installed LinHes 6.01 on a system that had KnoppMyth 5 on it recently. I like many aspects of R6 a lot so far, thanks to the author! Formerly under KnoppMyth 5, I had xvmc working well on my P4 2.4 GHz with a GeForce 6. I could watch 1920x1080 MPEG2 recordings scaled to 1280x720 very well using xvmc: I would have about 30 to 50% CPU usage. Now after getting the new version, XVMC seems to be in use--I get the greyscale OSD during recording playback and I thought it would work well. However, the CPU is pegged and I get a lot of stutter in the audio, as if XVMC wasn't working. Strange: Everything else indicates XvMC is in use. Anyone know how I can troubleshoot this? What is the next step? The mythfrontend log is pasted below. Here's what else I've done: set MythTV playback to Standard XvMC, xvmc-blit renderer. Also, Added the following lines to xorg.conf device: Code: Option "RenderAccel" "true" Option "NvAGP" "0" # 0 seems to be required for xvmc Option "XvmcUsesTextures" "true" Option "UseEvents" "true" Here's what I get when watching a MPEG2 recording. Any advice on what to try to fix next? Code: 2009-11-22 15:04:11.051 AFD: Opened codec 0x8da90f0, id(MPEG2VIDEO) type(Video)
2009-11-22 15:04:11.051 AFD: codec AC3 has 6 channels 2009-11-22 15:04:11.052 AFD: Opened codec 0x8ac2010, id(AC3) type(Audio) 2009-11-22 15:04:11.052 AFD: codec AC3 has 1 channels 2009-11-22 15:04:11.053 AFD: Opened codec 0x8dae790, id(AC3) type(Audio) 2009-11-22 15:04:11.053 AFD: Stream #3 is MPEG1VIDEO with 0 bit rate, skipping. 2009-11-22 15:04:12.155 [mpeg2video @ 0xb73fade4]ac-tex damaged at 76 24 2009-11-22 15:04:12.157 [mpeg2video @ 0xb73fade4]Warning MVs not available 2009-11-22 15:04:12.597 AFD: Opened codec 0x8dae790, id(MPEG2VIDEO) type(Video) 2009-11-22 15:04:12.597 AFD: codec AC3 has 6 channels 2009-11-22 15:04:12.598 AFD: Opened codec 0x8ac2010, id(AC3) type(Audio) 2009-11-22 15:04:12.598 AFD: codec AC3 has 1 channels 2009-11-22 15:04:12.599 AFD: Opened codec 0x8da90f0, id(AC3) type(Audio) 2009-11-22 15:04:12.599 AFD: Stream #3 is MPEG1VIDEO with 0 bit rate, skipping. 2009-11-22 15:04:15.134 AFD: Opened codec 0x8da90f0, id(MPEG2VIDEO) type(Video) 2009-11-22 15:04:15.134 AFD: codec AC3 has 6 channels 2009-11-22 15:04:15.135 AFD: Opened codec 0x8ac2010, id(AC3) type(Audio) 2009-11-22 15:04:15.135 AFD: codec AC3 has 1 channels 2009-11-22 15:04:15.136 AFD: Opened codec 0x8dae790, id(AC3) type(Audio) 2009-11-22 15:04:15.136 AFD: Stream #3 is MPEG1VIDEO with 0 bit rate, skipping. 2009-11-22 15:04:15.193 TV: Attempting to change from None to WatchingPreRecorded Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2009-11-22 15:04:15.781 AFD: Opened codec 0x8ae9800, id(MPEG2VIDEO_XVMC) type(Video) 2009-11-22 15:04:15.782 AFD: codec AC3 has 6 channels 2009-11-22 15:04:15.782 AFD: Opened codec 0x8b0b410, id(AC3) type(Audio) 2009-11-22 15:04:15.782 AFD: codec AC3 has 1 channels 2009-11-22 15:04:15.783 AFD: Opened codec 0x8d8d7c0, id(AC3) type(Audio) 2009-11-22 15:04:15.783 AFD: Stream #3 is MPEG1VIDEO with 0 bit rate, skipping. 2009-11-22 15:04:15.787 Opening audio device 'hw:0,0'. ch 2(2) sr 48000 2009-11-22 15:04:15.789 Opening ALSA audio device 'hw:0,0'. Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2009-11-22 15:04:15.901 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video Texture' Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2009-11-22 15:04:15.972 VideoOutputXv: Ack! Disabling ChromaKey OSD We can't use ChromaKey OSD if chromakeying is not supported! 2009-11-22 15:04:15.983 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video Texture' 2009-11-22 15:04:16.094 OSD Theme Dimensions W: 640 H: 480 2009-11-22 15:04:16.440 AFD: Opened codec 0x8da90f0, id(MPEG2VIDEO) type(Video) 2009-11-22 15:04:16.440 AFD: codec AC3 has 6 channels 2009-11-22 15:04:16.441 AFD: Opened codec 0x8e70e90, id(AC3) type(Audio) 2009-11-22 15:04:16.441 AFD: codec AC3 has 1 channels 2009-11-22 15:04:16.441 AFD: Opened codec 0x8adf910, id(AC3) type(Audio) 2009-11-22 15:04:16.442 AFD: Stream #3 is MPEG1VIDEO with 0 bit rate, skipping. 2009-11-22 15:04:17.100 TV: Changing from None to WatchingPreRecorded Xlib: extension "Generic Event Extension" missing on display ":0.0". 2009-11-22 15:04:17.115 Failed to approve 'none' deinterlacer 2009-11-22 15:04:17.116 Couldn't load deinterlace filter 2009-11-22 15:04:17.127 Realtime priority would require SUID as root. 2009-11-22 15:04:17.218 Video timing method: USleep with busy wait 2009-11-22 15:04:17.271 NVP: prebuffering pause 2009-11-22 15:04:17.313 NVP: prebuffering pause 2009-11-22 15:04:17.350 NVP: prebuffering pause 2009-11-22 15:04:17.367 NVP: prebuffering pause 2009-11-22 15:04:17.411 NVP: prebuffering pause 2009-11-22 15:04:17.435 NVP: prebuffering pause 2009-11-22 15:04:17.464 NVP: prebuffering pause 2009-11-22 15:04:17.506 NVP: prebuffering pause 2009-11-22 15:04:17.522 NVP: prebuffering pause 2009-11-22 15:04:17.605 NVP: prebuffering pause 2009-11-22 15:04:17.617 NVP: prebuffering pause 2009-11-22 15:04:17.657 NVP: prebuffering pause 2009-11-22 15:04:17.706 NVP: prebuffering pause 2009-11-22 15:04:17.739 NVP: prebuffering pause The prebuffering pauses continue forever at that rate due to lack of CPU cycles. Help! |
Author: | tjc [ Mon Nov 23, 2009 8:30 pm ] |
Post subject: | |
What version of the X driver did it pick for you? There is (or was) a known issue where it uses the legacy one when it should use the current recent one. |
Author: | pszalapski [ Tue Nov 24, 2009 8:15 pm ] |
Post subject: | |
The following line is in my dmesg, if that answers your question. If not, how do I find out the answer? NVRM: loading NVIDIA UNIX x86 Kernel Module 185.18.36 Fri Aug 14 17:18:04 PDT 2009 |
Author: | bigB [ Wed Nov 25, 2009 4:09 pm ] |
Post subject: | |
Hi, In your xorg.conf you need to add a section at the bottom Code: Section "Extensions"
Option "Composite" "Disabled" EndSection BigB. |
Author: | pszalapski [ Sun Nov 29, 2009 12:31 pm ] |
Post subject: | |
Strangely enough, my problem is just as I described above, but using it for awhile, sometimes it works (40-50% idle CPU) and sometimes it doesn't (0 idle CPU and many "prebuffering pause"s). Recently, it wasn't working; I rebooted, and it worked again! I cannot tell anything that causes the change; I play one recording and it works, and then I play it again later that day and it doesn't work! I made sure that it is only MPEG2 recordings that I try; nothing transcoded is a problem. bigB wrote: In your xorg.conf you need to add a section at the bottom
Code: Section "Extensions" Option "Composite" "Disabled" EndSection Done; still have the same problem. Anyone have anything further to try? |
Author: | tjc [ Tue Dec 01, 2009 7:27 am ] |
Post subject: | |
Are you using appropriate modes for different content? They help minimize the need for scaling, for example scaling a 720p stream to 1080i for display takes more than just displaying it in it's native resolution and letting the TV do it. I've got a post on how to set that up under hint & tips. |
Author: | pszalapski [ Sun Dec 13, 2009 7:41 pm ] |
Post subject: | |
tjc wrote: Are you using appropriate modes for different content? They help minimize the need for scaling, for example scaling a 720p stream to 1080i for display takes more than just displaying it in it's native resolution and letting the TV do it.
I have the opposite problem; my MPEG2 recordings are 1080i but my mode is 1280x720. I cannot figure out how to get my TV (Sanyo HT30744) to accept any 1920x1080 mode--do you know of how I can find one? |
Author: | bigB [ Fri Dec 18, 2009 5:40 pm ] |
Post subject: | |
Hi, I've always used ; Code: Option "NvAGP" "1"
BigB. |
Author: | tjc [ Sat Dec 19, 2009 11:51 am ] |
Post subject: | |
Sorry for the delay getting back to this... First things first. Let's take a look at your X logs and see what modes the TV is reporting to the driver and what is getting kept or filtered out. There are several possible factors here. 1) The TV itself. If it's native resolution doesn't include full 1080i it can't provide it to you. 2) The cable type. You need a DVI-D or HDMI connection to get enough bandwidth to support the full resolution. 3) The video card/driver. The card has to have enough horsepower for those resolutions (pretty easy these days) and the driver has to be capable of using it right. 4) Your configuration. With certain Nvidia cards you may need to use a special setting to keep it from filtering out the full rez modes. This has been discussed elsewhere so I won't repeat it here for now. So research first. Open up the log file /var/log/Xorg.0.log with your favorite text editor or file viewer and search for "Connected display device(s)" or "EDID" and lets find out what the driver thinks your TV is capable of, then down to where it says "Building ModePool" to find out what it thinks it can use. |
Author: | tscholl [ Wed May 19, 2010 10:10 am ] |
Post subject: | |
I also had a problem with high CPU utilization. It would start low and then continue to use more and more CPU. Especially when watching 1080i programs. Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 13207 mythtv 20 0 463m 243m 132m S 57 24.2 0:24.30 mythfrontend 13207 mythtv 20 0 463m 243m 132m S 95 24.2 1:26.66 mythfrontend 13207 mythtv 20 0 463m 244m 132m S 104 24.2 2:47.63 mythfrontend 13207 mythtv 20 0 463m 239m 127m R 109 23.8 3:46.97 mythfrontend 13207 mythtv 20 0 463m 237m 125m S 110 23.6 4:10.30 mythfrontend 13207 mythtv 20 0 463m 234m 122m S 112 23.2 4:52.00 mythfrontend 13207 mythtv 20 0 463m 225m 113m S 115 22.4 6:02.21 mythfrontend Tried everything with no luck. The fix for me was set the "Initial screen resolution" in Service Menu / LinHES Configuration / Display Settings when you do that it updates the "xorg.conf" It removed some of the settings that I had added in my attempt to fix the problem but now it holds pretty much steady and if it does go up it returns within 30 sec. or so. I can now watch and play back using the "Normal" CPU setting without any problems or stutter when the OSD displays. Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Running around 69% with 1080i content.
21836 mythtv 20 0 507m 297m 117m S 69 29.5 36:35.38 mythfrontend |
Author: | snaproll [ Wed May 19, 2010 12:46 pm ] |
Post subject: | |
Do you have it set to process commercials overnight ? Your PC cycles might be going for that, particularly if it works sometimes, but not others.... |
Author: | tscholl [ Wed May 19, 2010 2:28 pm ] |
Post subject: | |
I use a cron script that watches cpu usage. If it's over 35 % CPU usage it pauses the mythcomflag process until it goes below 35% It's called "pause_commflag.sh" you can find it here: http://knoppmyth.net/phpBB2/viewtopic.php?t=16027 Tim |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |