FS#17249 - nvidia-utils libvdpau mplayer : Error when calling vdp_device_create_x11

Attached to Project: Arch Linux
Opened by Jason Jesso (jjesso1607) - Sunday, 22 November 2009, 15:57 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 23 November 2009, 00:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

With the latest nvidia-utils and libvdpau, mplayer is giving

[vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (-vo) device.

Reverting back to nvidia-utils-190.42-1-i686.pkg.tar.gz and uninstalling libvdpau, problem goes away.

Additional info:
* package version(s)
* config and/or log files etc.

nvidia-utils-190.42-2-i686.pkg.tar.gz
libvdpau-0.3-2-i686.pkg.tar.gz


Steps to reproduce:

Upgrade nvidia-utils and install libvdpau.

Run mplayer:

mplayer -afm hwac3 -ao alsa:noblock:device=hw=0.1 -vo vdpau -vc ffh264vdpau some_movie.mkv



This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 23 November 2009, 00:46 GMT
Reason for closing:  Not a bug
Additional comments about closing:  see comments
Comment by Glenn Matthys (RedShift) - Sunday, 22 November 2009, 17:04 GMT
Are you sure lbvdpau is installed when you try to play something using vdpau and nvidia-utils pkg rev 2?
Comment by Jason Jesso (jjesso1607) - Sunday, 22 November 2009, 17:08 GMT
Just to be sure:

root@dory ~]# pacman -S nvidia-utils
resolving dependencies...
looking for inter-conflicts...

Targets (1): nvidia-utils-190.42-2

Total Download Size: 0.00 MB
Total Installed Size: 31.40 MB

