Extension:TimedMediaHandler/es

La extensión TimedMediaHandler permite mostrar archivos de audio y vídeo en las páginas de un wiki mediante la misma sintaxis que se usa para añadir imágenes. Incluye el reproductor HTML5 Kaltura, que admite texto cronometrado, conmutación en tiempo real del formato de transmisión (entre WebM y Ogg), entre muchas otras funcionalidades. Las funciones por parte del servidor ofrecidas por TMH incluyen varios perfiles de transcodificación; análisis sintáctico de metadatos en PHP, con PEAR para archivos Ogg/OggHandler y con [$getid3 getID3] para archivos WebM; e integración con el sistema jobQueue de MediaWiki para programar tareas de transcodificación.

Resumen de funcionalidades
Véanse las páginas Commons:Commons:TimedText y Multimedia beta.

Sinopsis de sintaxis
Además de la sintaxis de incrustación de imágenes, Timed Media Handler admite:


 * Video.ogv
 * Mostrar un vídeo en su dimensión nominal. Muestra un fotograma del punto medio de su longitud con un botón de reproducción que ejecuta un reproductor incrustado.


 * Audio.oga
 * Mostrar un marcador de posición para un archivo de sonido, con un botón de reproducción que ejecuta un reproductor incrustado.


 * Video.ogv
 * Mostrar un vídeo en un cuadro de miniatura flotante


 * Mostrar un vídeo incrustado en una galería de imágenes (al pulsar en un clip se creará un cuadro emergente con el reproductor completo)
 * Mostrar un vídeo incrustado en una galería de imágenes (al pulsar en un clip se creará un cuadro emergente con el reproductor completo)


 * Video.ogg
 * Utilizar un fotograma correspondiente a 1 minuto y 25 segundos como la imagen del marcador de posición. Un número entero se toma como la cantidad de desfase en segundos.


 * Video.ogg
 * Temporal media fragments Displays a video clip starting at 1 minute 25 seconds into the video. A single number is taken as an offset in seconds. You can also include an end time of the form  Which would result in a clip of 5 seconds playing from 1:25 to 1:30. If thumbtime is not provided, the start time will be used for the displayed thumbnail.


 * Deprecated
 * The syntax words noicon and noplayer are deprecated and do not function. The keyword disablecontrols will likely be deprecated soon. It takes the following values: options, timedText, fullscreen

Compatibilidad con clientes


The player works on most modern browsers and supports IE9 and later (The modern browsers as described in MediaWiki's support matrix). Mobile support is spotty, especially on iOS.

As of August 2015, TimedMediaHandler includes a JavaScript compatibility shim for Ogg audio/video that works in Safari, Internet Explorer 10/11, and Microsoft Edge browsers.

Third-party users of MediaWiki may also wish to manually enable MP4 H.264/AAC support for native video and audio playback in Safari/IE/Edge, but when using these formats you may need a patent license from MPEG-LA for internet broadcasting.

Instalación
Also see the for detailed install instructions.

You will want a recent version of ffmpeg in order to support encoding to WebM ( with the latest version of VP8) and a copy of ffmpeg2theora to encode ogg videos. j^ supplies up-to-date static builds of ffmpeg with WebM support and of ffmpeg2theora for major OSs at firefogg.org/nightly/

The extension will automatically add supported file types (except mp4) to $wgFileExtensions, so you do not need to manually add video file types.

Comparación de opciones de codificación de archivos multimedia en Wikipedia
Sorted by bandwidth tier (grayed items are not currently enabled):

Detailed options:

Configuración
Here are the configuration variables and their default settings:

For transcoding, make sure you have $wgMaxShellMemory, $wgMaxShellTime, $wgMaxShellFileSize are large enough to allow encoding jobs to run and save output. Default values are most likely too low.

Ejecución de tareas de transcodificación
Because transcode jobs are resource intensive they will not run as part of normal job queue ( see bug 29336 ) Instead they must be requested by the --type argument:

Nodos de codificación
To be able to transcode many videos you might want to run multiple encoding nodes that connect to the master db and access your file store directly. If you are using ubuntu lucid (10.04) you should add this ppa and install php5-cli php-pear imagemagick ffmpeg ffmpeg2theora.

Instalación mínima en Ubuntu 12.04
add-apt-repository ppa:j/timedmediahandler apt-get install php5-cli php-pear imagemagick ffmpeg ffmpeg2theora

In Localsettings.php, add the path for PEAR !

Hoja de ruta

 * Add api module for listing of derivatives ( done in TimedMediaHandler )
 * Add support for transcoding from arbitrary format uploads.
 * Improve transcoding tracking with database tables for registering failed transcodes, time taken per transcode, allow users to flag files as not playable or a visually broken transcodes.
 * Improve mobile support for uploading and playback ( via native aps if the browser html5 support does not include WebM )
 * Add support for WebM flattening of edited sequences
 * Add support for mp3 uploads (T115170)
 * Audio transcoding to mp3 and ogg (T165717)
 * Add support for IE9 video tag WebM components
 * Add support for 1080p videos
 * Add support for 4k videos
 * Add support for 8k videos
 * Upgrade to 2.x branch. (On hold. Planning on switching to video.js.)
 * Change Kaultra player to Video.js as our main video player.

Notas
These notes about the status of TimedMediaHandler were shared by Jan Gerber at the end of his consulting agreement for WMF on 27 September, 2013:

Since you asked in the last meeting to write up an overview of the current state of TimedMediaHandler, here we go:


 * videoscalers:
 * setup like jobrunners, but only processing video transcode jobs (configuration of jobs/memory/threads in puppet and wikimedia-config)


 * imagescalers:
 * extract frames from videos, using avconv for all videos reading videos via http from swift backend


 * proxy caches:
 * must support HTTP 206 Range Requests for video urls (currently requires custom code that is managed in puppet)


 * custom packages for video transcoding (apt.wikimedia.org):
 * ffmpeg2theora (new upstream version to reduce memory by only using one thread)
 * libav (ubuntu version with patch to fix memory leak in ogg decoder)
 * libvpx (new upstream version fixing various issues and quality improvements)


 * custom packages for image scaling (apt.wikimedia.org):
 * vips (new upstream version addressing various performance issues)


 * TimedMediaHandler:
 * Upstream coded included in TMH:
 * mwEmbed (https://github.com/kaltura/mwEmbed) has local changes needs to be merged during next update
 * PEAR File_Ogg (http://pear.php.net/package/File_Ogg) has local changes was part of OggHandler, Tim is upstream maintainer
 * getID3 (http://getid3.org) has small local changes but merged upstream


 * Statistics and monitoring:
 * Transcoding queue and errors:
 * https://commons.wikimedia.org/wiki/Special:TimedMediaHandler
 * https://commons.wikimedia.org/wiki/User:Dispenser/sandbox


 * Ganglia for video scalers:
 * http://ganglia.wikimedia.org/latest/?r=hour&cs=&ce=&s=by+name&c=Video%2520scalers%2520eqiad&tab=m&vn=

Actualización de agosto de 2015
Brion and TheDJ are starting up some new maintenance on TImedMediaHandler:

Done:
 * fixed some regressions in transcode handling
 * added /ogv.js JavaScript compatibility shim for Safari 6.1+, IE 10/11, and Edge
 * increasing Ogg transcode quality (increased bandwidth)
 * support subtitles in ogv.js
 * finish killing broken Cortado Java compatibility shim
 * retooling TMH's ResourceLoader modules for better compatibility
 * fix ogv.js issues
 * missing volume control

Todo 'small':
 * fix more transcode issues

Todo 'medium':
 * get transcoding from VP9/Opus working on Wikimedia servers...
 * transcoding to VP9/Opus WebM with decreased bandwidth
 * add Ogg skeleton to ogg audio transcodes for better seeking
 * integrate lightweight video player into Extension:MobileFrontend
 * rework serving Timed Text

Todo 'large':
 * replace Kaltura player with VideoJS
 * integrate video player into Extension:MultimediaViewer
 * integrate audio/video into Extension:VisualEditor
 * DASH or DASH-like adaptive streaming

Todo 'long-term':
 * get VP9 working fast enough on ogv.js to replace Ogg Theora transcodes

Véase también

 * ReviewQueue
 * Plan de puestas a prueba