formats

Nvidia card for GPU video playback in Linux

Published on June 22, 2010, by + in linux.

How do I use my Nvidia graphics card for video playback in Linux?


One way is to use mplayer and vdpau.

Firstly, this requires you have a supported Nvidia GeForce 8 series or later graphics card. Wikipedia has a supported list here.


In the latest Ubuntu, make sure to have the following installed:


mplayer
libvdpau1


Run mplayer once in the command line which will populate a proper config file in your home directory.


Exit mplayer and next, edit that config file:


nano ~/.mplayer/config


Put the following in your file, and then save:


vo=vdpau


Done! Now use mplayer (or gmplayer) to watch videos using your Nvidia GPU for playback instead of your CPU.



For a quick example, you can watch the twit live stream with this command:


mplayer -aspect 16:9 http://bglive-a.bitgravity.com/twit/live/high


Look ma – no CPU used to playback HD!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Home linux Nvidia card for GPU video playback in Linux