Fixing issue with youtube-dl and ffmpeg

This commit is contained in:
MichaelOultram 2015-08-12 23:22:45 +01:00
parent 5a4e149c7e
commit dc91d47ae0
2 changed files with 12 additions and 11 deletions

View file

@ -7,7 +7,8 @@ machine:
dependencies: dependencies:
pre: pre:
- sudo apt-get -qqy remove ffmpeg - sudo apt-get -y remove ffmpeg
- sudo apt-get -y install libavconf
- bash install-dependencies.sh - bash install-dependencies.sh
override: override:

View file

@ -2,22 +2,22 @@
set -e set -e
# check to see if ffmpeg is installed # check to see if ffmpeg is installed
if [ ! -f "$HOME/bin/ffmpeg" ]; then #if [ ! -f "$HOME/bin/ffmpeg" ]; then
echo 'Installing ffmpeg' # echo 'Installing ffmpeg'
wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O /tmp/ffmpeg.tar.xz # wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O /tmp/ffmpeg.tar.xz
tar -xvf /tmp/ffmpeg.tar.xz --strip 1 --no-anchored ffmpeg ffprobe # tar -xvf /tmp/ffmpeg.tar.xz --strip 1 --no-anchored ffmpeg ffprobe
chmod a+rx ffmpeg ffprobe # chmod a+rx ffmpeg ffprobe
mv ff* $HOME/bin # mv ff* ~/bin
else #else
echo 'Using cached version of ffmpeg.'; # echo 'Using cached version of ffmpeg.';
fi #fi
# check to see if opus is installed # check to see if opus is installed
if [ ! -d "$HOME/opus/lib" ]; then if [ ! -d "$HOME/opus/lib" ]; then
echo 'Installing opus' echo 'Installing opus'
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
tar xzvf opus-1.0.3.tar.gz tar xzvf opus-1.0.3.tar.gz
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install cd opus-1.0.3 && ./configure --prefix=~/opus && make && make install
else else
echo 'Using cached version of opus.'; echo 'Using cached version of opus.';
fi fi