Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Remove all instructions related to prechunked HLS


Note

This documentation is for Release 6.3 and above. For documentation on previous releases, please select from the options below.

  • Release 1.x version of this page: v.81
  • Release 2.x version of this page: v.87.
  • Release 3.0-3.1 version of this page: v.111.
  • Release 3.2 version of this page: v.116.
  • Release 4.0 version of this page: v.143.
  • Release 5.x version of this page: v.163.
  • Release 6.0 version of this page: v.177

...

See documentation for your version of MySQL Server for detailed syntax (http://dev.mysql.com/doc/refman/5.1/en/create-database.html )

Media Streaming Server

Warning

Nginx replaces Red5 is no longer as the default streaming server for since Avalon 6.3. With the upgrade to MediaElementjs 4, we now rely completely on HLS.

By default, Avalon prechunks HLS artifacts that can be served by any webserver, see: Matterhorn's distribute-hls workflow. For development, this may suffice because a dedicated streaming server isn't necessary, however many consider prechunking inflexible and inconvenient.

For production environments, an HLS-An HLS-enabled server like Wowza, Adobe Media System Server (commercial) or Nginx + the HLS module (open-source) can take an mp4 created from distribute-streaming and stream it on the fly. Then prechunking can be disabled by commenting out the distribute-hls operation.

Nginx instructions

Code Block
languagebash
titleInstall Nginx with vod module
rpm -ihv http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm
yum install kaltura-nginx

...

Code Block
streaming:
  server: :nginx
  http_base: 'http://localhost:8980/avalon'
  content_path: '/var/avalon/derivatives'

Further considerations

Disable Matterhorn HLS prechunking (at a later step) by commenting out the HLS directory in etc/config.properties

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


If you enable SSL on
Warning
Warning

If you enable SSL on Avalon server, you should also enable SSL on the streaming server to avoid Mixed content warning.

...

Code Block
mkdir -p /usr/local/masterfiles 
chown avalon:avalon /usr/local/masterfiles

mkdir -p /var/avalon/derivatives /var/avalon/prechunked_derivatives
chown matterhorn:matterhorn /var/avalon/derivatives /var/avalon/prechunked_derivatives/

chmod 0775 /var/avalon/derivatives /var/avalon/prechunked_derivatives/


ln -s /var/avalon/prechunked_derivatives/ /var/www/avalon/public/streams

Configure Matterhorn

Download Matterhorn config and verify property values.

...

Code Block
org.opencastproject.streaming.directory=/var/avalon/derivatives
org.opencastproject.hls.directory=/var/avalon/prechunked_derivatives

Also check in /usr/local/matterhorn/etc/load/org.opencastproject.organization-mh_default_org.cfg

...

Code Block
titleconfig/settings/development.local.yml
streaming:
  content_path: '/var/avalon/prechunked_derivatives'

Anchor
secrets
secrets
Change the secrets.yml file:

...