User:Dan Nessett/Technical/Notes on OggHandler: Difference between revisions
Jump to navigation
Jump to search
imported>Dan Nessett |
imported>Dan Nessett |
||
Line 48: | Line 48: | ||
* getting the following error on test wiki: | * getting the following error on test wiki (using latest development version of OggHandler extension): | ||
<pre>Magic word not found | <pre>Magic word not found |
Revision as of 14:20, 9 April 2010
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
- getting the following error on test wiki (using latest development version of OggHandler extension):
Magic word not found Backtrace: #0 /czdata/test/includes/MagicWord.php(231): Language->getMagic(Object(MagicWord)) #1 /czdata/test/includes/MagicWord.php(184): MagicWord->load('ogg_noplayer') #2 /czdata/test/includes/MagicWord.php(529): MagicWord::get('ogg_noplayer') #3 /czdata/test/includes/MagicWord.php(572): MagicWordArray->getBaseRegex() #4 /czdata/test/includes/MagicWord.php(617): MagicWordArray->getVariableStartToEndRegex() #5 /czdata/test/includes/parser/Parser.php(4513): MagicWordArray->matchVariableStartToEnd('Image:Bach_-_ca...') #6 /czdata/test/includes/parser/Parser.php(1713): Parser->makeImage(Object(Title), 'Image:Bach_-_ca...') #7 /czdata/test/includes/parser/Parser.php(985): Parser->replaceInternalLinks('oga file: [[Ima...') #8 /czdata/test/includes/parser/Parser.php(321): Parser->internalParse('oga file: [[Ima...') #9 /czdata/test/includes/EditPage.php(1609): Parser->parse('oga file: [[Ima...', Object(Title), Object(ParserOptions)) #10 /czdata/test/includes/EditPage.php(1181): EditPage->getPreviewText() #11 /czdata/test/includes/EditPage.php(486): EditPage->showEditForm() #12 /czdata/test/includes/EditPage.php(351): EditPage->edit() #13 /czdata/test/includes/Wiki.php(492): EditPage->submit() #14 /czdata/test/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #15 /czdata/test/index.php(93): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest)) #16 {main}