User:Dan Nessett/Technical/Notes on OggHandler
Jump to navigation
Jump to search
The account of this former contributor was not re-activated after the server upgrade of March 2022.
Installing OggHandler
- php-pear must be installed. Try:
yum list php-pear
- ffmpeg is required.
- Change LocalSettings.php:
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'ogx', 'oga', 'ogv', 'svg' ); $wgMediaHandlers = array( 'jpeg' => 'BitmapHandler', 'image/jpeg' => 'BitmapHandler', 'image/png' => 'BitmapHandler', 'png' => 'BitmapHandler', 'image/gif' => 'BitmapHandler', 'gif' => 'BitmapHandler', 'image/x-ms-bmp' => 'BmpHandler', 'image/svg+xml' => 'SvgHandler', 'image/svg' => 'SvgHandler', 'image/vnd.djvu' => 'DjVuHandler', 'application/ogg' => 'OggHandler', 'ogx' => 'OggHandler', 'video/ogg' => 'OggHandler', 'ogv' => 'OggHandler', 'audio/ogg' => 'OggHandler', 'oga' => 'OggHandler', 'ogg' => 'OggHandler' );
- Modify mime.types in $IP/includes as follows:
application/ogg ogg ogm ogx oga ogv audio/ogg ogg oga audio/x-ogg ogg oga video/ogg ogm ogg ogv video/x-ogg ogm ogg ogv
- To test the installation, you need to have java installed on the browser. For Firefox, this is a real pain. You have to softlink the appropriate java library files to /usr/lib/mozilla/plugins. The exact libraries depends on which jre you have installed. For my private CentOS 5.4 installation it is:
usr/lib/mozilla/plugins/libjavaplugin_oji.so -> /usr/java/jre1.6.0_19/plugin/i386/ns7/libjavaplugin_oji.so usr/lib/mozilla/plugins/libnpjp2.so -> /usr/java/jre1.6.0_19/lib/i386/libnpjp2.so