This repository was archived by the owner on Dec 31, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -4,20 +4,23 @@ indent() {
4
4
sed -u ' s/^/ /'
5
5
}
6
6
7
- echo " -----> Install ffmpeg"
7
+ echo " -----> Install ffmpeg (with LAME support) "
8
8
BUILD_DIR=$1
9
9
VENDOR_DIR=" vendor"
10
- DOWNLOAD_URL=" http://topfan-production.s3.amazonaws.com/ffmpeg.tar.gz"
10
+ FFMPEG_DOWNLOAD_URL=" http://topfan-production.s3.amazonaws.com/ffmpeg.tar.gz"
11
+ LAME_DOWNLOAD_URL=" http://topfan-production.s3.amazonaws.com/mp3lame.tar.gz"
11
12
12
- echo " DOWNLOAD_URL = " $DOWNLOAD_URL | indent
13
+ echo " FFMPEG_DOWNLOAD_URL = " $FFMPEG_DOWNLOAD_URL | indent
14
+ echo " LAME_DOWNLOAD_URL = " $LAME_DOWNLOAD_URL | indent
13
15
14
16
cd $BUILD_DIR
15
17
mkdir -p $VENDOR_DIR
16
18
cd $VENDOR_DIR
17
- curl -L --silent $DOWNLOAD_URL | tar xz
19
+ curl -L --silent $FFMPEG_DOWNLOAD_URL | tar xz
20
+ curl -L --silent $LAME_DOWNLOAD_URL | tar xz
18
21
19
22
echo " exporting PATH and LIBRARY_PATH" | indent
20
- PROFILE_PATH=" $BUILD_DIR /.profile.d/ffmpeg .sh"
23
+ PROFILE_PATH=" $BUILD_DIR /.profile.d/ffmpeg_lame .sh"
21
24
mkdir -p $( dirname $PROFILE_PATH )
22
- echo ' export PATH="$PATH:vendor/ffmpeg/bin"' >> $PROFILE_PATH
23
- echo ' export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:vendor/ffmpeg/lib"' >> $PROFILE_PATH
25
+ echo ' export PATH="$PATH:vendor/ffmpeg/bin:vendor/mp3lame/bin "' >> $PROFILE_PATH
26
+ echo ' export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:vendor/ffmpeg/lib:vendor/mp3lame/lib "' >> $PROFILE_PATH
You can’t perform that action at this time.
0 commit comments