The SMPlayer Project

BerliOS Logo

You are not logged in.

#1 2008-11-16 06:26:55

user
Guest

Add a support for vdpau??

Vdapu is a HD video hardware decoder api for Nvidia, it provides a large subset of PureVideo HD functionality for NVIDIA Linux, Solaris, and FreeBSD users.
about vdapu:http://www.nvnews.net/vbulletin/showthread.php?t=123091

It maybe the first hardware decoder api that can be used in linux now, and  I hope smplayer will support vdapu to help user choose the video ouput and codec automatically when play the HD video.

#2 2008-11-16 07:35:06

WiseLord
Member
Registered: 2007-12-17
Posts: 101

Re: Add a support for vdpau??

NVidia provides patches for MPlayer, so compiling MPlayer with these patches is possible, but this technology is still very beta and for only few video cards.

Last edited by WiseLord (2008-11-16 07:37:22)


Russian translator

Offline

#3 2008-11-16 10:55:15

Surkow
Administrator
Registered: 2007-09-30
Posts: 259

Re: Add a support for vdpau??

List of supported cards.

Sadly enough the 7 series is not supported (which includes one of my cards).

Offline

#4 2008-11-17 01:24:26

themono
Guest

Re: Add a support for vdpau??

This would be awesome. In fact, beyond awesome. It'd mean maintaining the VDPAU mplayer patch in your (already) patched mplayer ubuntu packages, but other than that it should be fairly easy to add to smplayer - I think.

Having said that, the VDPAU capable driver is still in beta, so there is no huge rush.

#5 2008-11-17 01:29:48

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: Add a support for vdpau??

I could add that patch to the mplayer packages for ubuntu (if it apply and compile with latest svn), but I won't be able to test myself. I have a nvidia card, but I think it's not in the list of supported cards (FX 5500).

Edit: I'm afraid the patches fail to apply to the latest svn (r27942). Sorry.

Anyway if you really want I could try to make packages for the version these patches have been made for (svn r27408).

Last edited by rvm (2008-11-17 01:34:54)


RVM

Offline

#6 2008-11-18 12:02:26

zsl1005
Member
Registered: 2008-09-27
Posts: 10

Re: Add a support for vdpau??

rvm wrote:

I could add that patch to the mplayer packages for ubuntu (if it apply and compile with latest svn), but I won't be able to test myself. I have a nvidia card, but I think it's not in the list of supported cards (FX 5500).

Edit: I'm afraid the patches fail to apply to the latest svn (r27942). Sorry.

Anyway if you really want I could try to make packages for the version these patches have been made for (svn r27408).

Maybe you can prepare for this new funciton and add into smplayer when the Nvidia 180.xx driver is released, it's just a beta now after all. I think it's a revolution about HD video playing in Linux.

Offline

#7 2008-11-18 12:25:02

Surkow
Administrator
Registered: 2007-09-30
Posts: 259

Re: Add a support for vdpau??

ATI seems to offer video acceleration for Linux as well. But currently there are no patches for MPlayer yet.

Offline

#8 2008-11-20 12:56:18

themono
Guest

Re: Add a support for vdpau??

rvm wrote:

Anyway if you really want I could try to make packages for the version these patches have been made for (svn r27408).

Don't panic too much about it, but thanks for the offer. I imagine it shouldn't be too long before VDPAU makes it into mainline mplayer anyway - if you just updated your packages then, or when someone puts out a new working patch that is nice and clean, then that would be most appreciated.

#9 2008-12-18 19:27:48

-dk-
Member
Registered: 2008-12-17
Posts: 17

Re: Add a support for vdpau??

If we manually patch mplayer, will the vpdau option show up in smplayer automagically or will we have to pass command line options to mplayer through smplayer?

Offline

#10 2008-12-18 23:00:31

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: Add a support for vdpau??

If it adds a new video driver it will be listed in the smplayer preferences. But according to what I read I think it's necessary to use a specific video codec too, and that would require to pass an option to mplayer.


