Difference between revisions of "TimedMediaHandler"
(Created page with "Wiki Normal uses the Timed Media Handler extension to display audio and video files in Normal pages, using the same syntax as for image files. It includes the Kaltura HTML5 Pl...") |
(→Syntax synopsis) |
||
Line 3: | Line 3: | ||
==Syntax synopsis== | ==Syntax synopsis== | ||
− | In addition to the [[<tvar|img-syntax>Special:MyLanguage/Help:Images#Syntax</>|image embed syntax]], Timed Media Handler supports: | + | In addition to the [[<tvar|img-syntax>Special:MyLanguage/Help:Images#Syntax</>|image embed syntax]], Timed Media Handler supports: |
− | ; <nowiki>[[File:Video.ogv|File:Video.ogv]]</nowiki> : | + | ; <nowiki>[[File:Video.ogv|File:Video.ogv]]</nowiki> : |
− | Display a video at its nominal size. Displays a still image from the midpoint with a play button to start an embedded player. | + | Display a video at its nominal size. Displays a still image from the midpoint with a play button to start an embedded player. |
− | ; <nowiki>[[File:Audio.oga|File:Audio.oga]]</nowiki>: | + | ; <nowiki>[[File:Audio.oga|File:Audio.oga]]</nowiki>: |
− | Show a placeholder for a sound file, with a play button to start an embedded player. | + | Show a placeholder for a sound file, with a play button to start an embedded player. |
− | ; <nowiki>[[File:Video.ogv|thumb]]</nowiki> : | + | ; <nowiki>[[File:Video.ogv|thumb]]</nowiki> : |
− | Show a video in a floating thumbnail box | + | Show a video in a floating thumbnail box |
− | ; <nowiki><gallery>File:Video.ogv</gallery></nowiki>: | + | ; <nowiki><gallery>File:Video.ogv</gallery></nowiki>: |
− | Show a video embedded in an image gallery ( each clip will popup a dialog for the full player ) | + | Show a video embedded in an image gallery ( each clip will popup a dialog for the full player ) |
− | ; <nowiki>[[File:Video.ogg|thumbtime=1:25]]</nowiki>: | + | ; <nowiki>[[File:Video.ogg|thumbtime=1:25]]</nowiki>: |
Use a frame from 1 minute 25 seconds into the video as the placeholder image. A single number is taken as an offset in seconds.</translate> | Use a frame from 1 minute 25 seconds into the video as the placeholder image. A single number is taken as an offset in seconds.</translate> | ||
− | ; <nowiki>[[File:Video.ogg|start=1:25]]</nowiki>: | + | ; <nowiki>[[File:Video.ogg|start=1:25]]</nowiki>: |
''Temporal media fragments'' Displays a video clip starting at 1 minute 25 seconds into the video. A single number is taken as an offset in seconds. You can also include an end time of the form <code>end=1:30</code> Which would result in a clip of 5 seconds playing from 1:25 to 1:30. If thumbtime is not provided, the start time will be used for the displayed thumbnail. | ''Temporal media fragments'' Displays a video clip starting at 1 minute 25 seconds into the video. A single number is taken as an offset in seconds. You can also include an end time of the form <code>end=1:30</code> Which would result in a clip of 5 seconds playing from 1:25 to 1:30. If thumbtime is not provided, the start time will be used for the displayed thumbnail. | ||
; Deprecated : | ; Deprecated : | ||
Line 21: | Line 21: | ||
===Comparison of Wikipedia media encoding options=== <!--T:23--> | ===Comparison of Wikipedia media encoding options=== <!--T:23--> | ||
− | + | ||
Sorted by bandwidth tier (grayed items are not currently enabled): | Sorted by bandwidth tier (grayed items are not currently enabled): | ||
Line 73: | Line 73: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | ! colspan="2" style="text-align:left;"| | + | ! colspan="2" style="text-align:left;"| |
− | Name< | + | Name< !! 160P !! 240P !! 360P !! 480P !! 720P !! 1080P !! 160P !! 360P !! 480P !! 720P !! 1080P !! 2160P !! 360P !! 480P !! 720P !! 1080P !! 2160P |
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | colspan="2" style="background:#f2f2f2; text-align:left;"| | + | | colspan="2" style="background:#f2f2f2; text-align:left;"| |
− | '''Container''' | + | '''Container'''|| colspan="6" | Ogg || colspan="11" | WebM |
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | rowspan="5" style="background:#f2f2f2; text-align:left;"| | + | | rowspan="5" style="background:#f2f2f2; text-align:left;"| |
− | '''Video'''</translate> || style="background:#f2f2f2; text-align:left;"| | + | '''Video'''</translate> || style="background:#f2f2f2; text-align:left;"| |
− | '''Encoding''' | + | '''Encoding''' || colspan="6" | Theora || colspan="6" | VP8 || colspan="5" | VP9 |
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
'''Max width''' (pixels)</translate> || 288 || 426 || 640 || 854 || 1280 || 1920 || 288 || 640 || 854 || 1280 || 1920 || 4096 || 640 || 854 || 1280 || 1920 || 4096 | '''Max width''' (pixels)</translate> || 288 || 426 || 640 || 854 || 1280 || 1920 || 288 || 640 || 854 || 1280 || 1920 || 4096 || 640 || 854 || 1280 || 1920 || 4096 | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
'''Max height''' (pixels)</translate> || 160 || 240 || 360 || 480 || 720 || 1080 || 160 || 360 || 480 || 720 || 1080 || 2160 || 360 || 480 || 720 || 1080 || 2160 | '''Max height''' (pixels)</translate> || 160 || 240 || 360 || 480 || 720 || 1080 || 160 || 360 || 480 || 720 || 1080 || 2160 || 360 || 480 || 720 || 1080 || 2160 | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
'''Bitrate'''</translate> (Mbit/s) || 0.16 || 0.5 || 1.0 || 2.0 || - || -- || 0.16 || 0.5 || 1.0 || - || - || - || - || - || - || - || - | '''Bitrate'''</translate> (Mbit/s) || 0.16 || 0.5 || 1.0 || 2.0 || - || -- || 0.16 || 0.5 || 1.0 || - || - || - || - || - || - || - || - | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
'''Quality'''</translate> || - || - || - || - || 6 || 6 || - || - || - || 7 || 7 || - || - || - || - || - || - | '''Quality'''</translate> || - || - || - || - || 6 || 6 || - || - || - || 7 || 7 || - || - || - || - || - || - | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | rowspan="4" style="background:#f2f2f2; text-align:left;"| | + | | rowspan="4" style="background:#f2f2f2; text-align:left;"| |
− | '''Audio''' | + | '''Audio''' || style="background:#f2f2f2; text-align:left;"| |
− | '''Encoding''' | + | '''Encoding''' || colspan="12" | Vorbis || colspan="5" | Opus |
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
− | '''Channels''' | + | '''Channels''' || colspan="12" | 2 (stereo) |
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
'''Sampling rate'''</translate> (Hz) || colspan="12" | 44100 | '''Sampling rate'''</translate> (Hz) || colspan="12" | 44100 | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | | style="background:#f2f2f2; text-align:left;"| | + | | style="background:#f2f2f2; text-align:left;"| |
'''Quality'''</translate> || -1 || 1 || 1 || 2 || 3 || - || - || 1 || 2 || 3 || - || - || - || - || - || - || - | '''Quality'''</translate> || -1 || 1 || 1 || 2 || 3 || - || - || 1 || 2 || 3 || - || - || - || - || - || - || - | ||
|} | |} | ||
− | |||
− | |||
==Links== | ==Links== |
Revision as of 16:31, 12 August 2016
Wiki Normal uses the Timed Media Handler extension to display audio and video files in Normal pages, using the same syntax as for image files. It includes the Kaltura HTML5 Player and and experimental VideoJS Player.
Syntax synopsis
In addition to the [[<tvar|img-syntax>Special:MyLanguage/Help:Images#Syntax</>|image embed syntax]], Timed Media Handler supports:
- [[File:Video.ogv|File:Video.ogv]]
Display a video at its nominal size. Displays a still image from the midpoint with a play button to start an embedded player.
- [[File:Audio.oga|File:Audio.oga]]
Show a placeholder for a sound file, with a play button to start an embedded player.
- [[File:Video.ogv|thumb]]
Show a video in a floating thumbnail box
- <gallery>File:Video.ogv</gallery>
Show a video embedded in an image gallery ( each clip will popup a dialog for the full player )
- [[File:Video.ogg|thumbtime=1:25]]
Use a frame from 1 minute 25 seconds into the video as the placeholder image. A single number is taken as an offset in seconds.</translate>
- [[File:Video.ogg|start=1:25]]
Temporal media fragments Displays a video clip starting at 1 minute 25 seconds into the video. A single number is taken as an offset in seconds. You can also include an end time of the form end=1:30
Which would result in a clip of 5 seconds playing from 1:25 to 1:30. If thumbtime is not provided, the start time will be used for the displayed thumbnail.
- Deprecated
The syntax words noicon and noplayer are deprecated and do not function. The keyword disablecontrols will likely be deprecated soon. It takes the values: options, timedText, fullscreen.
Comparison of Wikipedia media encoding options
Sorted by bandwidth tier (grayed items are not currently enabled):
Bitrate | Mbit/s | Ogg Theora | WebM VP8 | WebM VP9 |
---|---|---|---|---|
Very Low | 0.16 | 160p15 | 160p15 | |
Low | 0.25 | 240p | 360p | |
Moderate | 0.5 | 240p | 360p | 480p |
Medium | 1.0 | 360p | 480p | 720p |
High | 2.0 | 480p | 720p | 1080p |
Very high | 4.0 | 720p | 1080p |
Detailed options:
Name< !! 160P !! 240P !! 360P !! 480P !! 720P !! 1080P !! 160P !! 360P !! 480P !! 720P !! 1080P !! 2160P !! 360P !! 480P !! 720P !! 1080P !! 2160P | |
---|---|
Container|| colspan="6" | Ogg || colspan="11" | WebM | |
Video</translate> || style="background:#f2f2f2; text-align:left;"| Encoding || colspan="6" | Theora || colspan="6" | VP8 || colspan="5" | VP9 | |
Max width (pixels)</translate> || 288 || 426 || 640 || 854 || 1280 || 1920 || 288 || 640 || 854 || 1280 || 1920 || 4096 || 640 || 854 || 1280 || 1920 || 4096 | |
Max height (pixels)</translate> || 160 || 240 || 360 || 480 || 720 || 1080 || 160 || 360 || 480 || 720 || 1080 || 2160 || 360 || 480 || 720 || 1080 || 2160 | |
Bitrate</translate> (Mbit/s) || 0.16 || 0.5 || 1.0 || 2.0 || - || -- || 0.16 || 0.5 || 1.0 || - || - || - || - || - || - || - || - | |
Quality</translate> || - || - || - || - || 6 || 6 || - || - || - || 7 || 7 || - || - || - || - || - || - | |
Audio || style="background:#f2f2f2; text-align:left;"| Encoding || colspan="12" | Vorbis || colspan="5" | Opus | |
Channels || colspan="12" | 2 (stereo) | |
Sampling rate</translate> (Hz) || colspan="12" | 44100 | |
Quality</translate> || -1 || 1 || 1 || 2 || 3 || - || - || 1 || 2 || 3 || - || - || - || - || - || - || - |