File tree Expand file tree Collapse file tree 3 files changed +58
-0
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +58
-0
lines changed
Original file line number Diff line number Diff line change @@ -17,6 +17,26 @@ Requirements Linux
17
17
* build-essentials installed
18
18
* Debian >= Wheezy, Ubuntu => Trusty, other Distros might work too
19
19
20
+ Installation
21
+ ------------
22
+
23
+ ### Quick install and run
24
+
25
+ Open your command line and run (needs curl to be installed):
26
+
27
+ ```
28
+ bash <(curl -s https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh)
29
+ ```
30
+ This command downloads the build script and automatically starts the build process.
31
+
32
+ ### Normal installation
33
+
34
+ ```
35
+ git clone https://github.com/markus-perl/ffmpeg-build-script.git
36
+ cd ffmpeg-build-script
37
+ ./ffmpeg-build-script --help
38
+ ```
39
+
20
40
Usage
21
41
------
22
42
Original file line number Diff line number Diff line change @@ -142,6 +142,11 @@ if ! command_exists "g++"; then
142
142
exit 1
143
143
fi
144
144
145
+ if ! command_exists " curl" ; then
146
+ echo " curl not installed." ;
147
+ exit 1
148
+ fi
149
+
145
150
if build " yasm" ; then
146
151
download " http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz" " yasm-1.3.0.tar.gz"
147
152
cd $PACKAGES /yasm-1.3.0 || exit
Original file line number Diff line number Diff line change
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 " Creating ffmpeg build directory"
29
+ make_dir $TARGET
30
+ cd $TARGET
31
+
32
+ bash <( curl -s https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/build-ffmpeg) --build
33
+
You can’t perform that action at this time.
0 commit comments