Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 262433

Summary: media-video/ffmpeg-0.5: Please add vdpau USE flag
Product: Gentoo Linux Reporter: Bob Deblier <bob.deblier>
Component: New packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: enhancement CC: pacho
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bob Deblier 2009-03-14 14:00:15 UTC
As of ffmpeg-0.5, there is an option to use Nvidia VPDAU optimization, but in the current ebuild there is no way to enable this option.

Reproducible: Always



Expected Results:  
add 'vdpau' to USE flag; emerge media-video/ffmpeg configures with option --enable-vdpau.

Proposed change to the ebuild file should look something like this:

--- ffmpeg-0.5-r1.ebuild	2009-03-12 00:37:08.000000000 +0100
+++ ffmpeg-0.5-r2.ebuild	2009-03-14 14:55:02.000000000 +0100
@@ -39,7 +39,8 @@
 	schroedinger? ( media-libs/schroedinger )
 	speex? ( >=media-libs/speex-1.2_beta3 )
 	X? ( x11-libs/libX11 x11-libs/libXext )
-	amr? ( media-libs/amrnb media-libs/amrwb )"
+	amr? ( media-libs/amrnb media-libs/amrwb )
+	vdpau? ( x11-drivers/nvidia-drivers )"
 
 DEPEND="${RDEPEND}
 	>=sys-devel/make-3.81
@@ -126,6 +127,9 @@
 		myconf="${myconf} --disable-mmx --disable-mmx2"
 	fi
 
+	# NVIDIA VDPAU support
+	use vdpau && myconf="${myconf} --enable-vdpau"
+
 	# Try to get cpu type based on CFLAGS.
 	# Bug #172723
 	# We need to do this so that features of that CPU will be better used
Comment 1 Steve Dibb (RETIRED) gentoo-dev 2009-03-15 05:58:16 UTC
They actually dropped it almost immediately after or before the release (can't remember which) in the man svn trunk just because it didn't make any sense to have it in there.

If anything, we should probably force it on.

My 2c.
Comment 2 Alexis Ballier gentoo-dev 2009-03-15 15:00:04 UTC
(In reply to comment #0)
> --- ffmpeg-0.5-r1.ebuild        2009-03-12 00:37:08.000000000 +0100
> +++ ffmpeg-0.5-r2.ebuild        2009-03-14 14:55:02.000000000 +0100
> @@ -39,7 +39,8 @@
>         schroedinger? ( media-libs/schroedinger )
>         speex? ( >=media-libs/speex-1.2_beta3 )
>         X? ( x11-libs/libX11 x11-libs/libXext )
> -       amr? ( media-libs/amrnb media-libs/amrwb )"
> +       amr? ( media-libs/amrnb media-libs/amrwb )
> +       vdpau? ( x11-drivers/nvidia-drivers )"


afaik vdpau arrived at a given driver release so we need to force a minimal version of nvidia-drivers too


(In reply to comment #1)
> They actually dropped it almost immediately after or before the release (can't
> remember which) in the man svn trunk just because it didn't make any sense to
> have it in there.

because they can be disabled by other ways, see ./configure --list-decoders | grep vdpau

------------------------------------------------------------------------
r17855 | diego | 2009-03-06 11:18:39 +0100 (Fri, 06 Mar 2009) | 2 lines

Get rid of redundant vdpau option, decoders can still be disabled individually.

------------------------------------------------------------------------

Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-07-09 13:43:01 UTC
+  09 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> ffmpeg-0.5-r1.ebuild,
+  ffmpeg-9999-r1.ebuild:
+  USE vdpau with VIDEO_CARDS=nvidia wrt #262433, thanks to Bob Deblier for
+  reporting.