Difference between revisions of "TimedMediaHandler"

From Mondothèque

(How to install webm/ogg support with clips and multi-lingual subtitles)
Line 3: Line 3:
 
Download + install the extension https://www.mediawiki.org/wiki/Extension:TimedMediaHandler and https://www.mediawiki.org/wiki/Extension:MwEmbedSupport
 
Download + install the extension https://www.mediawiki.org/wiki/Extension:TimedMediaHandler and https://www.mediawiki.org/wiki/Extension:MwEmbedSupport
  
Find <code>ffmpeg.linux</code> and <code>ffmpegtotheora.linux</code> here: http://firefogg.org/nightly/
+
Find ffmpeg.linux and ffmpegtotheora.linux here: http://firefogg.org/nightly/
  
 
Upload anywhere into your wiki folder
 
Upload anywhere into your wiki folder
Line 9: Line 9:
 
Remove .linux extension
 
Remove .linux extension
  
Add the following to LocalSettings.php:
+
Add the following to <code>LocalSettings.php</code>:
  
 
<code>$wgFFmpegLocation = "$IP/path/to/ffmpeg";</code>
 
<code>$wgFFmpegLocation = "$IP/path/to/ffmpeg";</code>
Line 25: Line 25:
  
 
... et voila.
 
... et voila.
 +
 +
Example on this wiki:
 +
 +
Videofile: http://www.mondotheque.be/wiki/index.php/File:Morph.webm
 +
 +
.srt: http://www.mondotheque.be/wiki/index.php/TimedText:Morph.webm.en.srt
 +
 +
clip: <nowiki>[[File:Morph.webm|start=1:00|end=1:30]]</nowiki>
 +
 +
[[File:Morph.webm|start=1:00|end=1:30]]

Revision as of 06:25, 11 June 2015

How to install webm/ogg support with clips and multi-lingual subtitles

Download + install the extension https://www.mediawiki.org/wiki/Extension:TimedMediaHandler and https://www.mediawiki.org/wiki/Extension:MwEmbedSupport

Find ffmpeg.linux and ffmpegtotheora.linux here: http://firefogg.org/nightly/

Upload anywhere into your wiki folder

Remove .linux extension

Add the following to LocalSettings.php:

$wgFFmpegLocation = "$IP/path/to/ffmpeg";

$wgFFmpeg2theoraLocation = "$IP/path/to/ffmpeg2theora";

and also add .ogg and .webm to the permitted file formats:

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'doc', 'psd', 'mp3','xls', ' zip','swf', 'doc', 'odt', 'odc', 'odp', 'odg', 'mpp', 'svg', 'csv','tif','tiff','webm','ogv');

Make sure php is allowed to access /bin and /usr/bin (settings open_basedir)

Run update.php

... et voila.

Example on this wiki:

Videofile: http://www.mondotheque.be/wiki/index.php/File:Morph.webm

.srt: http://www.mondotheque.be/wiki/index.php/TimedText:Morph.webm.en.srt

clip: [[File:Morph.webm|start=1:00|end=1:30]]