RVM

Offline

#11 2008-12-25 13:16:39

user
Guest

Re: Add a support for vdpau??

Until now, there are 4 versions vdpau patch for mplayer and many versions driver, it's now almost stable now. Mythtv, Xine are supporting vdpau now and vlc is preparing for it now. Smplayer, the best front-end of mplayer, can be added with a option for vdpau user now. Although there will be many beta versions of vdpau driver and patch, but it almost has nothing do with the front-end. I can play the hd video with vdpau mplayer with the option "-vo vdpau -vc ffh264vdpau(ffwmv3vdpau,etc)" very well. Now I cannot use the smplayer to play the hd video with vdpau codec and output because of some additional options, but with the vdpau video output, I can play none-hd video in the smlayer. The vdpau output is compatible with Xvideo very well. SO I wish the smplayer can start to support vdpau now, even though experimental support.

#12 2008-12-25 17:30:05

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: Add a support for vdpau??

I think you can try to add a line like this to Preferences->Advanced->Options for mplayer:

Code:

-vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau,

That will make mplayer to try to use one of those codecs first, and if none if suitable it will fall back to another one (the "," at the end is important!)


RVM

Offline

#13 2008-12-26 01:00:24

user
Guest

Re: Add a support for vdpau??

I mean that I have chosen the right codec in the file properties, but because of some addition play options which is not suitable, the mplay crashed, even with the smplayer default option, for example, there is a h264 hd-video file '1.avi' , I played  it with smplayer with default option except vdpau output and codec, the command line of mplayer is :

/usr/local/bin/mplayer -noquiet -nofs -vc ffh264vdpau -sub-fuzziness 1 -identify -slave -vo vdpau -ao alsa, -zoom -nokeepaspect -framedrop -nodr -double -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -wid 60817420 -monitorpixelaspect 1 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -ass-styles /home/zsl/.config/smplayer/styles.ass -fontconfig -font Arial -subcp ISO-8859-1 -vid 0 -aid 1 -subpos 100 -volume 40 -cache 2000 -osdlevel 0 -nocorrect-pts -vf-add screenshot -slices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0

but the output is :


MPlayer dev-SVN-r27960-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
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 1.avi.

AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
AVI: ODML: Building ODML index (2 superindexchunks).
VIDEO:  [H264]  1280x720  12bpp  23.976 fps  3999.8 kbps (488.3 kbyte/s)
Clip info:
Software: AVI-Mux GUI 1.17.6, May 28 2006  15:53:35
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=AVI-Mux GUI 1.17.6, May 28 2006  15:53:35
Name: hotel california
ID_CLIP_INFO_NAME1=Name
ID_CLIP_INFO_VALUE1=hotel california
ID_CLIP_INFO_N=2
ID_FILENAME=1.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=3999800
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=8193
ID_AUDIO_BITRATE=1509744
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=428.97
ID_SEEKABLE=1
ID_CHAPTERS=0
[ass] auto-open
Opening video filter: [screenshot]
[ass] Init
[ass] Updating font cache.
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
ID_VIDEO_CODEC=ffh264vdpau
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
ID_AUDIO_BITRATE=1536000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [dts] afm: libdca (DTS-libdca)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=dts
[AO_ALSA] Unable to find simple control 'PCM',0.
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Stream with high frequencies VQ coding
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1280 x 720 (preferred colorspace: H.264 HIGH VDPAU acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDec: vo config request - 1280 x 720 (preferred colorspace: H.264 HIGH VDPAU acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Unexpected init_vo error.

#14 2008-12-26 01:05:57

user
Guest

Re: Add a support for vdpau??

If I play the video with mplayer in terminal window, everything is OK.


$:mplayer -vo vdpau -vc ffh264vdpau 1.avi


MPlayer dev-SVN-r27960-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
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 1.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: ODML: Building ODML index (2 superindexchunks).
VIDEO:  [H264]  1280x720  12bpp  23.976 fps  3999.8 kbps (488.3 kbyte/s)
Clip info:
Software: AVI-Mux GUI 1.17.6, May 28 2006  15:53:35
Name: hotel california
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [dts] afm: libdca (DTS-libdca)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Stream with high frequencies VQ coding
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1280 x 720 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1280x720 => 1280x720 H.264 HIGH VDPAU acceleration
VDec: vo config request - 1280 x 720 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 H.264 HIGH VDPAU acceleration
New_Face failed. Maybe the font path is wrong. 1 ??% ??% ??,?% 0 0
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   2.8 V:   2.8 A-V: -0.000 ct: -0.000  69/ 69  9%  7%  8.3% 2 0

#15 2008-12-26 01:34:29

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: Add a support for vdpau??

Probably it's a bug in the ffh264vdpau codec.

You can try to run this on a terminal:

/usr/local/bin/mplayer -noquiet -nofs -vc ffh264vdpau -sub-fuzziness 1 -identify -vo vdpau -ao alsa, -zoom -nokeepaspect -framedrop -nodr -double -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -monitorpixelaspect 1 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -ass-styles /home/zsl/.config/smplayer/styles.ass -fontconfig -font Arial -subcp ISO-8859-1 -vid 0 -aid 1 -subpos 100 -volume 40 -cache 2000 -osdlevel 0 -nocorrect-pts -vf-add screenshot -slices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 1.avi

And see if it crashes. If it does, then remove one of the options from the command line and try again, until you find out the one which causes the crash.


RVM

Offline

#16 2008-12-26 01:52:28

user
Guest

Re: Add a support for vdpau??

I can play with this opiton:

/usr/local/bin/mplayer -noquiet -nofs -vc ffh264vdpau -sub-fuzziness 1 -identify -vo vdpau -ao alsa, -zoom -nokeepaspect -framedrop -nodr -double -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -monitorpixelaspect 1

no more added or else mplayer will be crashed.

#17 2008-12-26 02:09:40

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: Add a support for vdpau??

So the option that make it crash it seems to be -ass.

Then in smplayer disable the "Use SSA/ASS library" option (in the Subtitles menu) and see if it works.


RVM

Offline

#18 2008-12-26 02:22:34

user
Guest

Re: Add a support for vdpau??

still crash

/usr/local/bin/mplayer -noquiet -nofs -vc ffh264vdpau -sub-fuzziness 1 -identify -slave -vo vdpau -ao alsa -zoom -nokeepaspect -framedrop -nodr -double -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -wid 60817420 -monitorpixelaspect 1 -noass -subfont-autoscale 1 -subfont-text-scale 5 -subcp ISO-8859-1 -vid 0 -aid 1 -subpos 100 -volume 40 -cache 2000 -ss 6 -osdlevel 0 -nocorrect-pts -vf-add screenshot -slices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 /media/f/我的文档/My Videos/MTV/1.avi

MPlayer dev-SVN-r27960-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
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.
Terminal type `unknown' is not defined.

Playing /media/f/我的文档/My Videos/MTV/1.avi.

Cache fill:  0.00% (0 bytes)   
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
AVI: ODML: Building ODML index (2 superindexchunks).
VIDEO:  [H264]  1280x720  12bpp  23.976 fps  3999.8 kbps (488.3 kbyte/s)
Clip info:
Software: AVI-Mux GUI 1.17.6, May 28 2006  15:53:35
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=AVI-Mux GUI 1.17.6, May 28 2006  15:53:35
Name: hotel california
ID_CLIP_INFO_NAME1=Name
ID_CLIP_INFO_VALUE1=hotel california
ID_CLIP_INFO_N=2
ID_FILENAME=/media/f/我的文档/My Videos/MTV/1.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=3999800
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=8193
ID_AUDIO_BITRATE=1509744
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=428.97
ID_SEEKABLE=1
ID_CHAPTERS=0
Opening video filter: [screenshot]
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
ID_VIDEO_CODEC=ffh264vdpau
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
ID_AUDIO_BITRATE=1536000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [dts] afm: libdca (DTS-libdca)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=dts
[AO_ALSA] Unable to find simple control 'PCM',0.
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Stream with high frequencies VQ coding
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1280 x 720 (preferred colorspace: H.264 HIGH VDPAU acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDec: vo config request - 1280 x 720 (preferred colorspace: H.264 HIGH VDPAU acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Unexpected init_vo error.

#19 2008-12-26 02:35:13

user
Guest

Re: Add a support for vdpau??

And the following option is ok
/usr/local/bin/mplayer -noquiet -nofs -vc ffh264vdpau -sub-fuzziness 1 -identify -slave -vo vdpau -ao alsa -zoom -nokeepaspect -framedrop -nodr -double -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -monitorpixelaspect 1 -noass -subfont-autoscale 1 -subfont-text-scale 5 1.avi -subcp ISO-8859-1 -vid 0 -aid 1 -subpos 100 -volume 40 -cache 2000 -ss 6 -osdlevel 0 -nocorrect-pts

if '-vf-add screenshot' added then crash

#20 2008-12-26 02:37:51

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2580

Re: Add a support for vdpau??

Go then to Preferences->General and clear the field for the screenshot directory. This way "-vf-add screenshot" won't be passed to mplayer.


RVM

Offline

#21 2008-12-26 02:49:38

user
Guest

Re: Add a support for vdpau??

Now it's OK, thank you very much.smile

#22 2008-12-26 11:40:26

hyfans
New member
Registered: 2008-12-26
Posts: 2

Re: Add a support for vdpau??

user wrote:

Now it's OK, thank you very much.smile

hi there,

   can you tell me how did you write the options line?

i use the above trick and smplayer(today's svn) still refuse to work.

in advance options, i wrote:

-vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau, (yes, with the "," end)

and choose vdpau(same choosing xv) as video output.

also in Preferences->General, i clear the field for the screenshot directory.

then play some mp4(h264) file, smplayer still tell me some errors like this:

......
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
......


commandline mplayer works well with vdpau.

Offline

#23 2008-12-26 12:05:27

user
Guest

Re: Add a support for vdpau??

you must enable the normal subtitle option (disable the ssa/ass subtitle) in "Subtitle > font and colors"


hyfans wrote:

user wrote:

Now it's OK, thank you very much.smile

hi there,

   can you tell me how did you write the options line?

i use the above trick and smplayer(today's svn) still refuse to work.

in advance options, i wrote:

-vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau, (yes, with the "," end)

and choose vdpau(same choosing xv) as video output.

also in Preferences->General, i clear the field for the screenshot directory.

then play some mp4(h264) file, smplayer still tell me some errors like this:

......
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
......


commandline mplayer works well with vdpau.

#24 2008-12-26 12:24:04

hyfans
New member
Registered: 2008-12-26
Posts: 2

Re: Add a support for vdpau??

user wrote:

you must enable the normal subtitle option (disable the ssa/ass subtitle) in "Subtitle > font and colors"


hyfans wrote:

user wrote:

Now it's OK, thank you very much.smile

hi there,

   can you tell me how did you write the options line?

i use the above trick and smplayer(today's svn) still refuse to work.

in advance options, i wrote:

-vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau, (yes, with the "," end)

and choose vdpau(same choosing xv) as video output.

also in Preferences->General, i clear the field for the screenshot directory.

then play some mp4(h264) file, smplayer still tell me some errors like this:

......
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
......


commandline mplayer works well with vdpau.

thx, now it works big_smile

Offline

#25 2009-01-02 03:25:37

DGMurdockIII
Member
Registered: 2009-01-02
Posts: 23

Re: Add a support for vdpau??

what about in windows

Offline

Board footer

Powered by PunBB
© The SMPlayer Project