Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297239 - x11-drivers/nvidia-drivers-190.53 doesnt install vdpau so
Summary: x11-drivers/nvidia-drivers-190.53 doesnt install vdpau so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
: 297271 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-17 00:16 UTC by Herbert Wantesh
Modified: 2010-05-26 19:58 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix the ebuild (nvidia.patch,1.97 KB, patch)
2009-12-17 00:19 UTC, Herbert Wantesh
Details | Diff
modified patch - i think the other paths can stay as they are (nvidia.patch,489 bytes, patch)
2009-12-18 17:13 UTC, Herbert Wantesh
Details | Diff
updated patch to fix "new" ebuild (nvidia.patch,2.23 KB, patch)
2009-12-22 21:04 UTC, Herbert Wantesh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Herbert Wantesh 2009-12-17 00:16:36 UTC
the merge finished without an error but vdpau isnt installed ....
i modified the ebuild to get vdpau back :)
please look at it an apply :)

Reproducible: Always

Steps to Reproduce:
1.emerge nvidia-drivers
Comment 1 Herbert Wantesh 2009-12-17 00:19:00 UTC
Created attachment 213251 [details, diff]
patch to fix the ebuild
Comment 2 Vasilis Lourdas 2009-12-17 14:44:28 UTC
Tha patch works fine here for vdpau. However, I don't have video playback when using xvmc, could this be related?
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-12-17 19:49:42 UTC
*** Bug 297271 has been marked as a duplicate of this bug. ***
Comment 4 Herbert Wantesh 2009-12-18 17:13:59 UTC
Created attachment 213405 [details, diff]
modified patch - i think the other paths can stay as they are
Comment 5 Grégoire Favre 2009-12-22 20:52:51 UTC
The patch don't apply here, I added /usr/lib64/vdpau into /etc/ld.conf (temporary solution) which seems to work for me.
Comment 6 Herbert Wantesh 2009-12-22 21:04:19 UTC
Created attachment 213812 [details, diff]
updated patch to fix "new" ebuild
Comment 7 Chris Hall 2009-12-23 11:47:28 UTC
(In reply to comment #5)
> The patch don't apply here, I added /usr/lib64/vdpau into /etc/ld.conf
> (temporary solution) which seems to work for me.
> 

same here.
Comment 8 Benjamin Schulz 2009-12-23 22:53:22 UTC
The bug 
http://bugs.gentoo.org/show_bug.cgi?id=298142

contains an ebuild for nvidia-drivers-195.30, which is newer.The ebuild in bug 298142 installs vdpau, at least on my system.


If you want to install the old 190.53 driver, renaming the ebuild  in bug 298142 to 190.53 should suffice.
Comment 9 Herbert Wantesh 2009-12-24 01:29:12 UTC
it should work
do
cd /usr/portage/x11-drivers/nvidia-drivers
patch -p5 < nvidia.patch
ebuild nvidia-drivers-190.53.ebuild digest
emerge nvidia-drivers
and it should work
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2009-12-24 02:08:00 UTC
(In reply to comment #6)
> Created an attachment (id=213812) [details]
> updated patch to fix "new" ebuild
> 

The VDPAU libraries belong in /usr/lib[32,64]/vdpau. Read the release notes by NVIDIA for 190.53. Applications should never link directly against libvdpau_nvidia.so but it appears some applications are incorrectly doing this. The ABI has changed to libvdpau_nvidia.so so applications will experience problems. Applications should always use libvdpau.so, which provides a proper abstraction for the specific implementation. x11-libs/libvdpau-0.3 has been updated by NVIDIA to use the new paths and as such its properly listed as a PDEPEND in the 190.53 ebuilds.

Rather than incorrectly changing the paths back, please say which apps you are having a problem with so they may be fixed. The big issue that apps will have is the fact that VDPAU is no longer a mutually exclusive operation and can be multiplexed with other operations such as OpenGL and even other VDPAU instances. This requires apps to use proper locks, which none of them do because the locking mechanism is abstracted away inside libvdpau. So using VDPAU and OpenGL at the same time for an app that uses libvdpau_nvidia.so directly will result in screen corruption.
Comment 11 Benjamin Schulz 2009-12-24 03:27:23 UTC
with this driver, i cannot watch videos in mplayer....
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2009-12-24 04:44:14 UTC
(In reply to comment #11)
> with this driver, i cannot watch videos in mplayer....
> 

Yes. Its been reported to the mplayer guys that they are linking directly against libvdpau_nvidia.so and it needs to be corrected. It's an upstream bug. mplayer + nvidia-drivers 190.53 + compiz = crashes & screen corruption because mplayer isn't using the libvdpau API properly which is resulting in issues.
Comment 13 peng shao 2009-12-24 11:15:12 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > with this driver, i cannot watch videos in mplayer....
> > 
> 
> Yes. Its been reported to the mplayer guys that they are linking directly
> against libvdpau_nvidia.so and it needs to be corrected. It's an upstream bug.
> mplayer + nvidia-drivers 190.53 + compiz = crashes & screen corruption because
> mplayer isn't using the libvdpau API properly which is resulting in issues.
> 

I have the same problem, seems I have to spend a vdpau-free Christmas day:( 
Comment 14 Benjamin Schulz 2009-12-24 14:32:30 UTC
vdpau is used by ffmpeg, mythtv,xmbc.

Do they use vdpau correctly? Can someone check this?
Comment 15 Matthew Schultz 2009-12-24 16:19:11 UTC
(In reply to comment #14)
> vdpau is used by ffmpeg, mythtv,xmbc.
> 
> Do they use vdpau correctly? Can someone check this?
> 

I can confirm that it's broken in mythtv as well.  I had to downgrade to the previous nvidia driver just so I could play videos through mythtv.
Comment 16 Doug Goldstein (RETIRED) gentoo-dev 2009-12-24 16:33:15 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > vdpau is used by ffmpeg, mythtv,xmbc.
> > 
> > Do they use vdpau correctly? Can someone check this?
> > 
> 
> I can confirm that it's broken in mythtv as well.  I had to downgrade to the
> previous nvidia driver just so I could play videos through mythtv.
> 

What version of MythTV? 
emerge -pv mythtv
ldd /usr/bin/mythfrontend | grep vdpau

Because it works just fine for me with MythTV.

Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2009-12-24 16:34:24 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > with this driver, i cannot watch videos in mplayer....
> > > 
> > 
> > Yes. Its been reported to the mplayer guys that they are linking directly
> > against libvdpau_nvidia.so and it needs to be corrected. It's an upstream bug.
> > mplayer + nvidia-drivers 190.53 + compiz = crashes & screen corruption because
> > mplayer isn't using the libvdpau API properly which is resulting in issues.
> > 
> 
> I have the same problem, seems I have to spend a vdpau-free Christmas day:( 
> 

For mplayer support, downgrade to an older version of nvidia-drivers.

emerge =x11-drivers/nvidia-drivers-190.42-r3
Comment 18 peng shao 2009-12-24 19:19:36 UTC
(In reply to comment #17)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > (In reply to comment #11)
> > > > with this driver, i cannot watch videos in mplayer....
> > > > 
> > > 
> > > Yes. Its been reported to the mplayer guys that they are linking directly
> > > against libvdpau_nvidia.so and it needs to be corrected. It's an upstream bug.
> > > mplayer + nvidia-drivers 190.53 + compiz = crashes & screen corruption because
> > > mplayer isn't using the libvdpau API properly which is resulting in issues.
> > > 
> > 
> > I have the same problem, seems I have to spend a vdpau-free Christmas day:( 
> > 
> 
> For mplayer support, downgrade to an older version of nvidia-drivers.
> 
> emerge =x11-drivers/nvidia-drivers-190.42-r3
> 

It's okay.. I don't have to use vdpau..... Thanks :)
Comment 19 Manuel McLure 2009-12-24 22:16:15 UTC
I can confirm it fails on mythtv-0.22_p22860 as well. mythtv is only loading libvdpau.so.1 - it looks like libvdpau.so.1 cannot load libvdpau_nvidia.so unless I symlink it from lib64/vdpau to lib64. I'm using

manuel@legend ~ $ emerge -pv libvdpau

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/libvdpau-0.3  USE="-doc" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
manuel@legend ~ $ emerge -pv mythtv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-tv/mythtv-0.22_p22860  USE="alsa autostart css dvb fftw lcd lirc mmx perl python vdpau (-altivec) -debug -directv -faad -ieee1394 -jack -pulseaudio -tiff -xvmc" VIDEO_CARDS="-nvidia -via" 0 kB

manuel@legend ~ $ ldd `which mythfrontend` | grep vdpau
        libvdpau.so.1 => /usr/lib/libvdpau.so.1 (0x00007fd3b4e06000)

manuel@legend ~ $ ldd /usr/lib/libvdpau.so.1
        linux-vdso.so.1 =>  (0x00007fff5d8d0000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f287c85d000)
        libc.so.6 => /lib/libc.so.6 (0x00007f287c50b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f287cc78000)

I remerged libvdpau after installing the new driver just in case that fixed it but it had no effect on the problem. I'm currently using the workaround of symlinking the library into lib64.
Comment 20 Benjamin Schulz 2009-12-24 23:30:24 UTC
@ comment #12
Doug Goldstein wrote
"Yes. Its been reported to the mplayer guys that they are linking directly
against libvdpau_nvidia.so"


1) What was their reaction? What did the mplayer people say? Did they say "sorry, wontfix" or did they really considering it?

2) You are writing about possible screen corruption. Is this only a possible scenario or has it really been observed? That mplayer leads to screen corruption because it links to libvdpai_nvidia.so? I do not see any threads on an issue like that in nvnews forum.

3) And what is about ffmpeg? does it work with this driver in the main three? Can someone test this?
Comment 21 Matthew Schultz 2009-12-25 04:54:04 UTC
I'm using the same version of mythtv as Manuel stated: mythtv-0.22_p22860.
Comment 22 Manuel McLure 2009-12-25 07:41:53 UTC
I've run ldd on all executables in /usr/bin, as well as all shared libraries in
/usr/lib64 and grepped for vdpau - in all cases I only found libvdpau.so.1
being requested. In no case did I find libvdpau_nvidia.so. However, unless I
either symlink libvdpau_nvidia.so to /usr/lib64 or I add /usr/lib64/vdpau to
ld.so.conf (through LDPATH in /etc/env.d/*) MythTV fails with "Failed to open
VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file
or directory."

I think there may be a bug in how libvdpau-0.3 is looking for the library and
it can't find it unless it's in the ld.so.conf library path.
Comment 23 Paul Mulders 2009-12-25 11:36:16 UTC
Wouldn't simply installing a 99nvidia file in /etc/env.d/ with LDPATH="/usr/lib/vdpau" be a 'cleaner' fix? Works fine here.
Comment 24 Manuel McLure 2009-12-25 19:27:47 UTC
(In reply to comment #23)
> Wouldn't simply installing a 99nvidia file in /etc/env.d/ with
> LDPATH="/usr/lib/vdpau" be a 'cleaner' fix? Works fine here.

That's what I'm doing now and it seems to work fine (except my file is named 99libvdpau). The ebuild should add a file like that or should determine why it's not working without said file.
Comment 25 Benjamin Schulz 2010-01-03 16:21:44 UTC
Doug Goldstein wrote:
Vdpau+Mplayer+Compiz=screen-corruption...


And that is nonsense. Here is the official statement by nvidia, or the developers of this nvidia driver:

http://www.nvnews.net/vbulletin/showthread.php?p=2156911#post2156911


Correct, applications should not be linking directly against libvdpau_nvidia.

However, doing so shouldn't be able to cause any corruption problems, it should be harmless.

Comment 26 Benjamin Schulz 2010-01-03 16:22:16 UTC
And further:

As for finding the correct library, there have been problems in the past on some distributions where a stale copy of libvdpau 0.2 is left lying around and getting picked up by applications, which doesn't look in /usr/lib/vdpau for libvdpau_nvidia. Are you sure the correct version of libvdpau is being used by your applications? If so, please try running mplayer or mythtv with "strace -eopen" to see where it's looking. Even if the old version were being used, it should look at /usr/lib/libvdpau_nvidia.so which the .run installer creates as a symlink to /usr/lib/vdpau/libvdpau_nvidia.so.<version>.
Comment 27 Doug Goldstein (RETIRED) gentoo-dev 2010-05-26 19:58:29 UTC
There's a bug in libvdpau, but I haven't been able to work with nvidia to fix the issue. However this issue is fixed in Gentoo for a few releases.