Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto x264 1080p hardware accelerated playback
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 454
Location: Hokkaido Japan

PostPosted: Mon Oct 19, 2009 10:01 am    Post subject: howto x264 1080p hardware accelerated playback Reply with quote

The Nvidia GeForce 8000 and 9000 series have mpeg1,2 and h264 decode acceleration hardware.
If you compile mencoder to use the nvidia acceleration you can get smooth HD x264 playback on machines with slower CPUs ie. atom, or older single core CPUs.

Here's what you need to do:
Make sure that you have the nvidia driver running on your machine. Follow the gentoo guide if you haven't already:
http://www.gentoo.org/doc/en/nvidia-guide.xml

add useflags to mencoder and emerge.

Code:
echo 'media-video/mplayer vdpau' >> /etc/portage/package.use
emerge mplayer


open up a terminal, run htop, watch your cpu usage and run this:
Code:
mplayer my-x264.mpg


On my Atom board I see 100% usage and playback is slow and jerky.

Now run mplayer with vdpau acceleration
Code:
mplayer -vo vdpau -vc ffh264vdpau my-x264.mpg


If your CPU in htop is showing much less than it was in without acceleration then congrats,
you have h264 acceleration working.

Cheers,
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Mon Oct 19, 2009 1:36 pm    Post subject: Reply with quote

Quote:
The Nvidia GeForce 8000 and 9000 series have mpeg1,2 and h264 decode acceleration hardware.

Don't know about 9000 series, but among 8000 series only 8500GT, 8600GT and 8600GTS do H.264 Decode Acceleration with iDCT and CAVALC/CABAC. For instance, 8800 does not do it.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2384

PostPosted: Mon Oct 19, 2009 3:56 pm    Post subject: Reply with quote

Jaglover wrote:
Quote:
The Nvidia GeForce 8000 and 9000 series have mpeg1,2 and h264 decode acceleration hardware.

Don't know about 9000 series, but among 8000 series only 8500GT, 8600GT and 8600GTS do H.264 Decode Acceleration with iDCT and CAVALC/CABAC. For instance, 8800 does not do it.


I've been doing research on this topic...

There are several levels of VDPAU - take a look at the Wikipedia entry for more detailed information. But in short, you neglected to mention the 8400GS cards. Old 8400GS cards have the same level of VDPAU (VP2) that you metion for 8500 and 8600 cards. Newer 8400GS cards have a higher level of VDPAU (VP3) that they share with the 9600M (or was that 8600M?) and the post-9xxx cards.

Mine is due to arrive tomorrow. In addition, the new 8400GS cards have a tdp of 25 watts, instead of the tdp of 37 watts for the older 8400GS cards, like the burned-up one sitting on my workbench.

Update: Did a little more research... The G2xx series has a higher level of VDPAU (VP4) yet, and there are some economical cards here, too. I didn't find them because I've been looking for TV-out to hook to my old Sony CRT.

The new card is in, and works for basic functions and TV-out. Better yet, the overscan slider is back for nvidia-drivers/settings-190.36, and it works. I haven't tried VDPAU yet on this card.
_________________
.sigs waste space and bandwidth


Last edited by depontius on Thu Oct 22, 2009 1:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mr_Maniac
Guru
Guru


Joined: 10 Jun 2004
Posts: 534

PostPosted: Mon Oct 19, 2009 8:57 pm    Post subject: Reply with quote

If you want VDPAU to be used as default, here's my ~/.mplayer/config:
Code:

[default]
vo=vdpau

[vo.vdpau]
vo=vdpau:sharpen=0.4:denoise=0.4
vc=ffh264vdpau,ffvc1vdpau,ffwmv3vdpau,ffmpeg12vdpau,

Little explanation:
Video-Output = vdpau.
Options for Video-Output:vdpau - Use vo=vdpau with options sharpen=0.4 and denoise=0.4 (Range 0.0 to 1.0)
Try the video-codecs ffh264vdpau,ffvc1vdpau,ffwmv3vdpau,ffmpeg12vdpau and then everything else.
_________________
Intel Core2Quad Q9450
MSI P35 Neo2-FR
4GB DDR2-800 RAM - Dual Channel
SB X-Fi Fatality Gamer
GeForce GTX 460
Gentoo Linux (kernel 2.6.x (was gerade stable im Portage ist ;) ), amd64, Stage 1)
Windows 7 x64
Windows XP x64 SP2
Back to top
View user's profile Send private message
thegoonden
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 84
Location: N Ireland

PostPosted: Sun Nov 08, 2009 7:28 am    Post subject: Reply with quote

I follow the instructions, but when I use the -vo option described I get no picture and mplayer says "no video".

I appear to have a problem with uncacable memory in /proc/mtrr
But my BIOS has no option to change this (at least none called MTRR). Some docs say that nvidia acceleration will refuse to work as long as /proc/mtrr looks like this.........
Code:

hal9000 linux # cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size=2048MB: write-back, count=1
reg01: base=0x80000000 (2048MB), size=1024MB: write-back, count=1
reg02: base=0xbff00000 (3071MB), size=   1MB: uncachable, count=1
reg03: base=0x100000000 (4096MB), size=1024MB: write-back, count=1


Any ideas?

My machine can JUST do 1080p without the nvidia (8600GT) helping out, but I'd rather it pulled it's weight so I can underclock my CPU again (Linux box is a retired windoze gaming rig, which no longer needs all that horsepower, now that Bill Gates isn't wasting it).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum