Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions scripts/build_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ function build_vpx_unix() {

function build_ffmpeg_unix() {
cd $1
if [ ! -e ffmpeg-4.4.tar.gz2 ]
if [ ! -e ffmpeg-5.1.tar.gz2 ]
then
curl -O -L https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2
curl -O -L https://ffmpeg.org/releases/ffmpeg-5.1.tar.bz2
fi
if [ -d ffmpeg-4.4 ]
if [ -d ffmpeg-5.1 ]
then
rm -rf ffmpeg-4.4
rm -rf ffmpeg-5.1
fi
tar xjvf ffmpeg-4.4.tar.bz2
cd ffmpeg-4.4
tar xjvf ffmpeg-5.1.tar.bz2
cd ffmpeg-5.1

if [ ${OS} == "Linux" ] && [[ ${DEVICE} =~ "gpu" ]] && [ $(uname -m) == "x86_64" ]
then
Expand Down Expand Up @@ -322,13 +322,13 @@ function install_cudnn_linux() {

function check_lib() {
cd $1
if [ ! -e ffmpeg-4.4 ]
if [ ! -e ffmpeg-5.1 ]
then
curl -O -L https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2
tar xjvf ffmpeg-4.4.tar.bz2
curl -O -L https://ffmpeg.org/releases/ffmpeg-5.1.tar.bz2
tar xjvf ffmpeg-5.1.tar.bz2
fi

cd ffmpeg-4.4
cd ffmpeg-5.1
str="\-\-enable-lib"$2
./configure --help | grep ''${str}''
if [ $? -eq 0 ]
Expand Down
Loading