View Single Post
Old 08-10-10, 08:22 AM   #4
Registered User
Join Date: Aug 2009
Posts: 8
Default Re: Checking if vdpay is working on Linux using SMPlayer

Originally Posted by gradinaruvasile View Post
Use the command line.
Open the folder where your movie is and launch mplayer:

mplayer -ao pulse -vo vdpau -vc ffodivxvdpau,ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau MOVIENAME
Of course MOVIENAME is the files name. The many vdpau items are there to make sure all encodings are played (h264, divx, wmv, vc1, mpeg1/2).

Basically the idea is the following:

mplayer -vo vdpau -vc *vdpau moviename

You have to explicitly set the vdpau output device to *vdpau with -vo AND -vc to ensure hardware decoding, setting only -vo vdpau will use software decoding to the vdpau output device.

PS. If it works, you should have ~10 % or less CPU usage on 1080p movies...
Thanks! I did a test using mplayer and the string you gave and got:

MPlayer SVN-r31722 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing test.mkv.
libavformat file format detected.
[matroska @ 0x23700c0] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang eng
[lavf] stream 2: subtitle (dvdsub), -sid 0, -slang eng, VobSub
[lavf] stream 3: subtitle (unknown), -sid 1, -slang eng, SRT
VIDEO: [H264] 1440x810 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Forced video codec: ffodivxvdpau
Forced video codec: ffh264vdpau
Forced video codec: ffmpeg12vdpau
Forced video codec: ffwmv3vdpau
Forced video codec: ffvc1vdpau
Cannot find codec matching selected -vo and video format 0x34363248.

So it doesn't work. I would assume I either need to build my own mplayer or find a ppa with vdpau enabled mplayer builds. I will look into that.
cdysthe is offline   Reply With Quote