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 [$kaltura reproductor HTML5 Kaltura] y un reproductor VideoJS experimental. Admite subtítulos y leyendas (también conocido como 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 la subida de audio y vídeo de HTML5, varios perfiles de transcodificación para transmitir el contenido, análisis sintáctico de metadatos para archivos Ogg y WebM, y la integración con el sistema de cola de trabajo de MediaWiki para programar tareas de transcodificación. It includes the Kaltura HTML5 Player and an experimental VideoJS Player. There is support for subtitles and captions (aka Timed Text) and real time stream switching between multiple WebM and other derivatives and many other features. TMH server side support includes options for uploading HTML5 audio and video, multiple transcode profiles to deliver content, playback of MIDI files, metadata parsing for Ogg and WebM videos, and integration with MediaWiki's jobQueue system for scheduling transcoding jobs.

Resumen de funcionalidades
Véase Commons:Commons:TimedText.

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.


 * [[File:Midi.mid]]
 * Generate digital audio from the music instructions in the MIDI file, and show the embedded audio player to play this audio.


 * 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. One can also use HH:MM:SS, e.g. 1:02:22 will be 1 hour, 2 minutes, and 22 seconds into the video.


 * 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. One can also use HH:MM:SS, e.g. 1:02:22 will be 1 hour, 2 minutes, and 22 seconds into the video.


 * Deprecated
 * The syntax words noicon and noplayer are deprecated and do not function. The keyword disablecontrols will likely be deprecated. (See Task 135537) It takes a comma-separated list of any of 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
You will want a recent version of ffmpeg in order to support encoding to WebM ( with the latest version of VP8). j^ supplies up-to-date static builds of ffmpeg with WebM support for major OSs at firefogg.org/nightly/. See the sections below for installation instructions on older versions of MediaWiki.

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

Comparación de opciones de codificación de archivos multimedia en Wikipedia
See for deployment details on planned Wikimedia update from VP8 to VP9.

Sorted by bandwidth tier (grayed items are not currently enabled):

Detailed options:

Configuración
Here are some configuration variables which may be useful:

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:

If running this command causes it to hang forever, you may need to set  in LocalSettings.php. Véase

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. You will need to install ffmpeg.

Instalación mínima en Ubuntu 12.04
Plus, add this to your (tested for Devuan ASCII only):

On older versions of MediaWiki (1.29–1.31)

 * Version 1.31 was breaking for system administrators. The extension now requires, dropped the dependency for the  extension, and the WebVideoTranscode PHP constants are now expressed as string values instead.
 * Note that, although was included in TimedMediaHandler for MediaWiki 1.31 and later, for MediaWiki versions prior to that you will need to download it from the archive page.

In LocalSettings.php, load the extension with:

Prior to 1.31, $wgEnabledTranscodeSet is set with:

Troubleshooting

 * "ffmpeg – failed to map segment from shared object"
 * You need to increase the allowed memory in.


 * "Class 'getID3' not found"
 * You need to install the extension's PHP dependencies using Composer, see the Installation section above.