View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Nov 22, 2009 4:24 pm 
Offline
Joined: Fri Jan 18, 2008 9:17 pm
Posts: 14
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!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 23, 2009 8:30 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 24, 2009 8:15 pm 
Offline
Joined: Fri Jan 18, 2008 9:17 pm
Posts: 14
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 25, 2009 4:09 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

In your xorg.conf you need to add a section at the bottom

Code:
Section "Extensions"
        Option "Composite" "Disabled"
EndSection


BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 29, 2009 12:31 pm 
Offline
Joined: Fri Jan 18, 2008 9:17 pm
Posts: 14
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?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 01, 2009 7:27 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 13, 2009 7:41 pm 
Offline
Joined: Fri Jan 18, 2008 9:17 pm
Posts: 14
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 18, 2009 5:40 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

I've always used ;
Code:
Option "NvAGP" "1"


BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 19, 2009 11:51 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2010 10:10 am 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
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
21836 mythtv    20   0  507m 297m 117m S   69 29.5  36:35.38 mythfrontend
Running around 69% with 1080i content.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2010 12:46 pm 
Offline
Joined: Sun Jul 24, 2005 4:16 pm
Posts: 508
Location: Ft. Worth TX
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....


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2010 2:28 pm 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 153 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu