Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
gem install bundler
bundle install
RAILS_ENV=production bundle exec rake db:migrate

Install yarn and update JS dependencies

Code Block
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn
yarn install # in Avalon root dir

Restart passenger (if using)

...

Code Block
languagebash
pkill -f resque
RAILS_ENV=production BACKGROUND=yes bundle exec rake resque:scheduler
RAILS_ENV=production BACKGROUND=yes QUEUE=* bundle exec rake resque:work

Upgrade ffmpegDownload a prebuild ffmpeg from 

You can either download a prebuilt binary

Code Block
languagebash
mkdir -p /tmp/ffmpeg && cd /tmp/ffmpeg
curl https://johnvansickle.com/ffmpeg

...

/releases/ffmpeg-release-amd64-static.tar.xz | tar xJ
cp `find . -type f -executable` /usr/bin

Or use https://github.com/jrottenberg/ffmpeg to build ffmpeg and then copy it to your machine.

Remove HLS distribution step from Matterhorn Disable Matterhorn HLS prechunking (if not already) by commenting out the HLS directory in etc/config.properties

Code Block
title<matterhorn_root>/etc/config.properties
# org.opencastproject.hls.directory=../public

and update encoding profiles

Code Block
#TODOwget -q https://raw.githubusercontent.com/avalonmediasystem/avalon-felix/e36aad51ee4a62795504f7a9e176e5f0ca7644b8/etc/encoding/avalon.properties -O /usr/local/matterhorn/etc/encoding/avalon.properties

Setup nginx streaming (if necessary)

...