Last active
February 4, 2016 23:01
-
-
Save arsanto/30e6e79b8b821c61ac2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run: source <(curl -s https://raw.githubusercontent.com/qrpike/CentOS-6-Quick-Install-Scripts/master/installOpenVZ.sh) | |
# youtube-upload | |
wget https://bootstrap.pypa.io/ez_setup.py -O - | python | |
easy_install --upgrade google-api-python-client | |
wget https://github.com/tokland/youtube-upload/archive/master.zip | |
yum install unzip -y | |
unzip master.zip | |
cd youtube-upload-master | |
python setup.py install | |
# youtube-dl | |
sudo curl https://yt-dl.org/downloads/2014.07.30/youtube-dl -o /usr/local/bin/youtube-dl | |
sudo chmod a+x /usr/local/bin/youtube-dl | |
# ffmpeg | |
sudo yum -y install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
mkdir ~/ffmpeg_sources | |
# install Yasm | |
cd ~/ffmpeg_sources | |
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" | |
make | |
make install | |
make distclean | |
export "PATH=$PATH:$HOME/bin" | |
# install libx264 | |
cd ~/ffmpeg_sources | |
git clone --depth 1 git://git.videolan.org/x264 | |
cd x264 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static | |
make | |
make install | |
make distclean | |
# install libfdk_aac | |
cd ~/ffmpeg_sources | |
git clone --depth 1 git://git.code.sf.net/p/opencore-amr/fdk-aac | |
cd fdk-aac | |
autoreconf -fiv | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
# install libmp3lame | |
cd ~/ffmpeg_sources | |
curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz | |
tar xzvf lame-3.99.5.tar.gz | |
cd lame-3.99.5 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --disable-shared --enable-nasm | |
make | |
make install | |
make distclean | |
# install libopus | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz | |
tar xzvf opus-1.1.tar.gz | |
cd opus-1.1 | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
# install libogg | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz | |
tar xzvf libogg-1.3.1.tar.gz | |
cd libogg-1.3.1 | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
# install libvorbis | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz | |
tar xzvf libvorbis-1.3.4.tar.gz | |
cd libvorbis-1.3.4 | |
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
# install libvpx | |
cd ~/ffmpeg_sources | |
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git | |
cd libvpx | |
./configure --prefix="$HOME/ffmpeg_build" --disable-examples | |
make | |
make install | |
make clean | |
# install FFmpeg | |
cd ~/ffmpeg_sources | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" | |
export PKG_CONFIG_PATH | |
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 | |
make | |
make install | |
make distclean | |
hash -r | |
. ~/.bash_profile | |
# end | |
echo "youtube-dl and ffmpeg installed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment