upd ffmpeg425 sh

This commit is contained in:
jario 2023-06-19 13:58:38 +08:00
parent 0136d3c2da
commit 8c7e061fc6
1 changed files with 32 additions and 31 deletions

View File

@ -5,6 +5,8 @@ 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"
@ -12,38 +14,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
#cd nv-codec-headers
#git checkout n11.1.5.0
#sudo make install
#cd ..
git clone https://gitee.com/jario-jin/nv-codec-headers.git #wget https://ffmpeg.org/releases/ffmpeg-4.2.5.tar.bz2
cd nv-codec-headers #tar -xjf ffmpeg-4.2.5.tar.bz2
git checkout n11.1.5.0 #cd ffmpeg-4.2.5
sudo make install #export PATH=$PATH:/usr/local/cuda/bin
cd .. #sed -i 's#_30#_75#' configure; sed -i 's#_30#_75#' configure
#./configure \
wget https://ffmpeg.org/releases/ffmpeg-4.2.5.tar.bz2 #--enable-nonfree \
tar -xjf ffmpeg-4.2.5.tar.bz2 #--enable-gpl \
cd ffmpeg-4.2.5 #--enable-shared \
export PATH=$PATH:/usr/local/cuda/bin #--enable-ffmpeg \
sed -i 's#_30#_75#' configure; sed -i 's#_30#_75#' configure #--enable-ffplay \
./configure \ #--enable-ffprobe \
--enable-nonfree \ #--enable-libx264 \
--enable-gpl \ #--enable-libx265 \
--enable-shared \ #--enable-cuda-nvcc \
--enable-ffmpeg \ #--enable-nvenc \
--enable-ffplay \ #--enable-cuda \
--enable-ffprobe \ #--enable-cuvid \
--enable-libx264 \ #--enable-libnpp \
--enable-libx265 \ #--extra-libs="-lpthread -lm" \
--enable-cuda-nvcc \ #--extra-cflags=-I/usr/local/cuda/include \
--enable-nvenc \ #--extra-ldflags=-L/usr/local/cuda/lib64
--enable-cuda \ #make -j8
--enable-cuvid \ #sudo make install
--enable-libnpp \ #cd ..
--extra-libs="-lpthread -lm" \
--extra-cflags=-I/usr/local/cuda/include \
--extra-ldflags=-L/usr/local/cuda/lib64
make -j8
sudo make install
cd ..
git clone https://gitee.com/jario-jin/ZLMediaKit.git git clone https://gitee.com/jario-jin/ZLMediaKit.git
cd ZLMediaKit cd ZLMediaKit