ffmpeg: add libopus support
This commit is contained in:
parent
ef06c7db8f
commit
e781a8257b
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, perl, texinfo, yasm
|
{ stdenv, fetchurl, pkgconfig, perl, texinfo, yasm
|
||||||
, alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
|
, alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
|
||||||
, libtheora, libva, libvdpau, libvorbis, libvpx, lzma, libpulseaudio, SDL, soxr
|
, libtheora, libva, libvdpau, libvorbis, libvpx, lzma, libpulseaudio, SDL, soxr
|
||||||
, x264, xvidcore, zlib
|
, x264, xvidcore, zlib, libopus
|
||||||
, openglSupport ? false, mesa ? null
|
, openglSupport ? false, mesa ? null
|
||||||
# Build options
|
# Build options
|
||||||
, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
|
, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
|
||||||
@ -126,6 +126,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-libx264"
|
"--enable-libx264"
|
||||||
"--enable-libxvid"
|
"--enable-libxvid"
|
||||||
"--enable-zlib"
|
"--enable-zlib"
|
||||||
|
(ifMinVer "2.8" "--enable-libopus")
|
||||||
# Developer flags
|
# Developer flags
|
||||||
(enableFeature debugDeveloper "debug")
|
(enableFeature debugDeveloper "debug")
|
||||||
(enableFeature optimizationsDeveloper "optimizations")
|
(enableFeature optimizationsDeveloper "optimizations")
|
||||||
@ -139,7 +140,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
|
bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
|
||||||
libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib
|
libvdpau libvorbis lzma SDL soxr x264 xvidcore zlib libopus
|
||||||
] ++ optional openglSupport mesa
|
] ++ optional openglSupport mesa
|
||||||
++ optionals (!isDarwin) [ libvpx libpulseaudio ] # Need to be fixed on Darwin
|
++ optionals (!isDarwin) [ libvpx libpulseaudio ] # Need to be fixed on Darwin
|
||||||
++ optional (isLinux || isFreeBSD) libva
|
++ optional (isLinux || isFreeBSD) libva
|
||||||
|
Loading…
x
Reference in New Issue
Block a user