public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] libvdpau (?)
@ 2010-03-26 15:18 7v5w7go9ub0o
  2010-03-26 17:25 ` Kaddeh
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: 7v5w7go9ub0o @ 2010-03-26 15:18 UTC (permalink / raw
  To: for list

I'd like to compile ffmpeg with vdpau - direct NVidia hardware 
acceleration. This is a configuration flag for ffmpeg.

Setting the "vdpau" use flag seems to set the configuration flag, but 
also brings in the "x11-libs/libvdpau" libraries which I think I do not 
want, as my NVidia proprietary driver provides these libraries.

1. How do I enable the "vdpau" configuration flag for compiling ffmpeg, 
without bringing in "x11-libs/libvdpau"? (Sigh...... I suppose one work 
around is to bring them in, then reinstall the proprietary driver 
............ )

TIA



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] libvdpau (?)
  2010-03-26 15:18 [gentoo-user] libvdpau (?) 7v5w7go9ub0o
@ 2010-03-26 17:25 ` Kaddeh
  2010-03-26 19:31   ` [gentoo-user] " 7v5w7go9ub0o
  2010-03-26 18:29 ` [gentoo-user] " Alex Kuster
  2010-03-26 21:08 ` Paul Hartman
  2 siblings, 1 reply; 12+ messages in thread
From: Kaddeh @ 2010-03-26 17:25 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

do you have VIDEO_CARDS set in your make.conf?

On Fri, Mar 26, 2010 at 8:18 AM, 7v5w7go9ub0o <7v5w7go9ub0o@gmail.com>wrote:

> I'd like to compile ffmpeg with vdpau - direct NVidia hardware
> acceleration. This is a configuration flag for ffmpeg.
>
> Setting the "vdpau" use flag seems to set the configuration flag, but
> also brings in the "x11-libs/libvdpau" libraries which I think I do not
> want, as my NVidia proprietary driver provides these libraries.
>
> 1. How do I enable the "vdpau" configuration flag for compiling ffmpeg,
> without bringing in "x11-libs/libvdpau"? (Sigh...... I suppose one work
> around is to bring them in, then reinstall the proprietary driver
> ............ )
>
> TIA
>
>

[-- Attachment #2: Type: text/html, Size: 1044 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] libvdpau (?)
  2010-03-26 15:18 [gentoo-user] libvdpau (?) 7v5w7go9ub0o
  2010-03-26 17:25 ` Kaddeh
@ 2010-03-26 18:29 ` Alex Kuster
  2010-03-26 19:36   ` [gentoo-user] " 7v5w7go9ub0o
  2010-03-28 16:33   ` [gentoo-user] " Neil Bothwick
  2010-03-26 21:08 ` Paul Hartman
  2 siblings, 2 replies; 12+ messages in thread
From: Alex Kuster @ 2010-03-26 18:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 638 bytes --]

yes, because ffmpeg compiles against the shared library called vdpau to do the 
hardware acceleration ...
so, the dependency IS necessary ...

the driver installed externally also provides it....

the USE variable modifies the configuration of the package, so, if you remove 
vdpau, you won't compile with vdpau support ...

you can use the variable EXTRA_ECONF to pass parameters to ./configure and  
manually add vdpau, but I don't know if there's an option to modify that on a 
package basis (like /etc/portage/package.use ) .. instead of a global var ... 
without touching ebuilds ...

¿ any hint about that?

Alex ~

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: libvdpau (?)
  2010-03-26 17:25 ` Kaddeh
@ 2010-03-26 19:31   ` 7v5w7go9ub0o
  0 siblings, 0 replies; 12+ messages in thread
