You are not logged in.
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.
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)
Offline
List of supported cards.
Sadly enough the 7 series is not supported (which includes one of my cards).
Offline
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.
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)
Offline
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
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.
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.
Offline
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.
I think you can try to add a line like this to Preferences->Advanced->Options for mplayer:
-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!)
Offline
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.
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
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.
Offline
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.
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.
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
user wrote:
Now it's OK, thank you very much.
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
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.
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.
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.
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 ![]()
Offline
what about in windows
Offline