Skip to content

Commit e574579

Browse files
committed
libsvtav1 support
1 parent ea460e0 commit e574579

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ because I don't have the resources or time to maintain other systems.
2525
## Supported Codecs
2626
* `x264`: H.264 Video Codec (MPEG-4 AVC)
2727
* `x265`: H.265 Video Codec (HEVC)
28+
* `libsvtav1`, SVT-AV1 Encoder and Decoder
2829
* `aom`: AV1 Video Codec (Experimental and very slow!)
2930
* `fdk_aac`: Fraunhofer FDK AAC Codec
3031
* `xvidcore`: MPEG-4 video coding standard

build-ffmpeg

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,19 @@ if build "cmake"; then
368368
fi
369369

370370

371+
if build "svtav1"; then
372+
download "https://github.com/AOMediaCodec/SVT-AV1/archive/v0.8.6.tar.gz"
373+
cd Build/linux || exit
374+
execute cmake -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
375+
execute make -j $MJOBS
376+
execute make install
377+
execute cp SvtAv1Enc.pc "${WORKSPACE}/lib/pkgconfig/"
378+
execute cp SvtAv1Dec.pc "${WORKSPACE}/lib/pkgconfig/"
379+
build_done "svtav1"
380+
fi
381+
CONFIGURE_OPTIONS+=("--enable-libsvtav1")
382+
383+
371384
##
372385
## video library
373386
##
@@ -627,7 +640,7 @@ fi
627640
##
628641

629642
build "ffmpeg"
630-
download "https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.bz2"
643+
download "https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz"
631644
# shellcheck disable=SC2086
632645
./configure "${CONFIGURE_OPTIONS[@]}" \
633646
--disable-debug \

0 commit comments

Comments
 (0)