f9e3275d4e
Use the latest version of FFmpeg in Windows 64-bit releases.
36 lines
849 B
Bash
Executable file
36 lines
849 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
DIR=$(dirname ${BASH_SOURCE[0]})
|
|
cd "$DIR"
|
|
. common
|
|
mkdir -p "$PREBUILT_DATA_DIR"
|
|
cd "$PREBUILT_DATA_DIR"
|
|
|
|
VERSION=5.0.1
|
|
DEP_DIR=ffmpeg-win64-$VERSION
|
|
|
|
FILENAME=ffmpeg-$VERSION-full_build-shared.7z
|
|
SHA256SUM=ded28435b6f04b74f5ef5a6a13761233bce9e8e9f8ecb0eabe936fd36a778b0c
|
|
|
|
if [[ -d "$DEP_DIR" ]]
|
|
then
|
|
echo "$DEP_DIR" found
|
|
exit 0
|
|
fi
|
|
|
|
get_file "https://github.com/GyanD/codexffmpeg/releases/download/$VERSION/$FILENAME" \
|
|
"$FILENAME" "$SHA256SUM"
|
|
|
|
mkdir "$DEP_DIR"
|
|
cd "$DEP_DIR"
|
|
|
|
ZIP_PREFIX=ffmpeg-$VERSION-full_build-shared
|
|
7z x "../$FILENAME" \
|
|
"$ZIP_PREFIX"/bin/avutil-57.dll \
|
|
"$ZIP_PREFIX"/bin/avcodec-59.dll \
|
|
"$ZIP_PREFIX"/bin/avformat-59.dll \
|
|
"$ZIP_PREFIX"/bin/swresample-4.dll \
|
|
"$ZIP_PREFIX"/bin/swscale-6.dll \
|
|
"$ZIP_PREFIX"/include
|
|
mv "$ZIP_PREFIX"/* .
|
|
rmdir "$ZIP_PREFIX"
|