Fixing issue with youtube-dl and ffmpeg
This commit is contained in:
parent
0f96078a36
commit
03dbb36361
|
@ -1,14 +1,12 @@
|
|||
machine:
|
||||
environment:
|
||||
PATH: $PATH:$HOME/bin/
|
||||
PATH: $HOME/bin/:$PATH
|
||||
LD_RUN_PATH: $LD_RUN_PATH:$HOME/opus/lib
|
||||
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$HOME/opus/lib
|
||||
PKG_CONFIG_PATH: $PKG_CONFIG_PATH:$HOME/opus/lib/pkgconfig
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- sudo apt-get -qq update
|
||||
- sudo apt-get -qqy install ffmpeg
|
||||
- bash install-dependencies.sh
|
||||
|
||||
override:
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
set -e
|
||||
|
||||
# check to see if ffmpeg is installed
|
||||
#if [ ! -f "$HOME/bin/ffmpeg" ]; then
|
||||
# echo 'Installing ffmpeg'
|
||||
# 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
|
||||
# chmod a+rx ffmpeg ffprobe
|
||||
# mv ff* ~/bin
|
||||
#else
|
||||
# echo 'Using cached version of ffmpeg.';
|
||||
#fi
|
||||
if [ ! -f "$HOME/bin/ffmpeg" ]; then
|
||||
echo 'Installing ffmpeg'
|
||||
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
|
||||
chmod a+rx ffmpeg ffprobe
|
||||
mv ff* ~/bin
|
||||
else
|
||||
echo 'Using cached version of ffmpeg.';
|
||||
fi
|
||||
|
||||
# check to see if opus is installed
|
||||
if [ ! -d "$HOME/opus/lib" ]; then
|
||||
|
|
Reference in a new issue