Extension:TimedMediaHandler/ja

TimedMediaHandler拡張機能を使用すると、画像ファイルと同じ構文を使用して、ウィキページにオーディオおよびビデオファイルを表示できます. それには HTML5 プレーヤーと実験的な VideoJS プレーヤーが含まれています. 字幕やキャプション (別名 Timed Text) や複数の WebM と他の派生物間のリアルタイム ストリームの切り替えなどの機能があります. TMH サーバー サイドのサポートには、HTML5 の音声と動画、複数のトランスコード プロファイルをアップロードするオプション、Ogg 動画と WebM 動画のためのメタデータ構文解析、トランスコード ジョブのスケジューリングのための MediaWiki の jobQueue システムが組み込まれています.

機能の概要
Commons:Commons:Timed Textページを参照してください.

構文の概要
In addition to the image embed syntax, Timed Media Handler supports:


 * Video.ogv
 * Display a video at its nominal size. Displays a still image from the midpoint with a play button to start an embedded player.


 * Audio.oga
 * サウンドファイルのプレースホルダを表示し、埋め込みプレーヤーを開始するための再生ボタンを表示します.


 * [[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
 * Show a video in a floating thumbnail box


 * Show a video embedded in an image gallery (each clip will popup a dialog for the full player)
 * Show a video embedded in an image gallery (each clip will popup a dialog for the full player)


 * Video.ogg
 * Use a frame from 1 minute 25 seconds into the video as the placeholder image. A single number is taken as an offset in seconds. 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.


 * 廃止予定
 * 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

サポートされるブラウザー


プレーヤーは最新のブラウザで動作し、IE9以降をサポートしています（MediaWikiのサポートマトリックスで説明されているモダンブラウザ）. 特にiOSでは、モバイルサポートには問題があります.

2015年8月現在、TimedMediaHandlerには、Safari、Internet Explorer 10/11、およびMicrosoft Edgeブラウザで動作するOggオーディオ/ビデオ用のJavaScript互換シムが含まれています.

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.

インストール
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.

ウィキペディアのメディアエンコードオプションの比較
See for deployment details on planned Wikimedia update from VP8 to VP9.

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

詳細なオプション:

設定
以下は有用な設定用の変数です:

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.

トランスコードジョブの実行
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. を参照してください.

Encoding nodes
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.

DebianおよびUbuntuでの最小限のインストール
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.