nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Checking if vdpay is working on Linux using SMPlayer (http://www.nvnews.net/vbulletin/showthread.php?t=153921)

cdysthe 08-09-10 08:51 PM

Checking if vdpau is working on Linux using SMPlayer
 
Hi,

I am running SMPlayer Version: 0.6.9 (SVN r3447) Using MPlayer SVN r31722 on Linux Mint 9 x64. My laptop has a nvidia 9300GM graphics card and I have the latest driver from nvidia installed. I have SMPlayer set to use vdpau. How do I know that vdpay is actually woring? I do not know if it helps, but this is part of a typical log when playing video:


Forced video codec: ffh264vdpau
Forced video codec: ffmpeg12vdpau
Forced video codec: ffwmv3vdpau
Forced video codec: ffvc1vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
================================================== ========================
ID_VIDEO_CODEC=ffh264
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0xc28a00]frame sync error
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
================================================== ========================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffac3
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7647
VO: [vdpau] 1920x1088 => 1920x1088 Planar YV12

cehoyos 08-10-10 02:30 AM

Re: Checking if vdpau is working on Linux using SMPlayer
 
Quote:

Originally Posted by cdysthe (Post 2300016)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

means you are not using VDPAU

Carl Eugen

gradinaruvasile 08-10-10 03:23 AM

Re: Checking if vdpay is working on Linux using SMPlayer
 
Use the command line.
Open the folder where your movie is and launch mplayer:

Code:

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

cdysthe 08-10-10 08:22 AM

Re: Checking if vdpay is working on Linux using SMPlayer
 
Quote:

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

Code:

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 08-12-10 09:32 AM

Re: Checking if vdpay is working on Linux using SMPlayer
 
Thank you guys. Based on your input I found out what was wrong (needed to compile mplayer) and got it all working.


All times are GMT -5. The time now is 02:44 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.