<<

Video

Videos greatly support learning in an e-earning setting. It is a rather complex topic though, due to the variety of formats, , containers Add / edit and combination of operating systems and browsers. In order to Video (.FLV, .F4V, .MP4, .M4V (h264 coded), . minimize complexity, should therefore always be embedded AAC and .M4A) using the editor plugin "Add/edit video" (Supported are: FLV, MP4 (h264 Sound (.MP3) coded), and AAC). This chapter provides you with the key YouTube / Vimeo for using the "Add/edit video" plugin in TinyMCE. http (pseudo) streaming server (only .FLV) rtmp streaming server Further information can be found in the grey boxes. HTML5 Video Prepare video for File size Resolution (frames per second) Recommended format Interlacing The mp4 container using the H.264 and the Bitrate (kbps) is widely established and accepted. Current HandBrake Settings releases of Win IE, , Chrome and are capable of playing videos encoded in such a way.

Videos are stored as single file with a specific file extension in so-called containers. This container contains one or more video and audio tracks, each one encoded with a specific codec. A codec is essentially a compression algorithm as well as a description how data is filed. Unfortunately, some file extension are also used for container as well as codec names. Because of this, you can never solely rely on a video label, as it could stand for either the codec, the container or the file extension.

Add / edit video

Use this plugin to embed videos into your html page. It accesses OpenOLATs integrated media player, which has its advantages. 1. The player automatically detects the format, as long video and audio tracks are encoded correctly. 2. The player detects whether the user accesses the video with a HTML5 enabled and codec compatible mobile browser. If so, videos will receive a HTML5 tag and can be viewed without difficulty on iPad or similar devices.

These are the options available to you:

Description

Video: Embed a video with specific encoding.

Sound: Embed a sound file without video.

YouTube / Vimeo: Embed a / vimeo video.

http: Stream a flash file from a specific web server type.

rtmp: Stream a flash file from a specific streaming server.

Video (.FLV, .F4V, .MP4, .M4V (h264 coded), .AAC and .M4A)

This setting is best suited for integrating videos in OpenOLAT. Use the following container formats for uploading videos:

Format Container Description container description

.FLV Flash Container Flash videos containing video and audio tracks, defined by Adobe .F4V No container, but a pure video format without sound, defined by Adobe

.MP4 MPEG-4 MP4 video and sound format, defined by MPEG (Moving Picture Experts Group), various codecs

.M4V MPEG-4 MP4 video format containing H.264 video codec as well as either MP3 or AAC audio codec; iTunes format

You can either add the link to the video in the address field or upload the video.

To ensure optimum compatibility, best use a MPEG-4 container with a H.264 encoded video track and either an AAC or MP3 encoded sound track. This provides you with either the .mp4 or the .m4v file extension - but keep in mind that not all devices can play a .m4v file. We advise against using flash movies, as many portable devices such as e.g. the iPad generally do not support flash movies.

Sound (.MP3)

The player only offers limited functions when embedding mere sound . Available functions are start, stop and the progress bar, but other functions such as full screen are missing. You can either enter the link to a mp3 file in the address field, or upload the audio file. Established browsers all fully support playback of mp3 audio files.

YouTube / Vimeo

YouTube movies are linked directly, thus bypassing the upload selection field. Videos are directly embedded this way.

Attention though: Do not use the the "Embed" code (colored blue in the image above) , but the link to the video, available under "Share".

Vimeo users follow the instructions on the vimeo website. http (pseudo) streaming server (only .FLV)

This functio allows you to integrate flash movies with the .flv format. Once a movie is correctly exported at its origin, an index is added. Utilizing this index, users can jump to any spot at will without completely loading the movie. This is not a proper streaming though, as it would require an appropriate streaming installed on the server.

Enter the server address in the field "Streaming server". "Address" contains the address of the actual movie.

We strongly advise against using this method, as content can not be viewed on . rtmp streaming server

This function enables you to use a flash streaming server. It requires a particular protocol, the so-called RMTP - Real Time Messaging Protocol. Various products are available to be employed as streaming servers, e.g. from the Akamai network. This protocol, developed by Adobe, permits the transmission of the video from the server to the flash player. It's common though to encounter problems with port settings and firewalls.

We cannot recommend this option, as videos embedded in such a way cannot be viewed on the iPad.

HTML5 Video

OpenOLAT also supports HTML5 videos embedded into a html page with external tools. This requires the author though to add different alternative video formats to the html tags (such as m4v and ) and file those in variable resolutions in OpenOLAT, if necessary.

In this case, OpenOLAT supports pseudo streaming through progressive download respectively range requests.

Prepare video for upload If a video is to be uploaded to OpenOLAT, it is crucial to not only consider video format, but also file size (due to network traffic upon download), as network traffic generated by videos is generally quite high. A calculation example can be found here.

File size

The file size of a video depends on a number of parameters.

