Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ling0322 committed Aug 19, 2024
1 parent 074401e commit 3c50d05
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions third_party/install_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

set -e

unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
MSYS_NT*) machine=Git;;
*) machine="UNKNOWN:${unameOut}"
esac
echo ${machine}

toolchain_opts=""
if [ "$machine" = "Cygwin" ]; then
toolchain_opts="--target-os=win64 --arch=x86_64 --toolchain=msvc"
fi

if [ ! -d ffmpeg-7.0.2 ]; then
wget -nv https://www.ffmpeg.org/releases/ffmpeg-7.0.2.tar.gz
tar xzf ffmpeg-7.0.2.tar.gz
Expand All @@ -12,6 +28,7 @@ fi
cd ffmpeg-7.0.2
echo "configuring ffmpeg ..."
./configure \
$toolchain_opts \
--disable-alsa \
--disable-x86asm \
--disable-shared \
Expand Down

0 comments on commit 3c50d05

Please sign in to comment.