mplayer-git: problems with vdpau playback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



Hello,

I am experiencing a certain -vo vdpau playback problem on my notebook
with the following graphic card:

VGA compatible controller: nVidia Corporation G86 [GeForce 8400M GS] (rev a1)

The problem exists only in mplayer-git. This is what I observe:

When I play the file [1] with

mplayer -vo vdpau vdpau_test.mp4

for the first time after a reboot it plays normal. But on the second
run (and the third, forth, etc.) I get these errors:

------------ log starts ------------

MPlayer git-9b94b3f-4.4.4 (C) 2000-2010 MPlayer Team
Loading extension-related profile 'vo.vdpau'

Playing vdpau_test.mp4.

Cache fill:  0.00% (0 bytes)   
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  23.976 fps  2716.6 kbps (331.6 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isom
==========================================================================
Forced video codec: ffmpeg12vdpau
Forced video codec: ffwmv3vdpau
Forced video codec: ffvc1vdpau
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 203.8 kbit/13.27% (ratio: 25471->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1920x1080 => 1920x1080 H.264 VDPAU acceleration 
[vdpau] Got display refresh rate 59.910 Hz.
[vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.
A:   0.2 V:   0.1 A-V:  0.109 ct:  0.000   0/  0 ??% ??% ??,?% 0 0 29% 
A:   0.3 V:   0.1 A-V:  0.144 ct: -0.004   0/  0 ??% ??% ??,?% 1 0 29% 
A:   0.3 V:   0.2 A-V:  0.108 ct: -0.008   0/  0 ??% ??% ??,?% 2 0 29% 
[   vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   0.3 V:   0.2 A-V:  0.073 ct: -0.013   0/  0 ??% ??% ??,?% 2 0 29% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   0.3 V:   0.3 A-V:  0.038 ct: -0.017   0/  0 ??% ??% ??,?% 3 0 29% 
A:   0.3 V:   0.3 A-V: -0.003 ct: -0.021   0/  0 ??% ??% ??,?% 3 0 29% 
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   0.3 V:   0.3 A-V: -0.037 ct: -0.025   0/  0 ??% ??% ??,?% 3 0 29% 
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   0.3 V:   0.4 A-V: -0.033 ct: -0.029   0/  0 ??% ??% ??,?% 3 0 29% 
A:   0.3 V:   0.4 A-V: -0.030 ct: -0.032   0/  0 ??% ??% ??,?% 3 0 29% 
A:   0.4 V:   0.5 A-V: -0.027 ct: -0.035   0/  0 ??% ??% ??,?% 3 0 31% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   0.4 V:   0.5 A-V: -0.024 ct: -0.038   0/  0 ??% ??% ??,?% 3 0 31% 
A:   0.5 V:   0.5 A-V: -0.022 ct: -0.040   0/  0 ??% ??% ??,?% 3 0 31% 
A:   0.5 V:   0.6 A-V: -0.020 ct: -0.042   0/  0 42% 28%  2.1% 3 0 31% 
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   0.6 V:   0.6 A-V: -0.018 ct: -0.044   0/  0 39% 28%  2.0% 3 0 31% 
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   0.6 V:   0.7 A-V: -0.016 ct: -0.046   0/  0 36% 28%  2.1% 3 0 31% 
A:   0.6 V:   0.7 A-V: -0.014 ct: -0.048   0/  0 34% 29%  2.1% 3 0 31% 
A:   0.7 V:   0.8 A-V: -0.013 ct: -0.049   0/  0 32% 29%  2.0% 3 0 31% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   0.7 V:   0.8 A-V: -0.012 ct: -0.050   0/  0 30% 30%  2.0% 3 0 31% 
A:   0.8 V:   0.8 A-V: -0.011 ct: -0.052   0/  0 28% 29%  2.0% 3 0 31% 
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   0.8 V:   0.9 A-V: -0.009 ct: -0.053   0/  0 27% 30%  2.0% 3 0 31% 
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   0.9 V:   0.9 A-V: -0.009 ct: -0.054   0/  0 26% 31%  2.0% 3 0 34% 
A:   0.9 V:   1.0 A-V: -0.008 ct: -0.054   0/  0 24% 30%  5.6% 3 0 27% 
A:   0.9 V:   1.0 A-V: -0.007 ct: -0.055   0/  0 23% 31%  5.4% 3 0 27% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.0 V:   1.0 A-V: -0.006 ct: -0.056   0/  0 22% 31%  5.2% 3 0 27% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.0 V:   1.1 A-V: -0.006 ct: -0.057   0/  0 21% 31%  5.1% 3 0 27% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.1 V:   1.1 A-V: -0.005 ct: -0.057   0/  0 20% 31%  4.9% 3 0 27% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.1 V:   1.2 A-V: -0.004 ct: -0.058   0/  0 20% 32%  4.8% 3 0 27% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   1.2 V:   1.2 A-V: -0.004 ct: -0.058   0/  0 19% 32%  4.7% 3 0 27% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   1.2 V:   1.3 A-V: -0.004 ct: -0.058   0/  0 18% 32%  4.6% 3 0 27% 
A:   1.2 V:   1.3 A-V: -0.003 ct: -0.059   0/  0 18% 32%  4.5% 3 0 27% 
A:   1.3 V:   1.3 A-V: -0.003 ct: -0.059   0/  0 17% 33%  4.4% 3 0 30% 
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.3 V:   1.4 A-V: -0.003 ct: -0.059   0/  0 16% 33%  4.3% 3 0 22% 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 0, offset 0x201b84: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 0, offset 0x20fae8: partial file
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.4 V:   1.4 A-V: -0.003 ct: -0.060   0/  0 16% 32%  9.6% 3 0 0% 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 0, offset 0x222114: partial file
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.4 V:   1.5 A-V: -0.003 ct: -0.060   0/  0 15% 31%  9.3% 3 0 0% 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 0, offset 0x222f79: partial file
[   vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
A:   1.5 V:   1.5 A-V: -0.003 ct: -0.060   0/  0 15% 30%  9.0% 3 0 0% 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 0, offset 0x22ed31: partial file
[h264_vdpau @ 0x87c2f00]AVC: nal size 48358
[h264_vdpau @ 0x87c2f00]no frame!
Error while decoding frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 0, offset 0x24142f: partial file
[   vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
A:   1.5 V:   1.5 A-V: -0.050 ct: -0.060   0/  0 15% 29%  8.8% 3 0 0% 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 1, offset 0x24208c: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x886dec0]stream 1, offset 0x242356: partial file
A:   1.5 V:   1.5 A-V: -0.050 ct: -0.060   0/  0 15% 29%  8.8% 3 0 0% 
[   vdpau] Error when calling vdp_video_surface_destroy: An invalid handle value was provided.

Exiting... (End of file)

------------- log ends -------------

When I get these errors the video still plays but it stutters and is
full of artifacts. If I restart X, I can play this file normally once
again, but then I get the same errors on consecuitive runs.

There is no such problem with the mplayer compiled from SVN. I have
also checked that this problem occurs with both mplayer-git compiled
with ffmpeg-mt and with single-threaded ffmpeg.

Moreover, I have found a magical workaround for this bug. If I
hibernate from within X after the first occurence of this bug, then
when I return back this problem misteriously disappears! It does not
reappear even if restart X after that.

It seems that the bug is somehow related to the X server, or to the
nvidia driver (or maybe even to the hardware). However, because the
mplayer from SVN does not trigger this bug, there is a probability
that some kind of workaround in the vdpau driver is possible. That is
why I am reporting it here (if there were a separate list on
mplayer-git, I would report it there, of course, but AFAIK there is no
such place).

Please tell me what additional information I have to provide in order
to track this bug down.

Reference:
[1] http://www.2shared.com/video/YijxE3O3/vdpau_test.html

PS: I am on Debian sid. The versions of the relevant software are
given below:

xserver-xorg-core: 1.7.7-1
nvidia-kernel-2.6.32-5-686: 195.36.24-1+2.6.32-13
libvdpau1: 0.4-4

Here are the mplayer build options:
--prefix=/usr
--confdir=/etc/mplayer
--codecsdir=/usr/lib/mplayer/codecs
--language=en
--enable-libdvdcss-internal
--enable-enca
--enable-vdpau
--enable-vm
--disable-arts
--disable-esd
--disable-svga

-- 
Stanislav


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux