Note |
---|
This documentation is for Release 6.3 and above. For documentation on previous releases, please select from the options below. |
...
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 | ||||
---|---|---|---|---|
| ||||
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 | ||
---|---|---|
| ||
# org.opencastproject.hls.directory=../public |
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 | ||
---|---|---|
| ||
streaming:
content_path: '/var/avalon/prechunked_derivatives' |
Anchor | ||||
---|---|---|---|---|
|
...