Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VDPAU Playback Support (Video Hardware Decoding)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Fri Feb 27, 2009 5:29 pm    Post subject: VDPAU Playback Support (Video Hardware Decoding) Reply with quote

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:
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:

Quote:
Example Movie Clips:
MPEG: http://inventaaustralia.zftp.com.nyud.net/videos/MPEGIO3MBPS30sec.mpg
mplayer -vo vdpau -vc ffmpeg12vdpau MPEGIO3MBPS30sec.mpg

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

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

WMV3: http://download.microsoft.com.nyud.net/download/0/9/d/09d051c4-decc-4d39-9c57-f520187213a1/Amazing_Caves_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-codecs/WVC1/FlightSimX_720p60_51_15Mbps.wmv
mplayer -vo vdpau -vc ffvc1vdpau FlightSimX_720p60_51_15Mbps.wmv


Above taken from http://www.nvnews.net/vbulletin/showthread.php?t=123095
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki


Last edited by beandog on Sat Apr 26, 2014 2:38 am; edited 5 times in total
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Sun Mar 29, 2009 5:22 pm    Post subject: Using the live ebuild Reply with quote

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:
media-video/mplayer **


And this to /etc/portage/package.unmask

Code:
media-video/mplayer

_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki


Last edited by beandog on Sun Mar 29, 2009 5:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Sun Mar 29, 2009 5:24 pm    Post subject: Creating a VDPAU profile for playback Reply with quote

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:
[vo.vdpau]
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,


Then, just playback a file using -vo vdpau and that's all you need

Code:
mplayer -vo vdpau x264.mkv

_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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