View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 15 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: XvMC, openchrome and bob
PostPosted: Mon Apr 07, 2008 6:26 pm 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
Just wondering if anyone else is running KM on an EPIA box - specifically one with a CLE266 (such as MII1x000).

I've just installed R5F27 (forced on me due to HDD crash of my previous R5E50), and I'm not sure openchrome is working right yet.
In R5E50, with unichrome, cpu load was 20-40% during playback and I used the "bob" deinterlace filter to smooth motion.

In R5F27, with openchrome, cpu load is 50%+ during playback. Enabling "bob" makes the picture stutter and OSD flicker like crazy.
Its more pronounced with playback of DVB-S SD - same resolution but double the bitrate. cpu load during playback is 70-80%.

It all works ok with bob turned off, except for the high CPU load and awful motion artifacts.

I've checked myth and X logs and dont see any errors.

Any ideas would be most welcome.
Paul.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 10:00 pm 
Offline
Joined: Sun Feb 26, 2006 11:34 pm
Posts: 83
Location: Toronto, ON, Canada
Paul,

Have you selected "Via XvMC" in the settings|TV settings|Playback MPEG2 Decoder?

Also, check in your /var/log/Xorg.0.log to see if XvMC and DRI are actually working.

Hope this helps.
Victor

_________________
Backend: Core 2-Quad CPU, 4GB RAM, 3TB
2 PVR-500, 1 HDHomerun
FE1: Zotac IONITX-B-E, w/2GB HD
FE2: Zotac MAG


Top
 Profile  
 
 Post subject: Checking...
PostPosted: Tue Apr 08, 2008 1:57 am 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
Hi Victor,
Thanks for getting back to me. I have checked those, but it was good to go back and confirm.

a) Yes - Via XvMC is selected in TV playback.

b) in the "Modules" section of xorg.conf :
Code:
Load  "dri" # This shouldn't be available choice if user has selected dri

in the "Device" section:
Code:
#       Driver      "via" # commented out to replace with openchrome below
        Driver      "openchrome"

Checking the X log file.
Code:
> grep -i dri Xorg.0.log
....
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
...
(II) Loading extension XFree86-DRI
(==) CHROME(0): DRI IRQ will be enabled if DRI is enabled.
(**) CHROME(0): AGP DMA will be enabled if DRI is enabled.
(==) CHROME(0): PCI DMA will be used for XV image transfer if DRI is enabled.
(==) CHROME(0): Will not impose a limit on video RAM reserved for DRI.
(II) CHROME(0): [DRI] installation complete
Fulfilled via DRI at 6638400
(II) GLX: Initialized DRI GL provider for screen 0

You can see dri loading, and OpenCrome seems to be using it.

Thanks
Paul.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 12:08 pm 
Offline
Joined: Wed May 17, 2006 5:20 am
Posts: 13
Location: Darmstadt, Germany
I had a problem after installing R5F27 on a Via EPIA SP13000 - blank screen after reboot. The instructions in this thread fixed it for me, and video playback works fine: http://mysettopbox.tv/phpBB2/viewtopic.php?t=16408&start=15 might help you?

_________________
Version: R5.5
Processor: Via C7 1.33GHz with CN400
Memory: 512Mb
Hard disk: 500Gb SATA
Capture cards: 2x Hauppauge Nova-T


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 4:07 pm 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
mhawkshaw wrote:
I had a problem after installing R5F27 on a Via EPIA SP13000 - blank screen after reboot. The instructions in this thread fixed it for me, and video playback works fine: http://mysettopbox.tv/phpBB2/viewtopic.php?t=16408&start=15 might help you?


Yeah - I had that little beauty too, and that article was a gem. I have a fully working system except for this annoying problem with being unable to enable the bob deinterlacer, which makes any onscreen motion hard to watch.

You use a different northbridge to me. I've got the CLE266 whereas you have the CN400. Still - you probably switched to openchrome per the article. Are you seeing any change in CPU load? Do you use bob?

Thanks for the response.
Paul.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 6:11 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Bob2x _does_ double the frame rate required, so if your system isn't fast enough it may not work for you. The trick it uses is that rather than than trying to merge the two frames as other deinterlacers do, it just shows them both in succession, and lets persistence of vision and phosphors do the rest.

BTW - On this topic saw a great investigative science show the other day that actually debunked (almost unintentionally) the so called "flying rods" phenomena. It turns out to be a camera artifact from really fast flying birds and insects that move through the field of view with wing beats faster than the cameras frame rate. The researchers were _so_ depressed that the explanation was so mundane but the evidence was just inescapable. ;-) Somewhere The Amazing Randi is smiling... :D


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 1:23 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Bob Stuttering/Shaking: Have you set an overscan in the mythtv settings (not the nvidia, but in the mythtv setup)? I found this caused really bad shaking. I ended up abandoning bob and going with kernel deinterlacing because I wanted the overscan. I think onefield deint works with XvMC if you absolutely need XvMC.

