T16: Added ffmpeg compilation to the Vagrant provisioning script, and upped the number of cores to speed it up.

This commit is contained in:
Peter Deltchev 2015-05-21 20:43:44 -07:00
parent a61d13a8ed
commit 76fe042652
2 changed files with 24 additions and 5 deletions

3
Vagrantfile vendored
View file

@ -1,5 +1,8 @@
Vagrant.configure("2") do |config|
config.vm.box = 'laravel/homestead'
config.vm.provider "virtualbox" do |v|
v.cpus = 4
end
config.vm.network :private_network, ip: "192.168.33.11"
config.vm.synced_folder ".", "/vagrant", type: "nfs"

View file

@ -1,8 +1,24 @@
sudo add-apt-repository -y ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update
sudo apt-get install -y ffmpeg
echo "Installing tagging tools"
sudo apt-get install -y AtomicParsley flac vorbis-tools
sudo add-apt-repository -y --remove ppa:kirillshkrogalev/ffmpeg-next
echo "Installing ffmpeg dependencies"
sudo apt-get install -y pkg-config yasm libfaac-dev libmp3lame-dev libvorbis-dev
if type ffmpeg &>/dev/null; then
echo "ffmpeg is installed!"
else
echo "ffmpeg is not installed; compiling..."
cd /tmp
wget "https://ffmpeg.org/releases/ffmpeg-2.6.3.tar.bz2"
tar -xjf "ffmpeg-2.6.3.tar.bz2"
cd "ffmpeg-2.6.3"
./configure --enable-gpl --enable-encoder=flac --enable-encoder=alac --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-nonfree
make -j4
sudo make install
fi
mkdir /vagrant/logs
/vagrant/vagrant/copy-and-restart-configs.sh