Difference between revisions of "TimedMediaHandler"

From Mondothèque

(Created page with "== How to install webm/ogg support with clips and multi-lingual subtitles == Download + install the extension https://www.mediawiki.org/wiki/Extension:TimedMediaHandler and h...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== How to install webm/ogg support with clips and multi-lingual subtitles ==
+
== Installing 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
+
Download + install the extension TimedMediaHandler + MwEmbedSupport:
  
Find ffmpeg and ffmpegtotheora here: http://firefogg.org/nightly/
+
* https://www.mediawiki.org/wiki/Extension:TimedMediaHandler
 +
* https://www.mediawiki.org/wiki/Extension:MwEmbedSupport
  
Upload anywhere into your wiki folder
+
Find ffmpeg.linux and ffmpegtotheora.linux here: http://firefogg.org/nightly/
  
Remove .linux extension
+
Upload anywhere into your wiki folder and remove the .linux extension
  
Add the following to LocalSettings.php:
+
Add the following to <code>LocalSettings.php</code>:
  
$wgFFmpegLocation = "$IP/path/to/ffmpeg";
+
<code>$wgFFmpegLocation = "$IP/path/to/ffmpeg";</code>
  
$wgFFmpeg2theoraLocation = "$IP/path/to/ffmpeg2theora";
+
<code>$wgFFmpeg2theoraLocation = "$IP/path/to/ffmpeg2theora";</code>
  
 
and also add .ogg and .webm to the permitted file formats:
 
and also add .ogg and .webm to the permitted file formats:
  
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'doc', 'psd', 'mp3','xls', '
+
<code>$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');
+
zip','swf', 'doc', 'odt', 'odc', 'odp', 'odg', 'mpp', 'svg', 'csv','tif','tiff','webm','ogv');</code>
  
Make sure php is allowed to access /bin and /usr/bin (settings open_basedir)
+
Make sure php is allowed to access <code>/bin</code> and <code>/usr/bin</code> (settings open_basedir)
  
Run update.php
+
Run <code>update.php</code>
  
... et voila.
+
== Examples ==
 +
 
 +
[[File:Morph.webm]]
 +
 
 +
* File: http://www.mondotheque.be/wiki/index.php/File:Morph.webm
 +
* Subtitles: http://www.mondotheque.be/wiki/index.php/TimedText:Morph.webm.en.srt
 +
* Clip: <nowiki>[[File:Morph.webm|start=1:00|end=1:30]]</nowiki>

Latest revision as of 06:31, 11 June 2015

Installing webm/ogg support with clips and multi-lingual subtitles

Download + install the extension TimedMediaHandler + MwEmbedSupport:

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

Upload anywhere into your wiki folder and remove the .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

Examples