{
	"name": "TimedMediaHandler",
	"namemsg": "timedmediahandler-extensionname",
	"version": "0.6.0",
	"author": [
		"Michael Dale",
		"Jan Gerber",
		"Derk-Jan Hartman",
		"Brooke Vibber",
		"Tim Starling",
		"..."
	],
	"url": "https://www.mediawiki.org/wiki/Extension:TimedMediaHandler",
	"descriptionmsg": "timedmediahandler-desc",
	"license-name": "GPL-2.0-or-later",
	"type": "media",
	"requires": {
		"MediaWiki": ">= 1.47.0"
	},
	"APIModules": {
		"timedtext": {
			"class": "MediaWiki\\TimedMediaHandler\\ApiTimedText",
			"services": [
				"LanguageNameUtils",
				"RepoGroup",
				"MainWANObjectCache",
				"WikiPageFactory"
			]
		},
		"transcodereset": {
			"class": "MediaWiki\\TimedMediaHandler\\ApiTranscodeReset",
			"services": [
				"DBLoadBalancerFactory",
				"RepoGroup",
				"TimedMediaHandler.TranscodePresets"
			]
		}
	},
	"APIPropModules": {
		"videoinfo": "MediaWiki\\TimedMediaHandler\\ApiQueryVideoInfo",
		"transcodestatus": {
			"class": "MediaWiki\\TimedMediaHandler\\ApiTranscodeStatus",
			"services": [
				"RepoGroup"
			]
		}
	},
	"AvailableRights": [
		"transcode-reset",
		"transcode-status"
	],
	"callback": "MediaWiki\\TimedMediaHandler\\RegistrationCallback::register",
	"GroupPermissions": {
		"sysop": {
			"transcode-reset": true,
			"transcode-status": true
		},
		"autoconfirmed": {
			"transcode-reset": true,
			"transcode-status": true
		}
	},
	"GrantPermissions": {
		"uploadeditmovefile": {
			"transcode-reset": true
		}
	},
	"LogActionsHandlers": {
		"timedmediahandler/resettranscode": "MediaWiki\\Logging\\LogFormatter"
	},
	"LogTypes": [
		"timedmediahandler"
	],
	"SpecialPages": {
		"OrphanedTimedText": {
			"class": "MediaWiki\\TimedMediaHandler\\SpecialOrphanedTimedText",
			"services": [
				"DBLoadBalancerFactory",
				"LanguageConverterFactory",
				"RepoGroup"
			]
		},
		"TranscodeStatistics": {
			"class": "MediaWiki\\TimedMediaHandler\\SpecialTranscodeStatistics",
			"services": [
				"DBLoadBalancerFactory",
				"MainWANObjectCache",
				"TimedMediaHandler.TranscodePresets"
			]
		}
	},
	"MessagesDirs": {
		"TimedMediaHandler": [
			"i18n",
			"i18n/api"
		]
	},
	"ExtensionMessagesFiles": {
		"TimedMediaHandlerMagic": "i18n/TimedMediaHandler.i18n.magic.php",
		"TimedMediaHandlerAliases": "i18n/TimedMediaHandler.i18n.alias.php",
		"TimedMediaHandlerNamespaces": "i18n/TimedMediaHandler.i18n.namespaces.php"
	},
	"AutoloadClasses": {
		"File_Ogg": "includes/Handlers/OggHandler/File_Ogg/File/Ogg.php",
		"File_Ogg_Bitstream": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Bitstream.php",
		"File_Ogg_Flac": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Flac.php",
		"File_Ogg_Media": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Media.php",
		"File_Ogg_Opus": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Opus.php",
		"File_Ogg_Speex": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Speex.php",
		"File_Ogg_Theora": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Theora.php",
		"File_Ogg_Vorbis": "includes/Handlers/OggHandler/File_Ogg/File/Ogg/Vorbis.php",
		"MigrateTranscodeStates": "maintenance/migrateTranscodeStates.php",
		"TimedMediaMaintenance": "maintenance/TimedMediaMaintenance.php"
	},
	"AutoloadNamespaces": {
		"MediaWiki\\TimedMediaHandler\\": "includes/"
	},
	"TestAutoloadClasses": {
		"MockOggHandler": "tests/phpunit/mocks/MockOggHandler.php"
	},
	"TestAutoloadNamespaces": {
		"MediaWiki\\TimedMediaHandler\\Test\\Integration\\": "tests/phpunit/integration/",
		"MediaWiki\\TimedMediaHandler\\Test\\Unit\\": "tests/phpunit/unit/"
	},
	"Hooks": {
		"ArticleContentOnDiff": "main",
		"ArticleFromTitle": "main",
		"ArticlePurge": "main",
		"BeforePageDisplay": "main",
		"CanonicalNamespaces": "main",
		"FileDeleteComplete": "main",
		"FileUndeleteComplete": "main",
		"FileUpload": "main",
		"ImageOpenShowImageInlineBefore": "main",
		"ImagePageAfterImageLinks": "main",
		"ImagePageFileHistoryLine": "main",
		"LoadExtensionSchemaUpdates": "installer",
		"MediaWikiServices": "init",
		"MediaWikiPerformAction": "iframe",
		"ParserTestGlobals": "main",
		"SkinTemplateNavigation::Universal": "main",
		"TitleMove": "main",
		"wgQueryPages": "main"
	},
	"HookHandlers": {
		"main": {
			"class": "MediaWiki\\TimedMediaHandler\\Hooks",
			"services": [
				"MainConfig",
				"LinkRenderer",
				"RepoGroup",
				"SpecialPageFactory",
				"TitleFactory"
			]
		},
		"iframe": {
			"class": "MediaWiki\\TimedMediaHandler\\TimedMediaIframeOutput",
			"services": [
				"MainConfig",
				"RepoGroup"
			]
		},
		"init": {
			"class": "MediaWiki\\TimedMediaHandler\\TimedMediaHandlerInit"
		},
		"installer": {
			"class": "MediaWiki\\TimedMediaHandler\\InstallerHooks"
		}
	},
	"DomainEventIngresses": [
		{
			"events": [
				"PageDeleted",
				"PageMoved",
				"PageLatestRevisionChanged"
			],
			"class": "MediaWiki\\TimedMediaHandler\\MediaWikiEventIngress\\PageEventIngress",
			"services": [
				"MainConfig",
				"JobQueueGroup",
				"RepoGroup",
				"TimedMediaHandler.TranscodableChecker"
			]
		}
	],
	"config": {
		"WaitTimeForTranscodeReset": {
			"description": "How long you have to wait between transcode resets for non-error transcodes",
			"value": 3600
		},
		"MinimumVideoPlayerSize": {
			"description": "The minimum size for an embed video player (smaller than this size, it uses a pop-up player)",
			"value": 200
		},
		"MediaVideoTypes": {
			"description": "Set the supported ogg codecs for video",
			"value": [
				"Theora",
				"VP8"
			]
		},
		"MediaAudioTypes": {
			"description": "Set the supported ogg codecs for audio",
			"value": [
				"Vorbis",
				"Speex",
				"FLAC",
				"Opus"
			]
		},
		"EnableIframeEmbed": {
			"description": "Support iframe for remote embedding",
			"value": true
		},
		"EnableTranscode": {
			"description": "If transcoding is enabled for this wiki (if disabled, no transcode jobs are added and no transcode status is displayed). Note if remote embedding an asset we will still check if the remote repo has transcoding enabled and associated flavors for that media embed.",
			"value": true
		},
		"TranscodeBackgroundTimeLimit": {
			"description": "The total amount of time a transcoding shell command can take",
			"value": 28800
		},
		"TranscodeBackgroundMemoryLimit": {
			"description": "Maximum amount of virtual memory available to transcoding processes in KiB. 2GiB. ffmpeg mmap resources, so virtual memory needs to be high enough",
			"value": 2097152
		},
		"TranscodeBackgroundSizeLimit": {
			"description": "Maximum file size transcoding processes can create, in KiB. 3GiB.",
			"value": 3145728
		},
		"TranscodeSoftSizeLimit": {
			"description": "Maximum estimated file size for transcodes without admin approval, in KiB. Larger files must be manually re-enqueued by an admin via web or CLI interfaces. 2GiB.",
			"value": 2097152
		},
		"FFmpegThreads": {
			"description": "Number of threads to use in ffmpeg for transcoding",
			"value": 1
		},
		"FFmpegVP9RowMT": {
			"description": "Whether to enable macroblock row multithreading for VP9 (-row-mt 1)\n\nThis allows increasing $wgFFmpegThreads to a larger number for VP9  transcodes; without it encoding will be limited to 4 threads for HD, or less for low resolution.\n\nThis requires libvpx 1.7 and a matching build of ffmpeg 3.3 or higher or it will fail with an unrecognized option error.",
			"value": false
		},
		"FFmpegLocation": {
			"description": "Location of the ffmpeg binary (used to encode WebM and for thumbnails)",
			"value": "/usr/bin/ffmpeg"
		},
		"TimedTextNS": {
			"description": "The NS for TimedText (registered on MediaWiki.org) https://www.mediawiki.org/wiki/Extension_namespace_registration Note that Wikimedia Commons pre-dates TimedMediaHandler, and sets this to 102.",
			"value": 710
		},
		"TimedTextForeignNamespaces": {
			"description": "Set TimedText namespace for ForeignDBViaLBRepo on a per wikiID basis like `$wgTimedTextForeignNamespaces = [ 'commonswiki' => 102 ];`.",
			"value": []
		},
		"EnabledTranscodeSet": {
			"description": "Enabled video transcodes.\n\nSee TranscodePresets.php for exact definitions. Broadly speaking: 'webm' refers to V8/Vorbis WebM, and 'v9.webm' refers to VP9/Opus WebM.\n\n- If set to empty array, no derivatives will be created\n- These transcodes are in addition to the source file.\n- Transcodes with higher width than the source are skipped.\n- Regardless of source size at least one WebM and Ogg source will be created from the $wgEnabledTranscodeSet.\n- Transcode jobs are added to the MediaWiki JobQueue the first time the video is displayed.\n- Transcode keys should be ordered from min to max.",
			"value": {
				"160p.webm": false,
				"240p.webm": false,
				"360p.webm": false,
				"480p.webm": false,
				"720p.webm": false,
				"1080p.webm": false,
				"1440p.webm": false,
				"2160p.webm": false,
				"120p.vp9.webm": false,
				"180p.vp9.webm": false,
				"240p.vp9.webm": true,
				"360p.vp9.webm": false,
				"480p.vp9.webm": true,
				"720p.vp9.webm": false,
				"1080p.vp9.webm": true,
				"1440p.vp9.webm": false,
				"2160p.vp9.webm": false,
				"160p.mp4": false,
				"240p.mp4": false,
				"320p.mp4": false,
				"360p.mp4": false,
				"480p.mp4": false,
				"720p.mp4": false,
				"1080p.mp4": false,
				"1440p.mp4": false,
				"2160p.mp4": false,
				"144p.mjpeg.mov": false,
				"360p.mpeg4.mov": false,
				"stereo.audio.mp3": false,
				"stereo.audio.opus.mp4": false,
				"144p.video.mjpeg.mov": false,
				"240p.video.vp9.mp4": false,
				"360p.video.vp9.mp4": false,
				"480p.video.vp9.mp4": false,
				"720p.video.vp9.mp4": false,
				"1080p.video.vp9.mp4": false,
				"1440p.video.vp9.mp4": false,
				"2160p.video.vp9.mp4": false
			}
		},
		"EnabledAudioTranscodeSet": {
			"description": "Default enabled audio transcodes\n\n If set to empty array, no derivatives will be created\n- These transcodes are *in addition to* the source file.\n- Derivative should be listed min to max\n\nllowed values:\n* ogg – Ogg Vorbis\n* opus – Note that Opus support must be available in ffmpeg\n* mp3 – Note that fmpeg needs libmp3lame support\n* m4a – Note that ffmpeg needs libvo_aacenc support",
			"value": {
				"ogg": true,
				"opus": false,
				"mp3": true,
				"m4a": false
			}
		},
		"TmhEnableMp4Uploads": {
			"description": "If MP4 source assets can be ingested",
			"value": false
		},
		"TmhFileExtensions": {
			"description": "List of extensions handled by Timed Media Handler since its referenced in a few places. You should not modify this variable.",
			"value": [
				"ogg",
				"ogv",
				"oga",
				"flac",
				"opus",
				"wav",
				"webm",
				"mp4",
				"mp3",
				"midi",
				"mid",
				"mpg",
				"mpeg"
			]
		},
		"TmhPriorityResolutionThreshold": {
			"description": "Transcode resolutions higher than this will run in the low-priority queue. This'll give us SD transcodes as fast as possible, then do HD later.",
			"value": 480
		},
		"TmhPriorityLengthThreshold": {
			"description": "Transcodes of files longer than this (seconds) will run in the low-priority queue; defaults to 15 minutes. This'll mean long videos won't flood the high-priority queue.",
			"value": 900
		},
		"ParserTestMediaHandlers": {
			"description": "MockOggHandler::class",
			"value": {
				"application/ogg": "MockOggHandler",
				"audio/ogg": "MockOggHandler",
				"video/ogg": "MockOggHandler"
			}
		},
		"TmhFluidsynthLocation": {
			"description": "Path of a Fluidsynth executable for MIDI conversion to audio formats",
			"value": null
		},
		"TmhSoundfontLocation": {
			"description": "Path of a soundfont to use for MIDI-converted audio",
			"value": null
		}
	},
	"ForeignResourcesDir": "resources/lib",
	"ResourceFileModulePaths": {
		"localBasePath": "resources",
		"remoteExtPath": "TimedMediaHandler/resources"
	},
	"ResourceModules": {
		"ext.tmh.video-js": {
			"localBasePath": "resources/lib/video.js",
			"remoteExtPath": "TimedMediaHandler/resources/lib/video.js",
			"scripts": "alt/video.core.min.js",
			"styles": "video-js.css",
			"noflip": true,
			"languageScripts": {
				"ar": "lang/ar.js",
				"az": "lang/az.js",
				"ba": "lang/ba.js",
				"bn": "lang/bn.js",
				"bg": "lang/bg.js",
				"ca": "lang/ca.js",
				"cs": "lang/cs.js",
				"cy": "lang/cy.js",
				"da": "lang/da.js",
				"de": "lang/de.js",
				"el": "lang/el.js",
				"en": "lang/en.js",
				"en-GB": "lang/en-GB.js",
				"es": "lang/es.js",
				"et": "lang/et.js",
				"eu": "lang/eu.js",
				"fa": "lang/fa.js",
				"fi": "lang/fi.js",
				"fr": "lang/fr.js",
				"gd": "lang/gd.js",
				"gl": "lang/gl.js",
				"he": "lang/he.js",
				"hi": "lang/hi.js",
				"hr": "lang/hr.js",
				"hu": "lang/hu.js",
				"it": "lang/it.js",
				"ja": "lang/ja.js",
				"ko": "lang/ko.js",
				"lv": "lang/lv.js",
				"mr": "lang/mr.js",
				"nb": "lang/nb.js",
				"nl": "lang/nl.js",
				"nn": "lang/nn.js",
				"np": "lang/np.js",
				"oc": "lang/oc.js",
				"pl": "lang/pl.js",
				"pt": "lang/pt-PT.js",
				"pt-br": "lang/pt-BR.js",
				"ro": "lang/ro.js",
				"ru": "lang/ru.js",
				"sk": "lang/sk.js",
				"sl": "lang/sl.js",
				"sr": "lang/sr.js",
				"sv": "lang/sv.js",
				"te": "lang/te.js",
				"th": "lang/th.js",
				"tr": "lang/tr.js",
				"uk": "lang/uk.js",
				"vi": "lang/vi.js",
				"zh-cn": "lang/zh-CN.js",
				"zh-hans": "lang/zh-Hans.js",
				"zh-hant": "lang/zh-Hant.js",
				"zh-tw": "lang/zh-TW.js"
			}
		},
		"ext.tmh.player": {
			"packageFiles": [
				"ext.tmh.player.js",
				"ext.tmh.player.element.js"
			],
			"dependencies": [
				"ext.tmh.player.styles",
				"mediawiki.Title"
			],
			"messages": [
				"timedmedia-play-audio",
				"timedmedia-play-video",
				"timedmedia-subtitles-available",
				"timedmedia-duration",
				"timedmedia-duration-hms",
				"timedmedia-duration-ms",
				"timedmedia-duration-s"
			]
		},
		"ext.tmh.player.dialog": {
			"packageFiles": [
				"ext.tmh.player.dialog.loader.js",
				"ext.tmh.player.dialog.js"
			],
			"styles": [
				"ext.tmh.player.dialog.less"
			],
			"dependencies": [
				"oojs-ui-core",
				"oojs-ui-windows",
				"oojs-ui.styles.icons-content",
				"oojs-ui.styles.icons-editing-advanced",
				"ext.tmh.player.inline"
			],
			"messages": [
				"timedmedia-dialog-close"
			]
		},
		"ext.tmh.player.inline": {
			"packageFiles": [
				"ext.tmh.player.inline.js",
				"mw-info-button/mw-info-button-plugin.js",
				"mw-info-button/mw-info-button.js",
				"videojs-resolution-switcher/videojs-resolution-switcher.js",
				"videojs-resolution-switcher/ResolutionMenuItem.js",
				"videojs-resolution-switcher/ResolutionMenuButton.js",
				"mw-subtitles-button/mw-subtitles-create.js",
				"mw-subtitles-button/mw-subtitles-button.js",
				"mw-endcard/mw-endcard.js",
				"mw-notifications/mw-notifications.js",
				"mw-hotkeys/mw-hotkeys.js"
			],
			"styles": [
				"ext.tmh.player.inline.styles.less",
				"mw-info-button/mw-info-button.css",
				"videojs-resolution-switcher/videojs-resolution-switcher.css",
				"mw-endcard/mw-endcard.less",
				"mw-notifications/mw-notifications.less",
				"ext.tmh.player.inline.styles.less"
			],
			"dependencies": [
				"ext.tmh.video-js",
				"mediawiki.api",
				"mediawiki.Title",
				"oojs-ui-core",
				"oojs-ui.styles.icons-content",
				"oojs-ui.styles.icons-editing-advanced"
			],
			"messages": [
				"timedmedia-resolution-120",
				"timedmedia-resolution-144",
				"timedmedia-resolution-160",
				"timedmedia-resolution-180",
				"timedmedia-resolution-240",
				"timedmedia-resolution-360",
				"timedmedia-resolution-480",
				"timedmedia-resolution-720",
				"timedmedia-resolution-1080",
				"timedmedia-resolution-1440",
				"timedmedia-resolution-2160",
				"timedmedia-source-original",
				"videojs-more-information",
				"videojs-quality",
				"videojs-subtitles-create",
				"videojs-captions-create",
				"videojs-endcard-share-title",
				"videojs-endcard-copy-link",
				"videojs-endcard-share",
				"videojs-endcard-share-not-possible",
				"videojs-endcard-embed-title",
				"videojs-endcard-embed-copy",
				"videojs-endcard-copied",
				"videojs-rate-change",
				"videojs-a11y-rate-change",
				"videojs-seek-forward",
				"videojs-a11y-seek-forward",
				"videojs-seek-backward",
				"videojs-a11y-seek-backward",
				"videojs-step-forward",
				"videojs-a11y-step-forward",
				"videojs-step-backward",
				"videojs-a11y-step-backward",
				"videojs-a11y-pause",
				"videojs-a11y-ended",
				"videojs-a11y-muted"
			]
		},
		"ext.tmh.player.styles": {
			"styles": "ext.tmh.player.styles.less"
		},
		"ext.tmh.transcodetable": {
			"scripts": "transcode-table/transcode-table.js",
			"styles": "transcode-table/transcode-table.less",
			"dependencies": [
				"mediawiki.api",
				"oojs-ui"
			],
			"messages": [
				"timedmedia-reset-button-cancel",
				"timedmedia-reset-button-dismiss",
				"timedmedia-reset-button-reset",
				"timedmedia-reset-error",
				"timedmedia-reset",
				"timedmedia-reset-areyousure",
				"timedmedia-reset-explanation",
				"timedmedia-error-details",
				"timedmedia-error-dismiss"
			]
		},
		"ext.tmh.timedtextpage.styles": {
			"styles": "ext.tmh.timedtextpage.styles.less"
		},
		"embedPlayerIframeStyle": {
			"styles": "embedPlayerIframe.css"
		}
	},
	"MediaHandlers": {
		"application/ogg": "MediaWiki\\TimedMediaHandler\\Handlers\\OggHandler\\OggHandler",
		"audio/ogg": "MediaWiki\\TimedMediaHandler\\Handlers\\OggHandler\\OggHandler",
		"video/ogg": "MediaWiki\\TimedMediaHandler\\Handlers\\OggHandler\\OggHandler",
		"audio/flac": "MediaWiki\\TimedMediaHandler\\Handlers\\FLACHandler\\FLACHandler",
		"audio/midi": "MediaWiki\\TimedMediaHandler\\Handlers\\MIDIHandler\\MIDIHandler",
		"audio/mp4": "MediaWiki\\TimedMediaHandler\\Handlers\\MP4Handler\\MP4Handler",
		"audio/mpeg": "MediaWiki\\TimedMediaHandler\\Handlers\\MP3Handler\\MP3Handler",
		"audio/wav": "MediaWiki\\TimedMediaHandler\\Handlers\\WAVHandler\\WAVHandler",
		"audio/webm": "MediaWiki\\TimedMediaHandler\\Handlers\\WebMHandler\\WebMHandler",
		"audio/x-flac": "MediaWiki\\TimedMediaHandler\\Handlers\\FLACHandler\\FLACHandler",
		"video/mp4": "MediaWiki\\TimedMediaHandler\\Handlers\\MP4Handler\\MP4Handler",
		"video/mpeg": "MediaWiki\\TimedMediaHandler\\Handlers\\MPEGHandler\\MPEGHandler",
		"video/webm": "MediaWiki\\TimedMediaHandler\\Handlers\\WebMHandler\\WebMHandler"
	},
	"ServiceWiringFiles": [
		"includes/ServiceWiring.php"
	],
	"JobClasses": {
		"webVideoTranscode": {
			"class": "MediaWiki\\TimedMediaHandler\\WebVideoTranscode\\WebVideoTranscodeJob",
			"services": [
				"ShellCommandFactory",
				"MainConfig",
				"DBLoadBalancerFactory",
				"RepoGroup",
				"TimedMediaHandler.TranscodePresets"
			]
		},
		"webVideoTranscodePrioritized": {
			"class": "MediaWiki\\TimedMediaHandler\\WebVideoTranscode\\WebVideoTranscodeJob",
			"services": [
				"ShellCommandFactory",
				"MainConfig",
				"DBLoadBalancerFactory",
				"RepoGroup",
				"TimedMediaHandler.TranscodePresets"
			]
		}
	},
	"load_composer_autoloader": true,
	"manifest_version": 2
}
