ffmpeg: enabling ffplay
Playing sound, it displays great ffts.
This commit is contained in:
parent
a799b8ef5d
commit
39be94cb68
@ -12,6 +12,7 @@
|
|||||||
, faacSupport ? false, faac ? null
|
, faacSupport ? false, faac ? null
|
||||||
, dc1394Support ? false, libdc1394 ? null
|
, dc1394Support ? false, libdc1394 ? null
|
||||||
, x11grabSupport ? false, libXext ? null, libXfixes ? null
|
, x11grabSupport ? false, libXext ? null, libXfixes ? null
|
||||||
|
, playSupport ? true, SDL ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert speexSupport -> speex != null;
|
assert speexSupport -> speex != null;
|
||||||
@ -25,6 +26,7 @@ assert vdpauSupport -> libvdpau != null;
|
|||||||
assert vaapiSupport -> libva != null;
|
assert vaapiSupport -> libva != null;
|
||||||
assert faacSupport -> faac != null;
|
assert faacSupport -> faac != null;
|
||||||
assert x11grabSupport -> libXext != null && libXfixes != null;
|
assert x11grabSupport -> libXext != null && libXfixes != null;
|
||||||
|
assert playSupport -> SDL != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ffmpeg-1.1.3";
|
name = "ffmpeg-1.1.3";
|
||||||
@ -41,7 +43,6 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-gpl"
|
"--enable-gpl"
|
||||||
"--enable-postproc"
|
"--enable-postproc"
|
||||||
"--enable-swscale"
|
"--enable-swscale"
|
||||||
"--disable-ffplay"
|
|
||||||
"--enable-shared"
|
"--enable-shared"
|
||||||
"--enable-avresample"
|
"--enable-avresample"
|
||||||
"--enable-runtime-cpudetect"
|
"--enable-runtime-cpudetect"
|
||||||
@ -57,7 +58,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional vdpauSupport "--enable-vdpau"
|
++ stdenv.lib.optional vdpauSupport "--enable-vdpau"
|
||||||
++ stdenv.lib.optional faacSupport "--enable-libfaac --enable-nonfree"
|
++ stdenv.lib.optional faacSupport "--enable-libfaac --enable-nonfree"
|
||||||
++ stdenv.lib.optional dc1394Support "--enable-libdc1394"
|
++ stdenv.lib.optional dc1394Support "--enable-libdc1394"
|
||||||
++ stdenv.lib.optional x11grabSupport "--enable-x11grab";
|
++ stdenv.lib.optional x11grabSupport "--enable-x11grab"
|
||||||
|
++ stdenv.lib.optional playSupport "--enable-ffplay";
|
||||||
|
|
||||||
buildInputs = [ pkgconfig lame yasm zlib bzip2 alsaLib ]
|
buildInputs = [ pkgconfig lame yasm zlib bzip2 alsaLib ]
|
||||||
++ stdenv.lib.optional mp3Support lame
|
++ stdenv.lib.optional mp3Support lame
|
||||||
@ -72,7 +74,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional vaapiSupport libva
|
++ stdenv.lib.optional vaapiSupport libva
|
||||||
++ stdenv.lib.optional faacSupport faac
|
++ stdenv.lib.optional faacSupport faac
|
||||||
++ stdenv.lib.optional dc1394Support libdc1394
|
++ stdenv.lib.optional dc1394Support libdc1394
|
||||||
++ stdenv.lib.optionals x11grabSupport [ libXext libXfixes ];
|
++ stdenv.lib.optionals x11grabSupport [ libXext libXfixes ]
|
||||||
|
++ stdenv.lib.optional playSupport SDL;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user