XvMC: You might try running with it off and kernel deint. The savings with the deinterlacer might be enough to run without XvMC. I find things work better without XvMC if there is enough CPU. And besides.... the OSD looks better :wink:

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 2:27 pm 
Offline
Joined: Wed May 17, 2006 5:20 am
Posts: 13
Location: Darmstadt, Germany
tuatara wrote:
You use a different northbridge to me. I've got the CLE266 whereas you have the CN400. Still - you probably switched to openchrome per the article. Are you seeing any change in CPU load? Do you use bob?


Paul, I did switch to Openchrome as per that article. I didn't notice any change in CPU load, but then I wasn't using bob. To be honest, I have a working R5F1 machine, but I wanted to try installing R5F27 on a different hard disk to see how it would go. I didn't use it that long, and I went back to my original hard disk (R5F1) as it had all my recordings on. As there will be another release in a few weeks or so, I thought I'd wait until then before trying the upgrade process again. Sorry I can't be of more help!

_________________
Version: R5.5
Processor: Via C7 1.33GHz with CN400
Memory: 512Mb
Hard disk: 500Gb SATA
Capture cards: 2x Hauppauge Nova-T


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 6:04 pm 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
alien wrote:
Bob Stuttering/Shaking: Have you set an overscan in the mythtv settings (not the nvidia, but in the mythtv setup)? I found this caused really bad shaking. I ended up abandoning bob and going with kernel deinterlacing because I wanted the overscan. I think onefield deint works with XvMC if you absolutely need XvMC.

XvMC: You might try running with it off and kernel deint. The savings with the deinterlacer might be enough to run without XvMC. I find things work better without XvMC if there is enough CPU. And besides.... the OSD looks better :wink:


Hi Alien,

I'm using an Via EPIA mobo with the CLE266 rather than NVidia. To answer your questions:
a) I have not set overscan in the mythtv settings.
b) I dont have the processing power to run without XvMC. Right now its actually at 60-70% playing back DVB SD programs using XvMC.

(NOTE: this is made much worse by the DVB/EIT grab that seems to be happening very often. When it does, mysql and mythbackend processor util goes to 20-30% each, and the front end stutters. You can delay it for up to 2 hours after the backend last recorded, but thats it).

I suspect that Openchrome is not doing as good a job as Unichrome.
Thanks for your feedback through.

Cheers.
Paul


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 6:10 pm 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
Hi,

I wish I didn't have to switch, but hard drive failure forced the issue. Otherwise I'd be hanging out for the imminent next release.

R5D1 wasn't as stable as I liked (crashed every few days), but otherwise worked very well.

Thanks for the feedback.

Cheers.
Paul.

mhawkshaw wrote:
tuatara wrote:
You use a different northbridge to me. I've got the CLE266 whereas you have the CN400. Still - you probably switched to openchrome per the article. Are you seeing any change in CPU load? Do you use bob?


Paul, I did switch to Openchrome as per that article. I didn't notice any change in CPU load, but then I wasn't using bob. To be honest, I have a working R5F1 machine, but I wanted to try installing R5F27 on a different hard disk to see how it would go. I didn't use it that long, and I went back to my original hard disk (R5F1) as it had all my recordings on. As there will be another release in a few weeks or so, I thought I'd wait until then before trying the upgrade process again. Sorry I can't be of more help!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 8:46 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Anyone want to test Openchrome in R5.5? If so, PM me.


Top
 Profile  
 
PostPosted: Thu Apr 10, 2008 2:38 pm 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
I've logged an openchrome bug on this one.

http://www.openchrome.org/trac/ticket/170#preview

Perhaps they can shed some light.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 2:39 pm 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
One further thing...

Increasing resolution to 800x600 from 720x576Noscale removed the need for deinterlacing. Picture quality improved markedly (although CPU load didn't change).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 6:06 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
This may be very dependent on how the video chips do TV output, or what they consider "native" output resolutions. (For example for a long time the ATi drivers would get a huge performance boost for 1024x768 because 1024 was a "natural" (power of 2) row size.) My guess is that 720x576 isn't handled as well as conventional computer display sizes.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 11, 2008 2:41 am 
Offline
Joined: Sun May 08, 2005 2:48 am
Posts: 107
Location: New Zealand
tjc wrote:
This may be very dependent on how the video chips do TV output, or what they consider "native" output resolutions. (For example for a long time the ATi drivers would get a huge performance boost for 1024x768 because 1024 was a "natural" (power of 2) row size.) My guess is that 720x576 isn't handled as well as conventional computer display sizes.


A review of some of the openchrome code revealed that 720x576noscale is actually not a native resolution and is implemented inside the openchrome driver. I'm not sure I fully understand the difference between Noscale and scale yet. However the chipset supports a number of PAL and NTSC resolutions, such as 720x480, 720x576, 1024x768 etc etc.

Cheers.
Paul.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 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