Fallback scripts/common/ffmpeg425-install.sh.

Signed-off-by: jario-jin <jariof@foxmail.com>
This commit is contained in:
jario-jin 2023-06-20 09:28:23 +00:00 committed by Gitee
parent 884ae355c6
commit 3dc5e65331
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 30 additions and 32 deletions

View File

@ -5,8 +5,6 @@ sudo apt install -y \
build-essential yasm cmake libtool libc6 libc6-dev unzip wget libfmt-dev \ build-essential yasm cmake libtool libc6 libc6-dev unzip wget libfmt-dev \
libnuma1 libnuma-dev libx264-dev libx265-dev libfaac-dev libssl-dev libnuma1 libnuma-dev libx264-dev libx265-dev libfaac-dev libssl-dev
sudo apt install -y ffmpeg
root_dir=${HOME}"/SpireCV" root_dir=${HOME}"/SpireCV"
if [ ! -d ${root_dir} ]; then if [ ! -d ${root_dir} ]; then
echo -e "\033[32m[INFO]: ${root_dir} not exist, creating it ... \033[0m" echo -e "\033[32m[INFO]: ${root_dir} not exist, creating it ... \033[0m"
@ -14,37 +12,37 @@ if [ ! -d ${root_dir} ]; then
fi fi
cd ${root_dir} cd ${root_dir}
#git clone https://gitee.com/jario-jin/nv-codec-headers.git git clone https://gitee.com/jario-jin/nv-codec-headers.git
#cd nv-codec-headers cd nv-codec-headers
#git checkout n11.1.5.0 git checkout n11.1.5.0
#sudo make install sudo make install
#cd .. cd ..
#wget https://ffmpeg.org/releases/ffmpeg-4.2.5.tar.bz2 wget https://ffmpeg.org/releases/ffmpeg-4.2.5.tar.bz2
#tar -xjf ffmpeg-4.2.5.tar.bz2 tar -xjf ffmpeg-4.2.5.tar.bz2
#cd ffmpeg-4.2.5 cd ffmpeg-4.2.5
#export PATH=$PATH:/usr/local/cuda/bin export PATH=$PATH:/usr/local/cuda/bin
#sed -i 's#_30#_75#' configure; sed -i 's#_30#_75#' configure sed -i 's#_30#_75#' configure; sed -i 's#_30#_75#' configure
#./configure \ ./configure \
#--enable-nonfree \ --enable-nonfree \
#--enable-gpl \ --enable-gpl \
#--enable-shared \ --enable-shared \
#--enable-ffmpeg \ --enable-ffmpeg \
#--enable-ffplay \ --enable-ffplay \
#--enable-ffprobe \ --enable-ffprobe \
#--enable-libx264 \ --enable-libx264 \
#--enable-libx265 \ --enable-libx265 \
#--enable-cuda-nvcc \ --enable-cuda-nvcc \
#--enable-nvenc \ --enable-nvenc \
#--enable-cuda \ --enable-cuda \
#--enable-cuvid \ --enable-cuvid \
#--enable-libnpp \ --enable-libnpp \
#--extra-libs="-lpthread -lm" \ --extra-libs="-lpthread -lm" \
#--extra-cflags=-I/usr/local/cuda/include \ --extra-cflags=-I/usr/local/cuda/include \
#--extra-ldflags=-L/usr/local/cuda/lib64 --extra-ldflags=-L/usr/local/cuda/lib64
#make -j8 make -j8
#sudo make install sudo make install
#cd .. cd ..
git clone https://gitee.com/jario-jin/ZLMediaKit.git git clone https://gitee.com/jario-jin/ZLMediaKit.git
cd ZLMediaKit cd ZLMediaKit