ffmpeg: enable x265 support

This commit is contained in:
Nikolay Amiantov 2016-04-09 14:00:30 +03:00
parent dddafe61eb
commit d023e15cfc

View file

@ -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, libvorbis, libvpx, lzma, libpulseaudio, soxr , libtheora, libva, libvorbis, libvpx, lzma, libpulseaudio, soxr
, x264, xvidcore, zlib, libopus , x264, x265, 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
@ -129,6 +129,7 @@ stdenv.mkDerivation rec {
"--enable-libxvid" "--enable-libxvid"
"--enable-zlib" "--enable-zlib"
(ifMinVer "2.8" "--enable-libopus") (ifMinVer "2.8" "--enable-libopus")
(ifMinVer "2.8" "--enable-libx265")
# Developer flags # Developer flags
(enableFeature debugDeveloper "debug") (enableFeature debugDeveloper "debug")
(enableFeature optimizationsDeveloper "optimizations") (enableFeature optimizationsDeveloper "optimizations")
@ -142,7 +143,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 libopus libvdpau libvorbis lzma SDL soxr x264 x265 xvidcore zlib libopus
] ++ optional openglSupport mesa ] ++ optional openglSupport mesa
++ optionals (!isDarwin && !isArm) [ libvpx libpulseaudio ] # Need to be fixed on Darwin and ARM ++ optionals (!isDarwin && !isArm) [ libvpx libpulseaudio ] # Need to be fixed on Darwin and ARM
++ optional ((isLinux || isFreeBSD) && !isArm) libva ++ optional ((isLinux || isFreeBSD) && !isArm) libva