Proceed with installation? [Y/n]
checking package integrity...
(1/1) checking for file conflicts [##########################################################################] 100%
(1/1) upgrading nvidia-utils [##########################################################################] 100%
[root@dory ~]# pacman -S libvdpau
resolving dependencies...
looking for inter-conflicts...

Targets (1): libvdpau-0.3-2

Total Download Size: 0.00 MB
Total Installed Size: 0.29 MB

Proceed with installation? [Y/n]
checking package integrity...
(1/1) checking for file conflicts [##########################################################################] 100%
error: failed to commit transaction (conflicting files)
libvdpau: /usr/lib/libvdpau.so.1 exists in filesystem
Errors occurred, no packages were upgraded.
[root@dory ~]# pacman --force -S libvdpau
resolving dependencies...
looking for inter-conflicts...

Targets (1): libvdpau-0.3-2

Total Download Size: 0.00 MB
Total Installed Size: 0.29 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) installing libvdpau [##########################################################################] 100%
[root@dory ~]#

[jason@dory ~]$ mkvh264 /home/jason/media/Video/Movies/aliens_in_the_attic.mkv
MPlayer SVN-r29354-4.4.2 (C) 2000-2009 MPlayer Team

Playing /home/jason/media/Video/Movies/aliens_in_the_attic.mkv.
Cache fill: 17.19% (45072384 bytes)
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang eng
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x688 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to DTS, 1536000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:4484:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:4617:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hw:0,1,AES0=6
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
Video: no video
Starting playback...
A: 5.1 (05.0) of 5148.2 ( 1:25:48.1) 0.2% 99%
Exiting... (Quit)
[jason@dory ~]$

I get no video.

Revert back to nvidia-utils-190.42-1-i686.pkg.tar.gz, no problem.

Comment by Ionut Biru (wonder) - Sunday, 22 November 2009, 17:39 GMT
you know that our mplayer doesn't support vdpau and is a custom build from your system.

i do have such setup and worked without any recompilation. you could try that and see if is working. get the latest revision from svn.
Comment by Jason Jesso (jjesso1607) - Sunday, 22 November 2009, 19:38 GMT
Well, strange. I built the lastest mplayer from svn. Same problem.

MPlayer SVN-r29962-4.4.2 (C) 2000-2009 MPlayer Team

Playing /home/jason/media/Video/Movies/crossing_over.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x544 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Comment by Jan de Groot (JGC) - Sunday, 22 November 2009, 20:43 GMT
Can you strace mplayer to find out what VDPAU backend it tries to load? Reading through the source, the nvidia-utils package should have the backend installed in the correct place.
Comment by Jason Jesso (jjesso1607) - Sunday, 22 November 2009, 21:53 GMT
There seems to be an infinte loop in maybe , reading from the device.

select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 11000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 469234}, NULL) = 0
gettimeofday({1258926656, 469275}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.4 (13.4) of 6786.5 ( 1:53"..., 49A: 13.4 (13.4) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 469429}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 11000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 480684}, NULL) = 0
gettimeofday({1258926656, 480725}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.5 (13.4) of 6786.5 ( 1:53"..., 49A: 13.5 (13.4) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 480891}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 20000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 511299}, NULL) = 0
read(5, "\5\313\2302d\311b\305G\300V\204\341\203%\314\0310`\271\223&\f\0300d\271\243\5\314\0310"..., 2048) = 2048
read(5, "(X\225\3\263V&\211\363C\372\255p\245x'\262F\274_q\261\v_\32\317L\0'N\236\227"..., 2048) = 2048
read(5, "\1\31\5\273\332\327q=\22{\362\r\10\10\276iq^\267\334\34\f\332\320`\v\r\305@\360P\240"..., 2048) = 2048
read(5, "\27\364\206Pa\360\374\7\331\31\0\244t\357\25\354i\263\376\303\372P\373|-\340wpFy\270\27"..., 2048) = 2048
read(5, "\0\203\204\3200j~\242f\346v\6yu\366\347\207\327\262dtu\0+\210\201z\21\304\223\246\240"..., 2048) = 2048
read(5, "\326\232h\\k\361Zu\351!\17\342\177\30\7\340\201\331\2\267\356\237k\240\203\371\360\1\t\260\237\4"..., 2048) = 2048
read(5, "\36s\340\341\211\307\341\221\240\337\321\252\363\320}I\212FT\1\232\317i\222\374\217\1S\353/+\220"..., 2048) = 2048
read(5, "\25\362\300\216\3015\373\r\354\7\242\300\220\10>\256@5\350h\352a\344\n\0208\302\302O\373n6"..., 2048) = 2048
gettimeofday({1258926656, 511660}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.5 (13.4) of 6786.5 ( 1:53"..., 49A: 13.5 (13.4) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 511816}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 11000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 533458}, NULL) = 0
gettimeofday({1258926656, 533498}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.5 (13.5) of 6786.5 ( 1:53"..., 49A: 13.5 (13.5) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 533653}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 554209}, NULL) = 0
gettimeofday({1258926656, 554256}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.5 (13.5) of 6786.5 ( 1:53"..., 49A: 13.5 (13.5) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 554418}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 11000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 575829}, NULL) = 0
read(5, "#\345r\10\23\201}l\207\210\373\366\4N/\276u\21\266\247\224:(\242(\237\245\300\340\3\307;"..., 2048) = 2048
read(5, "V\204\roAn\37=a\201F\0\17\277r!\273\216\16\342X)\\\360\36\334\344>\336i\300#"..., 2048) = 2048
read(5, "\221B&&h\3\330F\224\0167v\7\0\220O\226\374\177\33\202$\346y\301\4\376\31\344fG\303"..., 2048) = 2048
read(5, "\227\345\307\277\4\27\307\334\27>\17\33\304\2\302\30\320\270\242\374d\306X\22<\22\376\243l1\301\214"..., 2048) = 2048
read(5, "\250\32\317\260}\203\371\265\342\217\351\201\17\2@,\4\230\217\365^\357\371\0A\301\350\r\f\177 \340"..., 2048) = 2048
read(5, "\314_\1\r\v\377\\\363\307\214y\377\31\354qZ\365\375\234\223\367\274\205\327D\17\316\6u\257E\251"..., 2048) = 2048
read(5, "{\1\357\234\202\316\35o\377c\v\360w\362_\231\200\217\376}\370\370h&\370\367\351\2007\353\6~"..., 2048) = 2048
read(5, "\230`\236\236x\246\347\256g\177\336Iz\10\277\354y\277\10MC\206\27\237\r\310\271\22C\221^\37"..., 2048) = 2048
gettimeofday({1258926656, 576191}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.6 (13.5) of 6786.5 ( 1:53"..., 49A: 13.6 (13.5) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 576350}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
gettimeofday({1258926656, 596695}, NULL) = 0
gettimeofday({1258926656, 596735}, NULL) = 0
ioctl(9, 0x400c4150, 0xbfe45044) = 0
ioctl(9, 0x80044121, 0xbfe450bc) = 0
ioctl(0, TIOCGWINSZ, {ws_row=52, ws_col=237, ws_xpixel=0, ws_ypixel=0}) = 0
) = 491, "A: 13.6 (13.5) of 6786.5 ( 1:53"..., 49A: 13.6 (13.5) of 6786.5 ( 1:53:06.4) 0.6%
gettimeofday({1258926656, 596889}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
read(4, 0xaa8a8c8, 100) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 11000000}, NULL) = 0
ioctl(9, 0x806c4120, 0xbfe45040) = 0
nanosleep({0, 10000000}, <unfinished ...>
[jason@dory mplayer]$

MPlayer interrupted by signal 15 in module: play_audio


MPlayer interrupted by signal 2 in module: play_audio
^C
[jason@dory mplayer]$
Comment by Jason Jesso (jjesso1607) - Sunday, 22 November 2009, 21:56 GMT
Here's an attachment of the output from strace.
   foo (142.9 KiB)
Comment by Jason Jesso (jjesso1607) - Monday, 23 November 2009, 00:34 GMT
Solved. I had several version of /usr/lib/libvdpau_nvidia*. I deleted everything and installed nvidia-utils and libvdpau.

No problem. Everything is fine.

Loading...