ffmpeg-full: enable svt-av1
This commit is contained in:
parent
30a7b0a709
commit
c378a33705
2 changed files with 9 additions and 1 deletions
|
@ -111,6 +111,7 @@
|
|||
, opensslExtlib ? false, openssl ? null
|
||||
, libpulseaudio ? null # Pulseaudio input support
|
||||
, rav1e ? null # AV1 encoder (focused on speed and safety)
|
||||
, svt-av1 ? null # AV1 encoder/decoder (focused on speed and correctness)
|
||||
, rtmpdump ? null # RTMP[E] support
|
||||
#, libquvi ? null # Quvi input support
|
||||
, samba ? null # Samba protocol
|
||||
|
@ -250,6 +251,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-dqpmpDFETTuWHWolMoLaubU4BeDEuQaBNA0wmzL1f8o=";
|
||||
name = "fix_libsrt.patch";
|
||||
})
|
||||
# Patch ffmpeg for svt-av1 until version 4.4
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/AOMediaCodec/SVT-AV1/v0.8.4/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-av1.patch";
|
||||
sha256 = "1p4g8skr5gjw5h1648j7qrks81zx49lrnx9g0p81qgnrvxc2wwx0";
|
||||
})
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
|
@ -393,6 +399,7 @@ stdenv.mkDerivation rec {
|
|||
(enableFeature (libpulseaudio != null) "libpulse")
|
||||
#(enableFeature quvi "libquvi")
|
||||
(enableFeature (rav1e != null) "librav1e")
|
||||
(enableFeature (svt-av1 != null) "libsvtav1")
|
||||
(enableFeature (rtmpdump != null) "librtmp")
|
||||
#(enableFeature (schroedinger != null) "libschroedinger")
|
||||
(enableFeature (SDL2 != null) "sdl2")
|
||||
|
@ -429,7 +436,7 @@ stdenv.mkDerivation rec {
|
|||
bzip2 celt dav1d fontconfig freetype frei0r fribidi game-music-emu gnutls gsm
|
||||
libjack2 ladspaH lame libaom libass libbluray libbs2b libcaca libdc1394 libmodplug libmysofa
|
||||
libogg libopus librsvg libssh libtheora libvdpau libvorbis libvpx libwebp libX11
|
||||
libxcb libXv libXext lzma openal openjpeg libpulseaudio rav1e rtmpdump opencore-amr
|
||||
libxcb libXv libXext lzma openal openjpeg libpulseaudio rav1e svt-av1 rtmpdump opencore-amr
|
||||
samba SDL2 soxr speex srt vid-stab vo-amrwbenc wavpack x264 x265 xavs xvidcore
|
||||
zeromq4 zlib
|
||||
] ++ optionals openglExtlib [ libGL libGLU ]
|
||||
|
|
|
@ -13040,6 +13040,7 @@ in
|
|||
ffmpeg = ffmpeg_4;
|
||||
|
||||
ffmpeg-full = callPackage ../development/libraries/ffmpeg-full {
|
||||
svt-av1 = if stdenv.isAarch64 then null else svt-av1;
|
||||
# The following need to be fixed on Darwin
|
||||
libjack2 = if stdenv.isDarwin then null else libjack2;
|
||||
libmodplug = if stdenv.isDarwin then null else libmodplug;
|
||||
|
|
Loading…
Reference in a new issue