From: 7v5w7go9ub0o @ 2010-03-26 19:31 UTC (permalink / raw
  To: for list

On 03/26/10 13:25, Kaddeh wrote:
> do you have VIDEO_CARDS set in your make.conf?
>

Yes; and VIDEO_CARDS="nvidia" seems to be picked up just fine.


Thanks for helping.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: libvdpau (?)
  2010-03-26 18:29 ` [gentoo-user] " Alex Kuster
@ 2010-03-26 19:36   ` 7v5w7go9ub0o
  2010-03-26 20:02     ` 7v5w7go9ub0o
  2010-03-28 16:33   ` [gentoo-user] " Neil Bothwick
  1 sibling, 1 reply; 12+ messages in thread
From: 7v5w7go9ub0o @ 2010-03-26 19:36 UTC (permalink / raw
  To: for list

On 03/26/10 14:29, Alex Kuster wrote:
> yes, because ffmpeg compiles against the shared library called vdpau
> to do the hardware acceleration ... so, the dependency IS necessary
> ...

Thanks for the reply. Just downloaded the ffmpeg source distribution and
FWICT, the ffmpeg source distribution includes the necessary code:

./libavcodec/vdpau.c
./libavcodec/vdpau_internal.h
./libavcodec/vdpau.h

Unless there are additional snippets, it appears that ffmpeg (for one....)
doesn't need vdpau.

[]

> you can use the variable EXTRA_ECONF to pass parameters to
> ./configure and manually add vdpau, but I don't know if there's an
> option to modify that on a package basis (like
> /etc/portage/package.use ) .. instead of a global var ... without
> touching ebuilds ...

Didn't work; FWICT, EXTRA_ECONF provides limited function
<http://bugs.gentoo.org/38618>

Is there a file anywhere that I can edit, which mandates that to use the
vdpau "use" flag, I have to have the vdpau package installed?

TIA



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: libvdpau (?)
  2010-03-26 19:36   ` [gentoo-user] " 7v5w7go9ub0o
@ 2010-03-26 20:02     ` 7v5w7go9ub0o
  2010-03-26 21:13       ` Neil Walker
  0 siblings, 1 reply; 12+ messages in thread
From: 7v5w7go9ub0o @ 2010-03-26 20:02 UTC (permalink / raw
  To: for list


>
> Is there a file anywhere that I can edit, which mandates that to use the
> vdpau "use" flag, I have to have the vdpau package installed?

geeeeeze...... there it is in the ebuild.

Removed the dependency and all compiles/works well.


Thanks for the time and help!!



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] libvdpau (?)
  2010-03-26 15:18 [gentoo-user] libvdpau (?) 7v5w7go9ub0o
  2010-03-26 17:25 ` Kaddeh
  2010-03-26 18:29 ` [gentoo-user] " Alex Kuster
@ 2010-03-26 21:08 ` Paul Hartman
  2010-03-27  1:46   ` [gentoo-user] " 7v5w7go9ub0o
  2 siblings, 1 reply; 12+ messages in thread
From: Paul Hartman @ 2010-03-26 21:08 UTC (permalink / raw
  To: gentoo-user

On Fri, Mar 26, 2010 at 10:18 AM, 7v5w7go9ub0o <7v5w7go9ub0o@gmail.com> wrote:
> I'd like to compile ffmpeg with vdpau - direct NVidia hardware
> acceleration. This is a configuration flag for ffmpeg.
>
> Setting the "vdpau" use flag seems to set the configuration flag, but
> also brings in the "x11-libs/libvdpau" libraries which I think I do not
> want, as my NVidia proprietary driver provides these libraries.

AFAIK Nvidia split the vdpau off into libvdpau late last year
sometime. On my system I use both nvidia-drivers and libvdpau without
issue. libvdpau provides libvdpau.so while nvidia-drivers provides
libvdpau_nvidia.so

Here are my versions:

x11-libs/libvdpau-0.3-r2
x11-drivers/nvidia-drivers-195.36.15

Are you using older versions? I use ~amd64 so maybe if you run stable
it has the older versions.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Re: libvdpau (?)
  2010-03-26 20:02     ` 7v5w7go9ub0o
@ 2010-03-26 21:13       ` Neil Walker
  0 siblings, 0 replies; 12+ messages in thread
From: Neil Walker @ 2010-03-26 21:13 UTC (permalink / raw
  To: gentoo-user

On 26/03/10 20:02, 7v5w7go9ub0o wrote:
>
>>
>> Is there a file anywhere that I can edit, which mandates that to use the
>> vdpau "use" flag, I have to have the vdpau package installed?
>
> geeeeeze...... there it is in the ebuild.
>
> Removed the dependency and all compiles/works well.

Obviously you didn't look at the ebuild for libvdpau. It's only a
wrapper. On
my system, it's a mere 5960 bytes. libvdpau_trace is only another 51040
bytes. Quite why you felt you had to jump through such hoops to create a
potentially broken system is beyond me. ;)


Be lucky,

Neil
http://www.neiljw.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: libvdpau (?)
  2010-03-26 21:08 ` Paul Hartman
@ 2010-03-27  1:46   ` 7v5w7go9ub0o
  2010-03-27 10:46     ` Peter Humphrey
  2010-03-28 20:52     ` Paul Hartman
  0 siblings, 2 replies; 12+ messages in thread
From: 7v5w7go9ub0o @ 2010-03-27  1:46 UTC (permalink / raw
  To: for list

On 03/26/10 17:08, Paul Hartman wrote:
> On Fri, Mar 26, 2010 at 10:18 AM,
> 7v5w7go9ub0o<7v5w7go9ub0o@gmail.com>  wrote:
>> I'd like to compile ffmpeg with vdpau - direct NVidia hardware
>> acceleration. This is a configuration flag for ffmpeg.
>>
>> Setting the "vdpau" use flag seems to set the configuration flag,
>> but also brings in the "x11-libs/libvdpau" libraries which I think
>> I do not want, as my NVidia proprietary driver provides these
>> libraries.
>
> AFAIK Nvidia split the vdpau off into libvdpau late last year
> sometime. On my system I use both nvidia-drivers and libvdpau without
> issue. libvdpau provides libvdpau.so while nvidia-drivers provides
> libvdpau_nvidia.so
>
> Here are my versions:
>
> x11-libs/libvdpau-0.3-r2 x11-drivers/nvidia-drivers-195.36.15
>
> Are you using older versions? I use ~amd64 so maybe if you run stable
> it has the older versions.
>


AHA! THANKS! that explains a lot - including why they made libvdpau
ebuild a requirement for ffmpeg.

I didn't know that libvdpau ebuild is simply an open-source version of
libvdpau.so. (The webpage describes a "wrapper" - duh, what's a wrapper?
But I suppose that if libvdpau.so is the first in line, and subsequently
loads other "driver" components, then it could be called a wrapper).

Portage fell behind the NVidia driver releases a while back - probably
before the split you described -  so I then started installing drivers
directly from NVidia.com, and not portage.

(And NVidia continues to bundle libvdpau.so (proprietary?) along with the
other components.)

So when ffmpeg wanted to add a "wrapper" to the mix, I decided no thanks
and started this thread -  finally figuring out that I needed to remove
the requirement from the ebuild. Having libvdpau.so, everything worked fine.

Now that I know what it is, I've installed the libvdpau package and
updated the portage NV drivers to current. If portage keeps current I'll
use it; if portage again falls behind I should be able to use NVidia.com and
ffmpeg will compile either way.

Thanks again for your help.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Re: libvdpau (?)
  2010-03-27  1:46   ` [gentoo-user] " 7v5w7go9ub0o
@ 2010-03-27 10:46     ` Peter Humphrey
  2010-03-28 20:52     ` Paul Hartman
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Humphrey @ 2010-03-27 10:46 UTC (permalink / raw
  To: gentoo-user

On Saturday 27 March 2010 01:46:49 7v5w7go9ub0o wrote:

> Now that I know what it is, I've installed the libvdpau package and
> updated the portage NV drivers to current. If portage keeps current
> I'll use it; if portage again falls behind I should be able to use
> NVidia.com and ffmpeg will compile either way.

But see this article: 
<http://hardware.slashdot.org/story/10/03/27/0118233/Nvidias-GF100-
Turns-Into-GeForce-GTX-480-and-470>

I'm not sure what to make of it at the moment.

-- 
Rgds
Peter.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] libvdpau (?)
  2010-03-26 18:29 ` [gentoo-user] " Alex Kuster
  2010-03-26 19:36   ` [gentoo-user] " 7v5w7go9ub0o
@ 2010-03-28 16:33   ` Neil Bothwick
  1 sibling, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2010-03-28 16:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

On Fri, 26 Mar 2010 15:29:06 -0300, Alex Kuster wrote:

> you can use the variable EXTRA_ECONF to pass parameters to ./configure
> and manually add vdpau, but I don't know if there's an option to modify
> that on a package basis (like /etc/portage/package.use ) .. instead of
> a global var ... without touching ebuilds ...

Put EXTRA_ECONF+"blah" in /etc/portage/env/CAT/PKG


-- 
Neil Bothwick

If you got the words it does not mean you got the knowledge.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Re: libvdpau (?)
  2010-03-27  1:46   ` [gentoo-user] " 7v5w7go9ub0o
  2010-03-27 10:46     ` Peter Humphrey
@ 2010-03-28 20:52     ` Paul Hartman
  1 sibling, 0 replies; 12+ messages in thread
From: Paul Hartman @ 2010-03-28 20:52 UTC (permalink / raw
  To: gentoo-user

On Fri, Mar 26, 2010 at 8:46 PM, 7v5w7go9ub0o <7v5w7go9ub0o@gmail.com> wrote:
> On 03/26/10 17:08, Paul Hartman wrote:
>>
>> On Fri, Mar 26, 2010 at 10:18 AM,
>> 7v5w7go9ub0o<7v5w7go9ub0o@gmail.com>  wrote:
>>>
>>> I'd like to compile ffmpeg with vdpau - direct NVidia hardware
>>> acceleration. This is a configuration flag for ffmpeg.
>>>
>>> Setting the "vdpau" use flag seems to set the configuration flag,
>>> but also brings in the "x11-libs/libvdpau" libraries which I think
>>> I do not want, as my NVidia proprietary driver provides these
>>> libraries.
>>
>> AFAIK Nvidia split the vdpau off into libvdpau late last year
>> sometime. On my system I use both nvidia-drivers and libvdpau without
>> issue. libvdpau provides libvdpau.so while nvidia-drivers provides
>> libvdpau_nvidia.so
>>
>> Here are my versions:
>>
>> x11-libs/libvdpau-0.3-r2 x11-drivers/nvidia-drivers-195.36.15
>>
>> Are you using older versions? I use ~amd64 so maybe if you run stable
>> it has the older versions.
>>
>
>
> AHA! THANKS! that explains a lot - including why they made libvdpau
> ebuild a requirement for ffmpeg.
>
> I didn't know that libvdpau ebuild is simply an open-source version of
> libvdpau.so. (The webpage describes a "wrapper" - duh, what's a wrapper?
> But I suppose that if libvdpau.so is the first in line, and subsequently
> loads other "driver" components, then it could be called a wrapper).
>
> Portage fell behind the NVidia driver releases a while back - probably
> before the split you described -  so I then started installing drivers
> directly from NVidia.com, and not portage.
>
> (And NVidia continues to bundle libvdpau.so (proprietary?) along with the
> other components.)
>
> So when ffmpeg wanted to add a "wrapper" to the mix, I decided no thanks
> and started this thread -  finally figuring out that I needed to remove
> the requirement from the ebuild. Having libvdpau.so, everything worked fine.
>
> Now that I know what it is, I've installed the libvdpau package and
> updated the portage NV drivers to current. If portage keeps current I'll
> use it; if portage again falls behind I should be able to use NVidia.com and
> ffmpeg will compile either way.
>
> Thanks again for your help.

No problem. Also check out x11-misc/vdpauinfo it is a tool that shows
the vdpau capabilities of your video card/drivers (which codecs &
mixer features are supported).



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-03-28 20:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26 15:18 [gentoo-user] libvdpau (?) 7v5w7go9ub0o
2010-03-26 17:25 ` Kaddeh
2010-03-26 19:31   ` [gentoo-user] " 7v5w7go9ub0o
2010-03-26 18:29 ` [gentoo-user] " Alex Kuster
2010-03-26 19:36   ` [gentoo-user] " 7v5w7go9ub0o
2010-03-26 20:02     ` 7v5w7go9ub0o
2010-03-26 21:13       ` Neil Walker
2010-03-28 16:33   ` [gentoo-user] " Neil Bothwick
2010-03-26 21:08 ` Paul Hartman
2010-03-27  1:46   ` [gentoo-user] " 7v5w7go9ub0o
2010-03-27 10:46     ` Peter Humphrey
2010-03-28 20:52     ` Paul Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox