Difference between revisions of "FlvHandler"
From Wiki4Intranet
Line 1: | Line 1: | ||
{{Extension4info | {{Extension4info | ||
|name=FlvHandler | |name=FlvHandler | ||
− | |mediawiki= | + | |mediawiki=1.16+ |
|description ru=Поддержка вставки Flash-видеоплееров на страницы с использованием обычного синтаксиса <tt><nowiki>[[File:Видео.mp4]]</nowiki></tt>. Поддерживаются видеокодеки FLV+MP3 или H.264+AAC в контейнерах FLV или MP4. | |description ru=Поддержка вставки Flash-видеоплееров на страницы с использованием обычного синтаксиса <tt><nowiki>[[File:Видео.mp4]]</nowiki></tt>. Поддерживаются видеокодеки FLV+MP3 или H.264+AAC в контейнерах FLV или MP4. | ||
|description en=Support inserting Flash video players onto wiki pages using normal <tt><nowiki>[[File:Video.mp4]]</nowiki></tt> syntax. Supports FLV+MP3 or H.264+AAC codecs inside FLV or MP4 containers. | |description en=Support inserting Flash video players onto wiki pages using normal <tt><nowiki>[[File:Video.mp4]]</nowiki></tt> syntax. Supports FLV+MP3 or H.264+AAC codecs inside FLV or MP4 containers. | ||
Line 8: | Line 8: | ||
|included=2009-09-09 | |included=2009-09-09 | ||
|status=fork | |status=fork | ||
− | |||
}} | }} | ||
{{ExtensionFromInfo|lang=en|name=FlvHandler}} | {{ExtensionFromInfo|lang=en|name=FlvHandler}} | ||
− | + | [[Mediawiki4Intranet]] has its own modified FlvHandler extension version. It is an improved version of original [[mediawikiwiki:Extension:FlvHandler|Extension:FlvHandler]]. | |
− | + | == Improvements == | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
* Video player code is embedded anywhere (including Image Page) except Image Galleries and when size is set less than $wgMinFLVSize[] = array(180,180) by default. In Image Galleries, a «filmstrip» icon is also shown below each video to distinguish between videos and images. | * Video player code is embedded anywhere (including Image Page) except Image Galleries and when size is set less than $wgMinFLVSize[] = array(180,180) by default. In Image Galleries, a «filmstrip» icon is also shown below each video to distinguish between videos and images. | ||
Line 51: | Line 26: | ||
* Flow player 3.1.3 bundled. | * Flow player 3.1.3 bundled. | ||
− | + | == TODO == | |
− | + | Return these changes back to trunk. | |
+ | |||
+ | == Example == | ||
[http://yourcmc.ru/wiki/Category:Видео Example] | [http://yourcmc.ru/wiki/Category:Видео Example] | ||
+ | |||
+ | == Installation == | ||
+ | |||
+ | # Install [http://www.ffmpeg.org/ ffmpeg] on your server (see also [http://ffmpeg.arrozcru.org/wiki/index.php?title=Main_Page window$ version]) and make sure it’s in PATH environment variable. | ||
+ | # Then as usual put {{cmd|require_once "$IP/extensions/FlvHandler/FlvHandler.php";}} to your <tt>LocalSettings.php</tt>. | ||
+ | # {{warning}} To disable embedding of video player code on image galleries and image pages, you need to apply 1-line patches to <tt>ImageGallery.php</tt> and <tt>ImagePage.php</tt>: | ||
+ | <pre> | ||
+ | patch includes/ImagePage.php < extensions/FlvHandler/ImagePage.php.diff | ||
+ | patch includes/ImageGallery.php < extensions/FlvHandler/ImageGallery.php.diff | ||
+ | </pre> |
Revision as of 15:58, 13 February 2013
The given value was not understood.
FlvHandler is a MediaWiki extension.
- Main purpose: Support inserting Flash video players onto wiki pages using normal image syntax. Supports FLV+MP3 or H.264+AAC codecs inside FLV or MP4 containers.
- Repository: https://github.com/mediawiki4intranet/FlvHandler
- Homepage: FlvHandler on mediawiki.org
- Compatible MediaWiki versions: guaranteed 1.16+, maybe others
- License: GPLv2.0+
- Created: 2009-02-01
- Our rating: Definitely useful (5)
Status for Mediawiki4Intranet distribution:
- Inclusion date: 2009-09-09
- Included version: newest available
- Improvement status: Forked in MediaWiki4Intranet with major improvementsMediawiki4Intranet has its own modified FlvHandler extension version. It is an improved version of original Extension:FlvHandler.
Contents
Improvements
- Video player code is embedded anywhere (including Image Page) except Image Galleries and when size is set less than $wgMinFLVSize[] = array(180,180) by default. In Image Galleries, a «filmstrip» icon is also shown below each video to distinguish between videos and images.
- Some error message formatting.
- English+Russian i18n.
- Removed commented out legacy-code (no hooks at all!).
- Ability to set
$wgFLVConverters
and$wgFLVProbes
before the inclusion of FlvHandler.php. - Automatic prepending of
$wgFlashPlayer
with MediaWiki script path ($wgScriptPath
). - Support for any Unicode video file names (r3 can not download files with non-latin1 filenames).
- Collages of 4 frames as previews when size is more than
$wgMinFLVSize
. - Modified FlvHandler is free of errors «frame size must be a multiple of 2» generated by ffmpeg, because the frame is extracted, and THEN resized using ImageMagick.
- Flow player 3.1.3 bundled.
TODO
Return these changes back to trunk.
Example
Installation
- Install ffmpeg on your server (see also window$ version) and make sure it’s in PATH environment variable.
- Then as usual put require_once "$IP/extensions/FlvHandler/FlvHandler.php"; to your LocalSettings.php.
- To disable embedding of video player code on image galleries and image pages, you need to apply 1-line patches to ImageGallery.php and ImagePage.php:
patch includes/ImagePage.php < extensions/FlvHandler/ImagePage.php.diff patch includes/ImageGallery.php < extensions/FlvHandler/ImageGallery.php.diff