annolinux / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Add support for Nvidia's VDPAU #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Nvidia has developed a new technology for their beta 180.* series drivers
that allows for full video acceleration with Nvidia 8 series+ video cards,
as well as patches to Mplayer in order to support this.

It'd be great to see future support for VDPAU in gnome-mplayer, as the GPU
will fully offload the decoding of video and leave the CPU free for other
tasks.

There is more information in Nvidia linux's forums, I'm not really too
familiar with it all but I can currently play videos with a patched Mplayer
from the command line, by using the following commands:

MPEG:
mplayer -vo vdpau -vc ffmpeg12vdpau video.mpg

H.264:
mplayer -vo vdpau -vc ffh264vdpau video.mkv

WMV3:
mplayer -vo vdpau -vc ffwmv3vdpau video.wmv

VC-1:
mplayer -vo vdpau -vc ffvc1vdpau video.wmv 

Original issue reported on code.google.com by perfectska04 on 17 Dec 2008 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by kdeko...@gmail.com on 17 Dec 2008 at 11:46

GoogleCodeExporter commented 9 years ago
Ok, I have made some patches and committed them to SVN but I was unable to test 
them
since I don't have the hardware. So if you could test that would be 
appreciated. If
you find a file that does not work, but should please run mplayer from the 
command
line like this and send the output.

mplayer -identify -frames 0 [filename]

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 3:40

GoogleCodeExporter commented 9 years ago
Thanks! I will try to test as much as I can once I get home.

Original comment by perfectska04 on 18 Dec 2008 at 6:00

GoogleCodeExporter commented 9 years ago
I checked out the latest revision and tried setting the video output as VDPAU. 
While
.avi files played as they should (since they're not accelerated by VDPAU), .mkv 
files
would not play at all.

I ran the following command (which plays .mkv files through VDPAU correctly) and
added the -identify and -frames 0 you mentioned:
mplayer -vo vdpau -vc ffh264vdpau -identify -frames 0 video.mkv

And here is the output:

MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing video.mkv.
ID_VIDEO_ID=0
ID_VID_0_NAME=video (h264)
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "video (h264)", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=2ch Vorbis Audio
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS) "2ch Vorbis Audio", -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English Subtitles
ID_SID_0_LANG=eng
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "English Subtitles", -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1421.71
ID_SEEKABLE=1
ID_CHAPTERS=5
==========================================================================
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: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...

Exiting... (End of file)

Original comment by perfectska04 on 18 Dec 2008 at 6:59

GoogleCodeExporter commented 9 years ago
Hi, just to give some comparison to the output above - I ran gnome-mplayer -v 
from
the command line and I'm submitting it's output as well. I'm not really sure 
what's
wrong, but perhaps gnome-mplayer is not adding the -vo vdpau correctly.

