Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-13-03, 03:04 PM   #1
sw25481
Registered User
 
Join Date: May 2003
Posts: 1
Question How to use new MPEG acceleration feature

The latest readme says that the Nvidia drivers support hardware MPEG acceleration under Linux on GeForce 4 and FX cards. Does anyone have any idea how to use this. I am considering purchacing one of the cards that supports this for a system that would not otherwise be able to play DVDs and MPEG2 video streams.
sw25481 is offline   Reply With Quote
Old 05-14-03, 09:56 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default

Mpeg2 acceleration is provided using a library called XvMC (don't confuse it with Xv since it is different). To use the acceleration you need to use a media player with XvMC support. I know that Xine was looking into this some time ago not sure about the status now and if there are other big players that support XvMC yet.
(xinelib based players will support it too then ..)
Thunderbird is offline   Reply With Quote
Old 09-23-04, 03:20 PM   #3
jaaason
Registered User
 
Join Date: Sep 2004
Location: USA
Posts: 8
Default Re: How to use new MPEG acceleration feature

An update for others, since I just researched this...

xorg 6.7.0 supports XvMC, and XFree86 4.4 probably does. Check for a file named libXvMC.* in /usr/X11R6/lib. When you run X and XvMC is enabled, you will see this in /var/log/Xorg.log.0:

(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation

I believe this is only supported in the nvidia driver, not riva.

My goal was to use xvmc in mplayer. I had to configure with special options:

./configure --enable-xvmc --with-xvmclib=XvMCNVIDIA

Make sure it says xvmc video output is enabled when running configure. You must have a file named libXvMCNVIDIA.so* in /usr/X11R6/lib, which I guess is put there by the nvidia driver. If your file is somewhere else, you may have to modify your library path or change the configure option. configure.log may help you. Make and install mplayer, and run it with -vc ffmpeg12mc. It should automatically use xvmc output, but you may need -vo xvmc. Like this:

mplayer test.mpeg -vc ffmpeg12mc -vo xvmc

On my Pentium III 800 with nVidia GeForce FX5200 PCI 128MB, I saw the cpu usage reduce from 80-90% down to 40% when playing a 720x480 mpeg-2 with 4Mbps bitrate on a tv at 800x600.
jaaason is offline   Reply With Quote
Old 09-23-04, 03:37 PM   #4
Cartman
Registered User
 
Join Date: Jun 2004
Posts: 52
Default Re: How to use new MPEG acceleration feature

On a side note --with-xvmclib=XvMCNVIDIA is unneeded. Mplayer's default is NVidia XvMC library.
Cartman is offline   Reply With Quote
Old 09-24-04, 02:39 AM   #5
PrakashP
gentoo ~x86_64 user
 
PrakashP's Avatar
 
Join Date: Jul 2004
Location: Germania
Posts: 213
Default Re: How to use new MPEG acceleration feature

Unfortunately with a Geforce4 Ti 4200 using xvmc isn't good. I get about 32% CPU with 1,375GHz Athlon XP CPU, but using xv I get about 20% CPU...

With HDTV content I get >100% CPU (ie partial stutteringw) with xvMC and about 70% with xv.
PrakashP is offline   Reply With Quote
Old 09-24-04, 08:00 AM   #6
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default Re: How to use new MPEG acceleration feature

There's only some limited XvMC support in Geforce4Ti cards. For full support you need a Geforce4MX/GeforceFX or better.

"GeForce4 MX and GeForce FX products support both XvMC's "IDCT" and "motion-compensation" levels of acceleration. GeForce4 Ti products only support the motion-compensation level. AI44 and IA44 subpictures are supported. 4:2:0 Surfaces up to 2032x2032 are supported."
Thunderbird is offline   Reply With Quote
Old 09-24-04, 08:29 AM   #7
PrakashP
gentoo ~x86_64 user
 
PrakashP's Avatar
 
Join Date: Jul 2004
Location: Germania
Posts: 213
Default Re: How to use new MPEG acceleration feature

Yup, I know that GF4Ti has no iDCT, but I though using hw mc would offload the CPU, which isn't the case...

Another question:

Does GF4 (or higher?) support deinterlacing by hw? I remember in Windows the Deinterlacing Quality of my gf4ti was better then of my gf2 gts. Of course I have no evidence, but it is what I remember what sruck me when i upgraded.
PrakashP is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Doom 3 BFG Edition will feature entire Doom series, seven new Doom 3 levels News Archived News Items 0 05-31-12 06:40 AM
Feature: Future U: Classroom tech doesn't mean handing out tablets News Archived News Items 0 05-06-12 09:30 PM
Multi card acceleration Andrew01 NVIDIA Linux 4 11-01-02 07:01 PM
new bios my motherboard and got new feature IDE PCI BUS MASTERING what is it ??? b5fan CPUs, Motherboards And Memory 12 09-22-02 06:10 PM
Can I use 3-D acceleration in the framebuffer coredumped NVIDIA Linux 3 08-24-02 02:20 PM

All times are GMT -5. The time now is 05:07 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.