Page tree

Versions Compared

Key

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

...

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 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 '/var/avalon/derivatives'


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:

...