Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ec7229

Browse filesBrowse files
committed
added web install
1 parent d592b6b commit 6ec7229
Copy full SHA for 6ec7229

File tree

Expand file treeCollapse file tree

3 files changed

+58
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+58
-0
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ Requirements Linux
1717
* build-essentials installed
1818
* Debian >= Wheezy, Ubuntu => Trusty, other Distros might work too
1919

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+
2040
Usage
2141
------
2242

‎build-ffmpeg

Copy file name to clipboardExpand all lines: build-ffmpeg
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ if ! command_exists "g++"; then
142142
exit 1
143143
fi
144144

145+
if ! command_exists "curl"; then
146+
echo "curl not installed.";
147+
exit 1
148+
fi
149+
145150
if build "yasm"; then
146151
download "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz" "yasm-1.3.0.tar.gz"
147152
cd $PACKAGES/yasm-1.3.0 || exit

‎web-install.sh

Copy file name to clipboard
+33Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.