Skip to content

Commit 945fbb4

Browse files
committed
Fixes #94
1 parent faa30b9 commit 945fbb4

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ other than Debian 10 and macOS 11.x, because I don't have the resources or time
2929
Open your command line and run (curl needs to be installed):
3030

3131
```bash
32+
33+
# Without GPL and non-free codes, see https://ffmpeg.org/legal.html
34+
$ bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1")
35+
36+
# With GPL and non-free codes, see https://ffmpeg.org/legal.html
3237
$ bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1")
3338
```
3439

web-install-gpl-and-non-free.sh

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
# Helper script to download and run the build-ffmpeg script.
3+
4+
make_dir () {
5+
if [ ! -d $1 ]; then
6+
if ! mkdir $1; then
7+
printf "\n Failed to create dir %s" "$1";
8+
exit 1
9+
fi
10+
fi
11+
}
12+
13+
command_exists() {
14+
if ! [[ -x $(command -v "$1") ]]; then
15+
return 1
16+
fi
17+
18+
return 0
19+
}
20+
21+
TARGET='ffmpeg-build'
22+
23+
if ! command_exists "curl"; then
24+
echo "curl not installed.";
25+
exit 1
26+
fi
27+
28+
echo "ffmpeg-build-script-downloader v0.1"
29+
echo "========================================="
30+
echo ""
31+
32+
echo "First we create the ffmpeg build directory $TARGET"
33+
make_dir $TARGET
34+
cd $TARGET
35+
36+
echo "Now we download and execute the build script"
37+
echo ""
38+
39+
bash <(curl -s https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/build-ffmpeg) --build --enable-gpl-and-non-free
40+

0 commit comments

Comments
 (0)