Page MenuHomePhabricator

Support WebVTT subtitling
Closed, ResolvedPublic

Event Timeline

TheDJ raised the priority of this task from to Medium.
TheDJ updated the task description. (Show Details)
TheDJ added a project: TimedMediaHandler.

Need to add a VTT parser; currently there's only a SRT parser that produces VTT-compatible objects which we can output in either format. Shouldn't be hard to add, just didn't get to it yet for the MVP. :D

Change 518128 had a related patch set uploaded (by TheDJ; owner: TheDJ):
[mediawiki/extensions/TimedMediaHandler@master] TimedText: VttReader

https://gerrit.wikimedia.org/r/518128

New PHP implementation of VTT parser that we could maybe use. https://github.com/podlove/webvtt-parser

Related issue (afaik): T368298 (e.g. currently videos imported with video2commons don't import subtitles if these are VTTs and they also aren't converted to srt and then imported or added to any maintenance cat)

Change #1314824 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/vendor@master] Add hartman/vtt-vivid library for use in TimedMediaHandler

https://gerrit.wikimedia.org/r/1314824

Change #1314824 merged by jenkins-bot:

[mediawiki/vendor@master] Add hartman/vtt-vivid library for use in TimedMediaHandler

https://gerrit.wikimedia.org/r/1314824

Change #518128 merged by jenkins-bot:

[mediawiki/extensions/TimedMediaHandler@master] TimedText: Add a WebVTT reader backed by the vtt-vivid library

https://gerrit.wikimedia.org/r/518128

Jdforrester-WMF assigned this task to TheDJ.
Jdforrester-WMF subscribed.

This will ship to production this coming week!

Change #1319134 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/TimedMediaHandler@master] Captions: Add formoption for VTT/SRT when creating captions

https://gerrit.wikimedia.org/r/1319134

Change #1319134 merged by jenkins-bot:

[mediawiki/extensions/TimedMediaHandler@master] Captions: Add form option for VTT/SRT when creating captions

https://gerrit.wikimedia.org/r/1319134