Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

VDPAU Playback Support (Video Hardware Decoding)

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
beandog
Bodhisattva
Bodhisattva
User avatar
Posts: 2074
Joined: Sun May 04, 2003 11:53 pm
Location: /usa/utah
Contact:
Contact beandog
Website

VDPAU Playback Support (Video Hardware Decoding)

  • Quote

Post by beandog » Fri Feb 27, 2009 5:29 pm

Edit: Un-stickying this because it's old, the info is now invalid, and you can get better info on the wiki (most likely)

Latest mplayer ebuild (media-video/mplayer-1.0_rc2-p20090226) adds support for VDPAU playback with nvidia binary drivers and video cards.

VDPAU allows the video card to do hardware decoding for MPEG1, MPEG2, MPEG4 (H264), VC1 and WMV video codecs, offsetting the load from your computer's CPU.

Here's a list of supported cards: http://www.nvidia.com/object/IO_43029.html (warning: PDF)

If you want to compile mplayer with vdpau, you'll need >=nvidia-drivers-180.22 installed.

I recommend using the latest nvidia-drivers and the live mplayer ebuild for the best support, as they are still adding new stuff.

You will need both "nvidia" in your VIDEO_CARDS entry in /etc/make.conf as well as "vdpau" either in make.conf or package.use before emerging mplayer.

You can verify that MPlayer has added support for VDPAU by doing mplayer -vo help

Code: Select all

mplayer -vo help
MPlayer 29040-4.1.2 (C) 2000-2009 MPlayer Team
Available video output drivers:
        xv      X11/Xv
        vdpau   VDPAU with X11
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        null    Null video output
        xvmc    XVideo Motion Compensation
        mpegpes MPEG-PES file
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
If you want some samples to test, here's a few to try:
Example Movie Clips:
MPEG: http://inventaaustralia.zftp.com.nyud.n ... S30sec.mpg
mplayer -vo vdpau -vc ffmpeg12vdpau MPEGIO3MBPS30sec.mpg

H.264: http://samples.mplayerhq.hu.nyud.net/V- ... FF/Grey.ts
mplayer -vo vdpau -vc ffh264vdpau Grey.ts

http://samples.mplayerhq.hu.nyud.net/V- ... kbits.h264
mplayer -vo vdpau -vc ffh264vdpau nature_704x576_25Hz_1500kbits.h264

WMV3: http://download.microsoft.com.nyud.net/ ... es_720.exe
(use `unzip` to extract the .exe)
mplayer -vo vdpau -vc ffwmv3vdpau Amazing_Caves_720.wmv

VC-1: http://samples.mplayerhq.hu.nyud.net/V- ... 15Mbps.wmv
mplayer -vo vdpau -vc ffvc1vdpau FlightSimX_720p60_51_15Mbps.wmv
Above taken from http://www.nvnews.net/vbulletin/showthread.php?t=123095
Last edited by beandog on Sat Apr 26, 2014 2:38 am, edited 5 times in total.
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Top
beandog
Bodhisattva
Bodhisattva
User avatar
Posts: 2074
Joined: Sun May 04, 2003 11:53 pm
Location: /usa/utah
Contact:
Contact beandog
Website

Using the live ebuild

  • Quote

Post by beandog » Sun Mar 29, 2009 5:22 pm

Development for VDPAU in MPlayer's upstream is still in ongoing development, and as a result, you may want to try the most recent from SVN if you run into any errors with the packages in the tree.

There is already a live ebuild in the tree -- media-video/mplayer-9999, but it has no keywords so you will have to add them yourself before emerging. It is also package masked.

Add this to /etc/portage/package.keywords:

Code: Select all

media-video/mplayer **
And this to /etc/portage/package.unmask

Code: Select all

media-video/mplayer
Last edited by beandog on Sun Mar 29, 2009 5:25 pm, edited 1 time in total.
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Top
beandog
Bodhisattva
Bodhisattva
User avatar
Posts: 2074
Joined: Sun May 04, 2003 11:53 pm
Location: /usa/utah
Contact:
Contact beandog
Website

Creating a VDPAU profile for playback

  • Quote

Post by beandog » Sun Mar 29, 2009 5:24 pm

There is a very simple way to create a playback profile for MPlayer to test / use VDPAU video out.

MPlayer's config file will use a profile by default if you use the right syntax. In this one, anytime you use -vo vdpau, it will load this one.

It will try all four possible VDPAU video codecs, and fall back on whichever one works. Don't leave the comma off on the end.

Add this to ~/.mplayer/config

Code: Select all

[vo.vdpau]
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,
Then, just playback a file using -vo vdpau and that's all you need

Code: Select all

mplayer -vo vdpau x264.mkv
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Top
Post Reply

3 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy