|
@@ -1,7 +1,5 @@
|
|
|
#!/bin/bash
|
|
|
-
|
|
|
-# HOMEPAGE: https://github.com/markus-perl/ffmpeg-build-script
|
|
|
-# LICENSE: https://github.com/markus-perl/ffmpeg-build-script/blob/master/LICENSE
|
|
|
+# export http_proxy=http://192.168.0.144:7890 https_proxy=http://192.168.0.144:7890
|
|
|
|
|
|
PROGNAME=$(basename "$0")
|
|
|
VERSION=1.22
|
|
@@ -628,43 +626,44 @@ if build "srt"; then
|
|
|
|
|
|
build_done "srt"
|
|
|
fi
|
|
|
+# ERROR: srt >= 1.3.0 not found using pkg-config temp hide
|
|
|
CONFIGURE_OPTIONS+=("--enable-libsrt")
|
|
|
|
|
|
##
|
|
|
## HWaccel library
|
|
|
##
|
|
|
|
|
|
-if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
|
- if command_exists "nvcc"; then
|
|
|
- if build "nv-codec"; then
|
|
|
- download "https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.0.10.0/nv-codec-headers-11.0.10.0.tar.gz"
|
|
|
- execute make PREFIX="${WORKSPACE}"
|
|
|
- execute make install PREFIX="${WORKSPACE}"
|
|
|
- build_done "nv-codec"
|
|
|
- fi
|
|
|
- CFLAGS+=" -I/usr/local/cuda/include"
|
|
|
- LDFLAGS+=" -L/usr/local/cuda/lib64"
|
|
|
- CONFIGURE_OPTIONS+=("--enable-cuda-nvcc" "--enable-cuvid" "--enable-nvenc" "--enable-cuda-llvm")
|
|
|
-
|
|
|
- if [ -z "$LDEXEFLAGS" ]; then
|
|
|
- CONFIGURE_OPTIONS+=("--enable-libnpp") # Only libnpp cannot be statically linked.
|
|
|
- fi
|
|
|
-
|
|
|
- # https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
|
|
|
- CONFIGURE_OPTIONS+=("--nvccflags=-gencode arch=compute_52,code=sm_52")
|
|
|
- fi
|
|
|
-
|
|
|
- # Vaapi doesn't work well with static links FFmpeg.
|
|
|
- if [ -z "$LDEXEFLAGS" ]; then
|
|
|
- # If the libva development SDK is installed, enable vaapi.
|
|
|
- if library_exists "libva"; then
|
|
|
- if build "vaapi"; then
|
|
|
- build_done "vaapi"
|
|
|
- fi
|
|
|
- CONFIGURE_OPTIONS+=("--enable-vaapi")
|
|
|
- fi
|
|
|
- fi
|
|
|
-fi
|
|
|
+# if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
|
+# if command_exists "nvcc"; then
|
|
|
+# if build "nv-codec"; then
|
|
|
+# download "https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.0.10.0/nv-codec-headers-11.0.10.0.tar.gz"
|
|
|
+# execute make PREFIX="${WORKSPACE}"
|
|
|
+# execute make install PREFIX="${WORKSPACE}"
|
|
|
+# build_done "nv-codec"
|
|
|
+# fi
|
|
|
+# CFLAGS+=" -I/usr/local/cuda/include"
|
|
|
+# LDFLAGS+=" -L/usr/local/cuda/lib64"
|
|
|
+# CONFIGURE_OPTIONS+=("--enable-cuda-nvcc" "--enable-cuvid" "--enable-nvenc" "--enable-cuda-llvm")
|
|
|
+
|
|
|
+# if [ -z "$LDEXEFLAGS" ]; then
|
|
|
+# CONFIGURE_OPTIONS+=("--enable-libnpp") # Only libnpp cannot be statically linked.
|
|
|
+# fi
|
|
|
+
|
|
|
+# # https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
|
|
|
+# CONFIGURE_OPTIONS+=("--nvccflags=-gencode arch=compute_52,code=sm_52")
|
|
|
+# fi
|
|
|
+
|
|
|
+# # Vaapi doesn't work well with static links FFmpeg.
|
|
|
+# if [ -z "$LDEXEFLAGS" ]; then
|
|
|
+# # If the libva development SDK is installed, enable vaapi.
|
|
|
+# if library_exists "libva"; then
|
|
|
+# if build "vaapi"; then
|
|
|
+# build_done "vaapi"
|
|
|
+# fi
|
|
|
+# CONFIGURE_OPTIONS+=("--enable-vaapi")
|
|
|
+# fi
|
|
|
+# fi
|
|
|
+# fi
|
|
|
|
|
|
##
|
|
|
## FFmpeg
|
|
@@ -739,4 +738,38 @@ elif [[ ! "$SKIPINSTALL" == "yes" ]]; then
|
|
|
esac
|
|
|
fi
|
|
|
|
|
|
+##
|
|
|
+## build lv2 speech-denoiser
|
|
|
+##
|
|
|
+
|
|
|
+# build "speech-denoiser"
|
|
|
+# if ! command_exists "git"; then
|
|
|
+# sudo apt-get install -y git
|
|
|
+# fi
|
|
|
+
|
|
|
+# if [ ! -d "$WORKSPACE/speech-denoiser" ]; then
|
|
|
+# git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
|
|
|
+# fi
|
|
|
+
|
|
|
+# cd "$WORKSPACE/speech-denoiser"
|
|
|
+# sudo apt-get install -y ninja-build python3-pip
|
|
|
+# if command_exists "python3"; then
|
|
|
+# pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' 2>&1)"
|
|
|
+# laverison="3.5.2"
|
|
|
+# echo "$pyv"
|
|
|
+# # if [ 1 -eq "$(echo "${pyv} > ${laverison}" | bc)" ];then
|
|
|
+# sudo apt-get remove python3.4 -y
|
|
|
+# sudo apt-get install software-properties-common python-software-properties -y
|
|
|
+# sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
|
+# sudo apt-get update -y
|
|
|
+# sudo apt-get install python3-pip python3.6 -y
|
|
|
+# # fi
|
|
|
+# sudo pip3 install meson
|
|
|
+# # else
|
|
|
+# # sudo apt-get install -y python3-pip
|
|
|
+# # sudo pip3 install meson
|
|
|
+# fi
|
|
|
+# chmod +x install.sh && ./install.sh
|
|
|
+# build_done "speech-denoiser"
|
|
|
+
|
|
|
exit 0
|