Resolution Number of on the x and y axis. Common resolutions are e.g. 480x320, 800x600, 1024x567, 1280x720, 1920x1080. Starting with the resolution of 1280x720, these are considered HD resolutions. The higher the resolution, the more memory is required.

Frame rate (frames per second) A frame rate of more than 16 pictures per second is perceived as a movie, depending greatly though on the intensity of movement. Cinema movies traditionally use a 24 frames per second. The european PAL format uses 25 frames per second, while the american NTSC uses 30 frames per second.

The framerate can be set either as variable or constant. For a movie made from powerpoint slides for example, it is advisable to use a variable framerate, as some frames may be visible for several seconds without any changes to it.

The more frames (images) per second, the more memory needed.

Interlacing Video frequency can be doubled with a simple trick without doubling the memory requirements. Only every second line of the image is alternately transferred and replaced on the screen.

This results in a slightly less sharp image because the lines in the images do not match every other frame. Due to movement in the movie this is negligible in most cases though.

If used at a constant frame rate, Interlacing reduces the amount of memory required.

Codec A codec is a compression algorithm used to video data to the least possible size. As a rule, this compression is lossy, otherwise the amount of data would be much too large. Codecs contain a variety of optimization parameters. Depending on the settings, the duration of the compression varies. Improvements with regard to image quality, file size and compression time can be made.

The more compressed, the less memory is required.

Various devices / browsers have different screen resolutions and support different codecs. A uses special software to produce copies of a high-quality video or audio source. These copies will be compressed with different resolutions, bit rates and codecs.

Transcoding is the conversion of an audio or video file to a different audio format or video format.

mp4 / h264 high resolution and high bitrate: Desktop application mp4 / h264 medium resolution and medium bitrate: tablet or desktop with poor connection mp4 / h264 small resolution and low bitrate for mobile devices WebM / VP9 medium resolution and medium bitrate for devices not supporting mp4 / h264 Ogg / medium resolution and medium bitrate for devices not supporting mp4 / h264

WebM and Ogg are no longer absolutely necessary as continues to support mp4 and Firefox does too. WebM is a container used by Google, and Ogg a container used by Firefox.

For using videos within OpenOLAT, it would be best to choose a small to medium resolution with a low to medium bitrate

Bitrate (kbps) The bitrate defines the amount of bits created per second of video material. Bitrate can be set either as constant or variable. A maximum will be defined in the case of a . The bitrate defines the file size of a movie and affects picture quality significantly. In order to maintain a consistent picture quality with an increased resolution, the bitrate needs to be increased at the same rate.

The higher the bitrate at a specific resolution, the better the movie quality, but the file size of the movie increases accordingly.

Aspects such as colour space or anamorphic also affect the file size of a movie.

The following table shows the as well as expected bitrates for other resoltions with conventional settings. Bitrates vary heavily depending on the type of video, resolution, codec and compression. These are merely benchmarks, and were calculated based on a MP4 file encoded with H.264.

Bitrate / Resolution 320x240 480x270 1024x576 1280x720 1920x1080 kbps 400 700 1'500 2'500 4'000

mbps 0.4 0.7 1.5 2.5 4

MB/S 0.1 0.1 0.2 0.3 0.5

MB/Min 3 5.3 11.3 18.8 30

A movie with an average duration of 10 minutes and a 480x270 resolution therefore approximately requires about 53 MB memory. The same movie with a resolution of 720p HD though requires about 180 MB.

Calculation example: Network traffic

If 50 users watch this 10 minute movie, this will network traffic of 2.7 GB with a 480x270 resolution. If the movie is watched with a 720p HD resolution, expect 9 GB network traffic.

If those 50 users watch the movie at the same time, the network needs to be able to handle a bitrate of 35 Mb/s (4.4 MB/s). If the movie is watched simultaneously with the 720p HD resolution, expect a network load of about 125 Mb/s (15.6 MB/s)

100 concurrent views doubles the aforementioned numbers accordingly.

For comparison: a common 802.11n wireless access point allows for an effective transfer of about 40-50Mb/s. Special hardware makes a capacity of up to 100 Mb/s feasible, but user equipment also needs to be able to handle this kind of output. 50 users watching an educational video in the same room can therefore prove to be a problem for a network.

HandBrake Settings

If you have to create or provide videos for OpenOLAT yourself, a special transcoding software can help you transform files into the correct or the desired resolution. We recommend HandBrake, a free and open source software. More information on HandBrake can be found on the HandBrake page as well as their commercial site https://handbrake.fr/.

1. Open HandBrake, and select the file to be converted. Starting formats are e.g. M4V or MOV files. 2. Select the "Normal" profile, and a check the "Web optimized" checkbox.

It would be best to leave the preset parameters untouched.

3. Select the desired size / resolution by opening the "Picture Settings". Small: 320 und 480 Medium: 1024 Large (HD): 1280 and 1920Y