PHPackages                             wikifab/embed-video - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. wikifab/embed-video

ActiveMediawiki-extension[Image &amp; Media](/categories/media)

wikifab/embed-video
===================

2.5.4(8y ago)03.0kPHP

Since Sep 27Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Wikifab/mediawiki-embedvideo)[ Packagist](https://packagist.org/packages/wikifab/embed-video)[ RSS](/packages/wikifab-embed-video/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (3)Used By (0)

\#About

The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev for embedding video clips from over 22 popular video sharing services in multiple languages and countries. It also adds video and audio media handlers to support transforming standard `[[File:Example.mp4]]` file links into embedded HTML5 `` and `` tags.

For more information about EmbedVideo, to download, to contribute, and to report bugs and problems, visit the GitHub project page:

Issues, bug reports, and feature requests may be created at the issue tracker:

The MediaWiki extension page is located at:

\##History

The original version of EmbedVideo was created by Jim R. Wilson. That version was later forked by Mohammed Derakhshani as the EmbedVideoPlus extension. In early 2010 Andrew Whitworth took over active maintenance of both extensions and merged them together as "EmbedVideo". Much later on in September 2014 Alexia E. Smith forcefully took over being unable to contact a current maintainer.

The newer versions of EmbedVideo are intended to be fully backwards-compatible with both older EmbedVideo and EmbedVideoPlus extensions.

\#License

EmbedVideo is released under the MIT license

See LICENSE for more details

\#Installation

\##Download

There are three places to download the EmbedVideo extension. The first is directly from its GitHub project page, where active development takes place. If you have git, you can use this incantation to check out a read-only copy of the extension source:

```
git clone https://github.com/HydraWiki/mediawiki-embedvideo.git

```

Downloadable archive packages for numbered releases will also be available from the github project page.

\##Installation Instructions

1. Download the contents of the extension, as outlined above.
2. Create an EmbedVideo folder in the extensions/ folder of your MediaWiki installation.
3. Copy the contents of this distribution into that folder

For Mediawiki 1.19 through 1.23 add the following line to your LocalSettings.php:

```
require_once("$IP/extensions/EmbedVideo/EmbedVideo.php");
```

For Mediawiki 1.24 and up add the following line to your LocalSettings.php:

```
wfLoadExtension("EmbedVideo");
```

\#Usage

Media Handler
-------------

[](#media-handler)

For locally uploaded content the process for displaying it on a page is the same as an image. [See the image syntax documentation](https://www.mediawiki.org/wiki/Help:Images#Syntax) on MediaWiki.org for complete reference on this feature.

This example would display a video in page using a HTML5 `` tag.

```
[[File:Example.mp4]]

```

To specify the start and end timestamps in the media use the start and end parameters. The timestamp can be formatted as one of: ss, :ss, mm:ss, hh:mm:ss, or dd:hh:mm:ss.

```
[[File:Example.mp4|start=2|end=6]]

```

Tags
----

[](#tags)

The EmbedVideo parser function expects to be called in any of the following ways:

### \#ev - Classic Parser Tag

[](#ev---classic-parser-tag)

- `{{#ev:service|id}}`
- `{{#ev:service|id|dimensions}}`
- `{{#ev:service|id|dimensions|alignment}}`
- `{{#ev:service|id|dimensions|alignment|description}}`
- `{{#ev:service|id|dimensions|alignment|description|container}}`
- `{{#ev:service|id|dimensions|alignment|description|container|urlargs}}`
- `{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize}}`

However, if needed optional arguments may be left blank by not putting anything between the pipes:

- `{{#ev:service|id|||description}}`

### \#evt - Parser Tag for Templates

[](#evt---parser-tag-for-templates)

The #evt parser tag allows for key=value pairs which allows for easier templating and readability.

```
{{#evt:
service=youtube
|id=https://www.youtube.com/watch?v=pSsYTj9kCHE
|alignment=right
}}

```

### \#evu - Parser Tag for URLs

[](#evu---parser-tag-for-urls)

The #evu parser tag is like the #evt tag, but its first parameter is a URL that will be parsed to determine the service automatically.

```
{{#evu:https://www.youtube.com/watch?v=pSsYTj9kCHE
|alignment=right
}}

```

### &lt;embedvideo&gt; - Tag Hook

[](#embedvideo---tag-hook)

Videos can easily be embedded with the &lt;embedvideo&gt;&lt;/embedvideo&gt; tag hook. The ID/URL goes as the input between the tags and parameters can be added as the tag arguments.

```
https://www.youtube.com/watch?v=pSsYTj9kCHE

```

Attributes for Parser Tags
--------------------------

[](#attributes-for-parser-tags)

AttributeRequiredDefaultDescription`service="(See Supported Services below.)"`yesThe video service to call.`id="\[idurl\]"`yes`dimensions="\[WIDTHWIDTHxHEIGHTxHEIGHT\]"`no`alignment="\[leftcenterrightinline\]"``description="[wiki text]"`nononeDisplay a description under the embed container.`container="[frame]"`nononeSpecifies the container type to use for the embed.
`frame`: Wrap the video player in a Mediawiki thumbnail box.`urlargs="modestbranding=1&version=3"`nononeAllows extra URL arguments to be appended to the generated embed URL. This is useful for obscure options only supported on one service.`autoresize="false"`notrueAutomatically resize videos when their size will cause them to break outside of their container elementExamples
--------

[](#examples)

### Example #1

[](#example-1)

For example, a video from YouTube use the 'youtube' service selector enter either the raw ID:

```
{{#ev:youtube|pSsYTj9kCHE}}

```

Or the full URL:

```
{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE}}

```

### Example #2

[](#example-2)

To display the same video as a right aligned large thumbnail with a description:

```
{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|1000|right|Let eet GO|frame}}

```

For YouTube to have the video start at a specific time code utilize the urlargs(URL arguments) parameter. Take the rest of the URL arguments from the custom URL and place them into the urlargs. Please note that not all video services support extra URL arguments or may have different keys for their URL arguments.

```
https://www.youtube.com/watch?v=pSsYTj9kCHE&start=76

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|||||start=76}}

```

Support for VideoLink Tags
==========================

[](#support-for-videolink-tags)

Support for the unmaintained VideoLink extension's tags has been added since version 2.5.

From the original extension documentation:

```
The VideoLink extension allows embedding of YouTube videos in articles; allowing for multiple linked videos to be played in a single embedded video player, first shown when a user clicks on a video link.

The  specifies where the player should appear within the page, and the {{#vlink}} parser function allows creation of links that load a specific video.

```

### &lt;evlplayer&gt; - Tag Hook for Video Container

[](#evlplayer---tag-hook-for-video-container)

*Note that the use of the `` tag is also acceptable here for backwards compatibility.*

This evlplayer tag is used to position the video player container within the page.

```
default content

```

AttributesRequiredDefaultDescriptionidnodefaultAn optional unique identifier for this containerwno800Width to send to the embedded player when its generatedhnoachieve 16:9 from widthHeight to send to the embedded player when its generatedclassnoAdditional CSS class to add to the container divstylenoAdditional in-line CSS to apply to the container divAn important caveat to make note of, is that the `w` and `h` attributes only effect the video that is being included into the container div, and not the actual container. For styling of the container, please use the `class` or `style` attributes.

### \#evl - Parser Function for Video Links

[](#evl---parser-function-for-video-links)

*Note that the use of the `{{#vlink}}` parser function is also acceptable here for backwards compatibility.*

```
{{#evl:||service=youtube|player=}}

```

In addition to all of the attributes supported by the `#evt` tag, these specific attributes apply to the `#evl` (and `#vlink`) tags. To maintain backwards compatibility, if you do not define a `service` then `youtube` is assumed.

AttributesRequiredDefaultDescriptionvideo idyesnoneThe ID of the video you would like to play. *Please note that the use of multiple video IDs separated by a semicolon is now deprecated. Please use the proper service for playlists if you would like play multiple videos from a single link*link textyesnoneThe text to display inside the linkplayerno'default'Player container to load video in. *Note that the ID 'default' will only exist if you've defined a player with no ID.*initial video*deprecated*In the original VideoLink, this would define what video to play first if multiple videos were define. Please see notes about in `video id` and `start`.start*deprecated*0:00In the original VideoLink, this defined the start time of a video. Since we support multiple video services, this feature can now be replicated with the `urlargs` parameter. For backwards compatibility, this attribute will be respect on videos with the service `youtube`.Supported Services
------------------

[](#supported-services)

As of version 2.x, EmbedVideo supports embedding video content from the following services:

SiteService Name(s)ID ExampleURL Example(s)[Archive.org Videos](https://archive.org/details/movies)`archiveorg`electricsheep-flock-244-80000-6
[Bambuser](http://bambuser.com/)`bambuser` - Broadcasts`bambuser_channel` - Channels5262334[Beam](https://beam.pro/)`beam`RocketBear[Bing](http://www.bing.com/videos/)`bing`31ncp9r7l[Blip.tv](http://www.blip.tv/)`blip` - Blip requires the full URL to the video page and does not accept the raw ID.[C3TV](https://media.ccc.de/)`mediacccde`32c3-7305-quantum\_cryptography[https://media.ccc.de/v/32c3-7305-quantum\\\_cryptography](https://media.ccc.de/v/32c3-7305-quantum%5C_cryptography)[CollegeHumor](http://www.collegehumor.com/)`collegehumor`6875289[Dailymotion](http://www.dailymotion.com/)`dailymotion`x1adiiw\_archer-waking-up-as-h-jon-benjamin\_shortfilms[http://www.dailymotion.com/video/x1adiiw\\\_archer-waking-up-as-h-jon-benjamin\\\_shortfilms](http://www.dailymotion.com/video/x1adiiw%5C_archer-waking-up-as-h-jon-benjamin%5C_shortfilms)[Disclose.tv](http://www.disclose.tv/)`disclose`150781[Daum TVPot](http://tvpot.daum.net/)`tvpot` - Obtain the URL or ID from the share menu URL.s9011HdLzYwpLwBodQzCHRB[Div Share](http://www.divshare.com)`divshare`[Edutopia](http://edutopia.org)Edutopia content moved to YouTube. Please use the youtube service selector below.[FunnyOrDie](http://www.funnyordie.com/)`funnyordie`c61fb67ac9[Gfycat](http://gfycat.com/)`gfycat`BruisedSilentAntarcticfurseal[Hitbox](http://www.hitbox.tv/)`hitbox`Washuu[JW Player](https://www.jwplayer.com/)`jwplayer`cr5d8nbu-8ZpoNmmJs[Kickstarter](http://www.kickstarter.com/)`kickstarter`elanlee/exploding-kittens[Metacafe](http://www.metacafe.com/)`metacafe`11404579[http://www.metacafe.com/watch/11404579/lan\\\_party\\\_far\\\_cry\\\_4/](http://www.metacafe.com/watch/11404579/lan%5C_party%5C_far%5C_cry%5C_4/)[Nico Nico Video](http://www.nicovideo.jp/)`nico`sm24394325[RuTube](http://rutube.ru/)`rutube`b698163ccb67498db74d50cb0f22e556[TeacherTube](http://teachertube.com)`teachertube`370511[TED Talks](http://www.ted.com/talks/browse/)`ted`bruce\_aylward\_humanity\_vs\_ebola\_the\_winning\_strategies\_in\_a\_terrifying\_war[http://www.ted.com/talks/bruce\\\_aylward\\\_humanity\\\_vs\\\_ebola\\\_the\\\_winning\\\_strategies\\\_in\\\_a\\\_terrifying\\\_war](http://www.ted.com/talks/bruce%5C_aylward%5C_humanity%5C_vs%5C_ebola%5C_the%5C_winning%5C_strategies%5C_in%5C_a%5C_terrifying%5C_war)[Tubi TV](http://tubitv.com)`tubitv`318409[Tudou](http://www.tudou.com/)`tudou`mfQXfumwiew[Twitch](http://www.twitch.tv)`twitch` - Live Streams`twitchvod` - Archived Videos on Demandtwitchplayspokemon[Videomaten](http://89.160.51.62/recordme/spelain.htm)`videomaten`[Vimeo](http://www.vimeo.com)`vimeo`105035718[Vine](http://vine.co)`vine`h2B7WMtuX2t[Yahoo Screen](http://screen.yahoo.com/)`yahoo`katy-perry-dances-sharks-2015-024409668[YouTube](http://www.youtube.com/)`youtube` - Single Videos`youtubeplaylist` - PlaylistspSsYTj9kCHE[Youku](http://www.youku.com/)`youku`XODc3NDgzMTY4[http://v.youku.com/v\\\_show/id\\\_XODc3NDgzMTY4.html](http://v.youku.com/v%5C_show/id%5C_XODc3NDgzMTY4.html)\#Configuration Settings

VariableDefault ValueDescription$wgEmbedVideoMinWidthInteger - Minimum width of video players. Widths specified below this value will be automatically bounded to it.$wgEmbedVideoMaxWidthInteger - Maximum width of video players. Widths specified above this value will be automatically bounded to it.$wgEmbedVideoDefaultWidthInteger - Globally override the default width of video players. When not set this uses the video service's default width which is typically 640 pixels.$wgFFmpegLocation/usr/bin/ffmpegString - Set the location of the ffmpeg binary.$wgFFprobeLocation/usr/bin/ffprobeString - Set the location of the ffprobe binary.\#Credits

The original version of EmbedVideo was written by Jim R. Wilson. Additional major upgrades made by Andrew Whitworth, Alexia E. Smith, and other contributors.

See CREDITS for details

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 59% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~86 days

Total

2

Last Release

3066d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26b7c13f6509e6d6fdcddbc50c1e8e3d3bbd8dc905f84c83203687549a37dc15?d=identicon)[pyro853](/maintainers/pyro853)

---

Top Contributors

[![Alexia](https://avatars.githubusercontent.com/u/248632?v=4)](https://github.com/Alexia "Alexia (173 commits)")[![Whiteknight](https://avatars.githubusercontent.com/u/122494?v=4)](https://github.com/Whiteknight "Whiteknight (42 commits)")[![applehat](https://avatars.githubusercontent.com/u/262524?v=4)](https://github.com/applehat "applehat (41 commits)")[![Sophivorus](https://avatars.githubusercontent.com/u/3542266?v=4)](https://github.com/Sophivorus "Sophivorus (8 commits)")[![paladox](https://avatars.githubusercontent.com/u/5727000?v=4)](https://github.com/paladox "paladox (6 commits)")[![pierreboutet](https://avatars.githubusercontent.com/u/447459?v=4)](https://github.com/pierreboutet "pierreboutet (5 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (3 commits)")[![hexmode](https://avatars.githubusercontent.com/u/43581?v=4)](https://github.com/hexmode "hexmode (3 commits)")[![townxelliot](https://avatars.githubusercontent.com/u/83619?v=4)](https://github.com/townxelliot "townxelliot (3 commits)")[![wiki-chan-server](https://avatars.githubusercontent.com/u/12554931?v=4)](https://github.com/wiki-chan-server "wiki-chan-server (1 commits)")[![avar](https://avatars.githubusercontent.com/u/45301?v=4)](https://github.com/avar "avar (1 commits)")[![drorsnir](https://avatars.githubusercontent.com/u/3416107?v=4)](https://github.com/drorsnir "drorsnir (1 commits)")[![florolf](https://avatars.githubusercontent.com/u/1835?v=4)](https://github.com/florolf "florolf (1 commits)")[![ibressler](https://avatars.githubusercontent.com/u/638052?v=4)](https://github.com/ibressler "ibressler (1 commits)")[![olivroch](https://avatars.githubusercontent.com/u/6749028?v=4)](https://github.com/olivroch "olivroch (1 commits)")[![Oriwiki](https://avatars.githubusercontent.com/u/12942929?v=4)](https://github.com/Oriwiki "Oriwiki (1 commits)")[![rbowen](https://avatars.githubusercontent.com/u/255808?v=4)](https://github.com/rbowen "rbowen (1 commits)")[![thiagocamposviana](https://avatars.githubusercontent.com/u/353112?v=4)](https://github.com/thiagocamposviana "thiagocamposviana (1 commits)")

### Embed Badge

![Health badge](/badges/wikifab-embed-video/health.svg)

```
[![Health](https://phpackages.com/badges/wikifab-embed-video/health.svg)](https://phpackages.com/packages/wikifab-embed-video)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