Here's gnome-mplayer -v:
GNOME MPlayer v0.9.2
Running in single instance mode
Running with GIO support
Master,0 Range is 0 to 65536 
Master,0 Current Volume 65536, multiplier = 0.001526
Scaled Volume is 100.000000
Using volume of 100.00
vo = vdpau ao = pulse
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
opening playlist
playlist detection = 0
adding file:///media/Storage/video.mkv to playlist
getting file metadata for /media/Storage/video.mkv
playing - file:///media/Storage/video.mkv
is playlist 0
mplayer -profile gnome-mplayer -vc ffh264vdpau -quiet -slave -identify 
-mixer-channel
Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput -nocache -wid 0x2a005c3 
-ass
-embeddedfonts -ass-font-scale 1.0 -ass-color ffffff00 -vf-add screenshot
/media/Storage/video.mkv 
Spawn succeeded for filename /media/Storage/video.mkv
MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
ERROR: Can't open joystick device /dev/input/js0: No such file or directory
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
ERROR: Can't init input joystick
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
ERROR: mplayer: could not connect to socket
Compiled with runtime CPU detection.
ERROR: mplayer: No such file or directory

ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Subtitles
ID_SID_0_LANG=und
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=/media/Storage/video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1420.01
ID_SEEKABLE=1
ID_CHAPTERS=6
[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: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 848 x 480 (preferred colorspace: H.264 HIGH VDPAU 
acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
VDec: vo config request - 848 x 480 (preferred colorspace: H.264 HIGH VDPAU 
acceleration)
ERROR: Try appending the scale filter to your filter list,
Could not find matching colorspace - retrying with -vf scale...
ERROR: e.g. -vf spp,scale instead of -vf spp.
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
ERROR: Try appending the scale filter to your filter list,
ERROR: e.g. -vf spp,scale instead of -vf spp.
ERROR: [VD_FFMPEG] Unexpected init_vo error.
Thread completing
shutting down threadquery for /media/Storage/video.mkv since threaddata->done 
is TRUE

Original comment by perfectska04 on 18 Dec 2008 at 7:11

GoogleCodeExporter commented 9 years ago
Can you please rerun the identify stage exactly as requested? Without the vo 
and vc
options. Also, please post your ~/.mplayer/config file. It is possible that the 
vdpau
vo does not like being embedded in a window and if that is the case, we'll need 
to
get that fixed in mplayer.

I did add a couple of filters to the code, so you might want to pull that and 
see if
it helps. Can you try a DVD and see if that works?

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 7:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok, I ran it without vo and vc options. However, without these options, it 
seems that
it uses ID_VIDEO_CODEC=ffh264 instead of ID_VIDEO_CODEC=ffh264vdpau and video 
is not
accelerated.

I also grabbed the latest gnome-mplayer SVN and .mkv's still won't play.
I'm sorry that I can't currently test DVD's, since my DVD drive hasn't been 
working
for a few days.

Here is the output of running mplayer -identify -frames 0 video.mkv (my
.mplayer/config file is at the bottom as well):

MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory

Playing video.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Subtitles
ID_SID_0_LANG=und
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1420.01
ID_SEEKABLE=1
ID_CHAPTERS=6
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
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
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...

Exiting... (End of file)

-----------------------.mplayer/config starts here------------------------
# Write your default config options here!

[gnome-mplayer]
slang=English,eng,en,und
msglevel=all=5
ao=pulse
dr=yes
vo=vdpau
vf=eq2

Original comment by perfectska04 on 18 Dec 2008 at 8:09

GoogleCodeExporter commented 9 years ago
I'll need you to remove the line 'vf=eq2' from the .mplayer/config file. The
preference editor removes this automatically now. Also what is the 'dr=yes' 
option? I
would suggest removing it.

I wanted to see what the non-accelerated case was so that I would know how to 
turn on
the acceleration. 

Please make those changes and retest.

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 8:18

GoogleCodeExporter commented 9 years ago
Ok, I removed "dr=yes" and "vf=eq2" from the config file. Here's the result from
mplayer -identify -frames 0 video.mkv:

MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory

Playing video.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Subtitles
ID_SID_0_LANG=und
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1420.01
ID_SEEKABLE=1
ID_CHAPTERS=6
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
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
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...

Exiting... (End of file)

Original comment by perfectska04 on 18 Dec 2008 at 8:25

GoogleCodeExporter commented 9 years ago
The identify looks good... I want you to try it in gnome-mplayer now.

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 8:39

GoogleCodeExporter commented 9 years ago
.mkv's still not work in gnome-mplayer. I ran gnome-mplayer -v and then I 
opened the
video.mkv file and here is the output:

GNOME MPlayer v0.9.2
Running in single instance mode
Running with GIO support
Master,0 Range is 0 to 65536 
Master,0 Current Volume 65536, multiplier = 0.001526
Scaled Volume is 100.000000
Using volume of 100.00
vo = vdpau ao = pulse
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
opening playlist
playlist detection = 0
adding file:///media/Storage/video.mkv to playlist
getting file metadata for /media/Storage/video.mkv
playing - file:///media/Storage/video.mkv
is playlist 0
mplayer -profile gnome-mplayer -vc ffh264vdpau -vf-pre spp,scale -quiet -slave
-identify -mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput
-nocache -wid 0x30005e0 -ass -embeddedfonts -ass-font-scale 1.0 -ass-color 
ffffff00
-vf-add screenshot /media/Storage/video.mkv 
Spawn succeeded for filename /media/Storage/video.mkv
MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
ERROR: Can't open joystick device /dev/input/js0: No such file or directory
ERROR: Can't init input joystick
ERROR: mplayer: could not connect to socket
ERROR: mplayer: No such file or directory
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.

Playing /media/Storage/video.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Subtitles
ID_SID_0_LANG=und
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=/media/Storage/video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1420.01
ID_SEEKABLE=1
ID_CHAPTERS=6
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [scale]
Opening video filter: [spp]
[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: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 848 x 480 (preferred colorspace: H.264 HIGH VDPAU 
acceleration)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
VDec: vo config request - 848 x 480 (preferred colorspace: H.264 HIGH VDPAU 
acceleration)
ERROR: Try appending the scale filter to your filter list,
[PP] Using external postprocessing filter, max q = 6.
ERROR: e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
ERROR: Try appending the scale filter to your filter list,
ERROR: e.g. -vf spp,scale instead of -vf spp.
ERROR: [VD_FFMPEG] Unexpected init_vo error.
Thread completing
shutting down threadquery for /media/Storage/video.mkv since threaddata->done 
is TRUE

Original comment by perfectska04 on 18 Dec 2008 at 8:51

GoogleCodeExporter commented 9 years ago
For some unknown reason vf=eq2 appeared in my config file automatically again. I
manually deleted it again and re-ran gnome-mplayer -v. Here's the output after
deleting that line once more:

NOME MPlayer v0.9.2
Running in single instance mode
Running with GIO support
Master,0 Range is 0 to 65536 
Master,0 Current Volume 65536, multiplier = 0.001526
Scaled Volume is 100.000000
Using volume of 100.00
vo = vdpau ao = pulse
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
opening playlist
playlist detection = 0
adding file:///media/Storage/video.mkv to playlist
getting file metadata for /media/Storage/video.mkv
playing - file:///media/Storage/video.mkv
is playlist 0
mplayer -profile gnome-mplayer -vc ffh264vdpau -vf-pre spp,scale -quiet -slave
-identify -mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput
-nocache -wid 0x34004f7 -ass -embeddedfonts -ass-font-scale 1.0 -ass-color 
ffffff00
-vf-add screenshot /media/Storage/video.mkv 
Spawn succeeded for filename /media/Storage/video.mkv
MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
ERROR: Can't open joystick device /dev/input/js0: No such file or directory
ERROR: Can't init input joystick
ERROR: mplayer: could not connect to socket
ERROR: mplayer: No such file or directory
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.

Playing /media/Storage/video.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Subtitles
ID_SID_0_LANG=und
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=/media/Storage/video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1420.01
ID_SEEKABLE=1
ID_CHAPTERS=6
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [scale]
Opening video filter: [spp]
[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: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 848 x 480 (preferred colorspace: H.264 HIGH VDPAU 
acceleration)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
VDec: vo config request - 848 x 480 (preferred colorspace: H.264 HIGH VDPAU 
acceleration)
ERROR: Try appending the scale filter to your filter list,
[PP] Using external postprocessing filter, max q = 6.
ERROR: e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
ERROR: Try appending the scale filter to your filter list,
ERROR: e.g. -vf spp,scale instead of -vf spp.
ERROR: [VD_FFMPEG] Unexpected init_vo error.
Thread completing
key name=Alt_L
shutting down threadquery for /media/Storage/video.mkv since threaddata->done 
is TRUE

Original comment by perfectska04 on 18 Dec 2008 at 8:56

GoogleCodeExporter commented 9 years ago
Yeah, I think we are out of luck on this one. Without the hardware to test I 
really
can't see what is going on. I have a feeling that the vdpau vo is not 
compatible with
being embedded in a window. This is not an uncommon problem with mplayer vo's 
so this
would not be the first time this has happened. You can test this theory by 
commenting
out lines 810-812 in thread.c

Change
    argv[arg++] = g_strdup_printf("-wid");
    player_window = get_player_window();
    argv[arg++] = g_strdup_printf("0x%x", player_window);

to

//    argv[arg++] = g_strdup_printf("-wid");
//    player_window = get_player_window();
//    argv[arg++] = g_strdup_printf("0x%x", player_window);

And see if it works then. If it does then a bug will have to be opened with the
mplayer team.

You also might test gnome-mplayer with the --reallyverbose option and see if 
that
gives anything interesting.

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 9:11

GoogleCodeExporter commented 9 years ago
I commented the lines you mentioned and recompiled. The files still won't play,
although you are most likely right. Perhaps it'd be best to leave the bug open 
for
the future and wait until Mplayer officially merges Nvidia's patches and work 
out any
kinks that are preventing gnome-mplayer from fully supporting VDPAU.

Although I do have the hardware required for VDPAU, I can't be of much help as I
don't have the technical knowledge to understand Nvidia's VDPAU specifications 
or its
limitations. 

I am attaching the output for gnome-mplayer --reallyverbose after commenting  
just in
case it can be of any help:

GNOME MPlayer v0.9.2
Running in single instance mode
Running with GIO support
Master,0 Range is 0 to 65536 
Master,0 Current Volume 65536, multiplier = 0.001526
Scaled Volume is 100.000000
Using volume of 100.00
vo = vdpau ao = pulse
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
opening playlist
playlist detection = 0
adding file:///media/Storage/video.mkv to playlist
file:///media/Storage/video.mkv is not a device name
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
file:///media/Storage/video.mkv is not a device name
getting file metadata for /media/Storage/video.mkv
playing - file:///media/Storage/video.mkv
is playlist 0
file:///media/Storage/video.mkv is not a device name
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
/media/Storage/video.mkv is not a device name
/media/Storage/video.mkv is not a device name
Streaming media '/media/Storage/video.mkv' = 0
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
mplayer -profile gnome-mplayer -vc ffh264vdpau -vf-pre spp,scale -slave 
-identify
-mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput -nocache 
-ass
-embeddedfonts -ass-font-scale 1.0 -ass-color ffffff00 -vf-add screenshot
/media/Storage/video.mkv 
Spawn succeeded for filename /media/Storage/video.mkv
About to lock second time, next message about thread running, should be 
unlocking
send command = seek 0 0

thread reader: MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
thread reader: CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, 
Model: 2,
Stepping: 3)
thread reader: CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
thread reader: Compiled with runtime CPU detection.
thread reader error: Can't open joystick device /dev/input/js0: No such file or 
directory
thread reader: 
thread reader error: Can't init input joystick
thread reader: Playing /media/Storage/video.mkv.
thread reader error: mplayer: could not connect to socket
thread reader: ID_VIDEO_ID=0
thread reader error: mplayer: No such file or directory
thread reader: [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
thread reader error: Failed to open LIRC support. You will not be able to use 
your
remote control.
thread reader: ID_AUDIO_ID=0
thread reader: ID_AID_0_LANG=jpn
thread reader: [mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
thread reader: ID_SUBTITLE_ID=0
thread reader: ID_SID_0_NAME=Subtitles
thread reader: ID_SID_0_LANG=und
thread reader: [mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, 
-slang und
thread reader: [mkv] Will play video track 1.
thread reader: Matroska file format detected.
thread reader: VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 
kbyte/s)
thread reader: ID_FILENAME=/media/Storage/video.mkv
thread reader: ID_DEMUXER=mkv
thread reader: ID_VIDEO_FORMAT=avc1
thread reader: ID_VIDEO_BITRATE=0
thread reader: ID_VIDEO_WIDTH=848
thread reader: ID_VIDEO_HEIGHT=480
thread reader: ID_VIDEO_FPS=23.976
thread reader: ID_VIDEO_ASPECT=1.7667
thread reader: ID_AUDIO_FORMAT=vrbs
thread reader: ID_AUDIO_BITRATE=0
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: ID_LENGTH=1420.01
thread reader: ID_SEEKABLE=1
thread reader: ID_CHAPTERS=6
send command = pausing_keep sub_demux 0

send command = pausing_keep switch_audio 0

thread reader: [ass] auto-open
thread reader: Opening video filter: [screenshot]
thread reader: Opening video filter: [scale]
thread reader: Opening video filter: [spp]
thread reader: [ass] Init
thread reader: [ass] Updating font cache.
thread reader: 
==========================================================================
thread reader: Forced video codec: ffh264vdpau
thread reader: Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
thread reader: [VD_FFMPEG] VDPAU accelerated codec.
thread reader: Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 
(VDPAU))
thread reader: 
==========================================================================
thread reader: ID_VIDEO_CODEC=ffh264vdpau
thread reader: 
==========================================================================
thread reader: Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
thread reader: AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
thread reader: ID_AUDIO_BITRATE=0
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis 
decoder)
thread reader: 
==========================================================================
thread reader: AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
thread reader: ID_AUDIO_CODEC=ffvorbis
thread reader: Starting playback...
thread reader: [VD_FFMPEG] Trying pixfmt=0.
thread reader: VDec: vo config request - 848 x 480 (preferred colorspace: H.264 
HIGH
VDPAU acceleration)
thread reader: [PP] Using external postprocessing filter, max q = 6.
thread reader: Could not find matching colorspace - retrying with -vf scale...
thread reader: Opening video filter: [scale]
thread reader error: The selected video_out device is incompatible with this 
codec.
thread reader: VDec: vo config request - 848 x 480 (preferred colorspace: H.264 
HIGH
VDPAU acceleration)
thread reader error: Try appending the scale filter to your filter list,
thread reader: [PP] Using external postprocessing filter, max q = 6.
thread reader error: e.g. -vf spp,scale instead of -vf spp.
thread reader: Could not find matching colorspace - retrying with -vf scale...
thread reader: Opening video filter: [scale]
thread reader error: The selected video_out device is incompatible with this 
codec.
thread reader error: Try appending the scale filter to your filter list,
thread reader error: e.g. -vf spp,scale instead of -vf spp.
thread reader error: [VD_FFMPEG] Unexpected init_vo error.
thread complete
Thread completing
thread running, in second lock
thread_complete, unlocking thread running
thread running, before unlocking second time
thread running, unlocked second time
shutting down threadquery for /media/Storage/video.mkv since threaddata->done 
is TRUE

Original comment by perfectska04 on 18 Dec 2008 at 9:34

GoogleCodeExporter commented 9 years ago
Can you try a couple of these mplayer command line

mplayer -vo vdpau -ao pulse -vc ffh264vdpau -slave -identify
-mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput -nocache 
-ass
-embeddedfonts -ass-font-scale 1.0 -ass-color ffffff00 
/media/Storage/video.mkv 

mplayer -vo vdpau -ao pulse -vc ffh264vdpau -slave -identify
-mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput -nocache 
/media/Storage/video.mkv 

mplayer -vo vdpau -ao pulse -vc ffh264vdpau -slave -identify
-mixer-channel Master,0 -noconsolecontrols -nocache 
/media/Storage/video.mkv 

And let me know if any of those work... perhaps it is some combination

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 9:44

GoogleCodeExporter commented 9 years ago
Hey, I just tried all three commands. The second and third one can play the 
video
successfully through VDPAU. The first one, however does not play.

I am attaching the output of the first command:

MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, Model: 2, Stepping: 
3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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 /media/Storage/video.mkv.
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Subtitles
ID_SID_0_LANG=und
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=/media/Storage/video.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=848
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7667
ID_AUDIO_FORMAT=vrbs
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=1420.01
ID_SEEKABLE=1
ID_CHAPTERS=6
[ass] auto-open
[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: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffvorbis
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 848 x 480 (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 - 848 x 480 (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.

Original comment by perfectska04 on 18 Dec 2008 at 10:03

GoogleCodeExporter commented 9 years ago
ok, this is helpful. In gnome-mplayer go to the preferences tab and go to the
subtitle page and uncheck Alpha Substation support. And see if gnome-mplayer 
then works.

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 10:13

GoogleCodeExporter commented 9 years ago
I disabled that setting but it still wouldn't play. This is the command that
gnome-mplayer used:

mplayer -profile gnome-mplayer -vc ffh264vdpau -vf-pre spp,scale -quiet -slave
-identify -mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput
-nocache -wid 0x2c00b30 -subfont-text-scale 5 -vf-add screenshot 
/media/Storage/video.mkv

I ran that same command on the terminal and the file wouldn't play either.
Afterwards, I changed it a bit and I found out that removing -vf-add 
screenshot, -wid
0x2c00b30 and -vf-pre spp,scale would allow the file to play.

I've also attached the --reallyverbose output of the failed attempt:
GNOME MPlayer v0.9.2
Running in single instance mode
Running with GIO support
Master,0 Range is 0 to 65536 
Master,0 Current Volume 65536, multiplier = 0.001526
Scaled Volume is 100.000000
Using volume of 100.00
vo = vdpau ao = pulse
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
opening playlist
playlist detection = 0
adding file:///media/Storage/video.mkv to playlist
file:///media/Storage/video.mkv is not a device name
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
file:///media/Storage/video.mkv is not a device name
getting file metadata for /media/Storage/video.mkv
playing - file:///media/Storage/video.mkv
is playlist 0
file:///media/Storage/video.mkv is not a device name
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
/media/Storage/video.mkv is not a device name
/media/Storage/video.mkv is not a device name
Streaming media '/media/Storage/video.mkv' = 0
file:///media/Storage/video.mkv is not a device name
Streaming media 'file:///media/Storage/video.mkv' = 0
mplayer -profile gnome-mplayer -vc ffh264vdpau -vf-pre spp,scale -slave 
-identify
-mixer-channel Master,0 -noconsolecontrols -osdlevel 1 -nomouseinput -nocache 
-wid
0x2c0056e -subfont-text-scale 5 -vf-add screenshot /media/Storage/video.mkv 
Spawn succeeded for filename /media/Storage/video.mkv
About to lock second time, next message about thread running, should be 
unlocking
send command = seek 0 0

thread reader: MPlayer dev-SVN-r28045-4.3.2 (C) 2000-2008 MPlayer Team
thread reader error: Can't open joystick device /dev/input/js0: No such file or 
directory
thread reader: CPU: AMD Phenom(tm) 8750 Triple-Core Processor (Family: 16, 
Model: 2,
Stepping: 3)
thread reader error: Can't init input joystick
thread reader: CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
thread reader error: mplayer: could not connect to socket
thread reader: Compiled with runtime CPU detection.
thread reader error: mplayer: No such file or directory
thread reader: 
thread reader error: Failed to open LIRC support. You will not be able to use 
your
remote control.
thread reader: Playing /media/Storage/video.mkv.
thread reader: ID_VIDEO_ID=0
thread reader: [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
thread reader: ID_AUDIO_ID=0
thread reader: ID_AID_0_LANG=jpn
thread reader: [mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
thread reader: ID_SUBTITLE_ID=0
thread reader: ID_SID_0_NAME=Subtitles
thread reader: ID_SID_0_LANG=und
thread reader: [mkv] Track ID 3: subtitles (S_TEXT/ASS) "Subtitles", -sid 0, 
-slang und
thread reader: [mkv] Will play video track 1.
thread reader: Matroska file format detected.
thread reader: VIDEO:  [avc1]  848x480  24bpp  23.976 fps    0.0 kbps ( 0.0 
kbyte/s)
thread reader: ID_FILENAME=/media/Storage/video.mkv
thread reader: ID_DEMUXER=mkv
thread reader: ID_VIDEO_FORMAT=avc1
thread reader: ID_VIDEO_BITRATE=0
thread reader: ID_VIDEO_WIDTH=848
thread reader: ID_VIDEO_HEIGHT=480
thread reader: ID_VIDEO_FPS=23.976
thread reader: ID_VIDEO_ASPECT=1.7667
thread reader: ID_AUDIO_FORMAT=vrbs
thread reader: ID_AUDIO_BITRATE=0
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: ID_LENGTH=1420.01
thread reader: ID_SEEKABLE=1
thread reader: ID_CHAPTERS=6
send command = pausing_keep sub_demux 0

send command = pausing_keep switch_audio 0

thread reader: Opening video filter: [screenshot]
thread reader: Opening video filter: [scale]
thread reader: Opening video filter: [spp]
thread reader: 
==========================================================================
thread reader: Forced video codec: ffh264vdpau
thread reader: Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
thread reader: [VD_FFMPEG] VDPAU accelerated codec.
thread reader: Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 
(VDPAU))
thread reader: 
==========================================================================
thread reader: ID_VIDEO_CODEC=ffh264vdpau
thread reader: 
==========================================================================
thread reader: Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
thread reader: AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
thread reader: ID_AUDIO_BITRATE=0
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis 
decoder)
thread reader: 
==========================================================================
thread reader: AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
thread reader: ID_AUDIO_CODEC=ffvorbis
thread reader: Starting playback...
thread reader: [VD_FFMPEG] Trying pixfmt=0.
thread reader: VDec: vo config request - 848 x 480 (preferred colorspace: H.264 
HIGH
VDPAU acceleration)
thread reader: [PP] Using external postprocessing filter, max q = 6.
thread reader: Could not find matching colorspace - retrying with -vf scale...
thread reader: Opening video filter: [scale]
thread reader error: The selected video_out device is incompatible with this 
codec.
thread reader: VDec: vo config request - 848 x 480 (preferred colorspace: H.264 
HIGH
VDPAU acceleration)
thread reader error: Try appending the scale filter to your filter list,
thread reader: [PP] Using external postprocessing filter, max q = 6.
thread reader error: e.g. -vf spp,scale instead of -vf spp.
thread reader: Could not find matching colorspace - retrying with -vf scale...
thread reader: Opening video filter: [scale]
thread reader error: The selected video_out device is incompatible with this 
codec.
thread reader error: Try appending the scale filter to your filter list,
thread reader error: e.g. -vf spp,scale instead of -vf spp.
thread reader error: [VD_FFMPEG] Unexpected init_vo error.
Thread completing
thread running, in second lock
thread running, before unlocking second time
thread running, unlocked second time
shutting down threadquery for /media/Storage/video.mkv since threaddata->done 
is TRUE

Original comment by perfectska04 on 18 Dec 2008 at 10:28

GoogleCodeExporter commented 9 years ago
Ok, made a patch removing the filters... only think I can't remove is the wid 
option.
So give SVN a try and report back.

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 10:35

GoogleCodeExporter commented 9 years ago
I just tried playing the .mkv file and it played just as expected. It was 
accelerated
through VDPAU and there was hardly any CPU usage. The only major drawback for 
me is
that ASS has to remain disabled for it to work.

I also hooked up an old DVD drive and tested a random DVD I had and I can 
confirm
that VDPAU is also working with MPEG, as follows:
VO: [vdpau] 720x576 => 1024x576 MPEG2 MAIN VDPAU acceleration

Another minor issue I noticed is that sometimes there is some visual garbage at 
the
top of the video being played, but resizing or using fullscreen corrects it
immediately. This is probably an issue with Nvidia and not gnome-mplayer's, so 
maybe
you don't need to worry about it.

Thanks a lot for your work so far! This is relatively new technology and you've
provided support for it very quickly.

Original comment by perfectska04 on 18 Dec 2008 at 10:53

GoogleCodeExporter commented 9 years ago
I've done some further testing, and pretty much every file I was able to play 
through
the command line can also be played through gnome-mplayer's VDPAU. It's a shame 
ASS
and taking screenshots aren't currently compatible with it, but hopefully when
Nvidia's code matures those features can be added back.

Original comment by perfectska04 on 18 Dec 2008 at 11:12

GoogleCodeExporter commented 9 years ago
Excellent, it appears that xvmc and vdpau both have issues with filters so this 
is
good to know.

I will close this now.

Original comment by kdeko...@gmail.com on 18 Dec 2008 at 11:13