Skip to content

Commit 658a882

Browse files
committed
srt update
1 parent 2f02c14 commit 658a882

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

build-ffmpeg

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ if build "fdk_aac"; then
339339
fi
340340

341341
if build "av1"; then
342-
download "https://aomedia.googlesource.com/aom/+archive/69a986c7d4c354dfbccec570ccbc44688612c083.tar.gz" "av1.tar.gz" "av1"
342+
download "https://aomedia.googlesource.com/aom/+archive/0f5cd05bb3d6209e2583ce682d1acd8e21ae24b8.tar.gz" "av1.tar.gz" "av1"
343343
cd "$PACKAGES"/av1 || exit
344344
mkdir -p "$PACKAGES"/aom_build
345345
cd "$PACKAGES"/aom_build || exit
@@ -367,6 +367,18 @@ if build "openssl"; then
367367
build_done "openssl"
368368
fi
369369

370+
if build "srt"; then
371+
download "https://github.com/Haivision/srt/archive/v1.4.1.tar.gz" "srt-v1.4.1.tar.gz"
372+
cd "$PACKAGES"/srt-1.4.1 || exit
373+
export OPENSSL_ROOT_DIR="${WORKSPACE}"
374+
export OPENSSL_LIB_DIR="${WORKSPACE}"/lib
375+
export OPENSSL_INCLUDE_DIR="${WORKSPACE}"/include/
376+
execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static
377+
execute cmake "$PACKAGES"/srt-1.4.1 -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DWITH_EXTRALIBS="-lz -ldl" .
378+
execute make install
379+
build_done "srt"
380+
fi
381+
370382
CFLAGS="-I$WORKSPACE/include"
371383
LDFLAGS="-L$WORKSPACE/lib"
372384
if command -v nvcc > /dev/null ; then
@@ -417,7 +429,8 @@ cd "$PACKAGES"/ffmpeg-4.3.1/ || exit
417429
--enable-libopencore_amrnb \
418430
--enable-filters \
419431
--enable-libvidstab \
420-
--enable-libaom
432+
--enable-libaom \
433+
--enable-libsrt
421434

422435
execute make -j $MJOBS
423436
execute make install

0 commit comments

Comments
 (0)