Home:ALL Converter>MediaRecorder, captions, and subtitles

MediaRecorder, captions, and subtitles

Ask Time:2016-09-15T01:41:47         Author:Brad

Json Formatter

Is it possible to use MediaRecorder to mux a WebVTT track (or any other kind of track for captions and subtitles) into the output stream along with the audio and video tracks?

WebM supports a WebVTT track. There is a W3C doc from 2012 that briefly mentions caption tracks as a possibility.

Is there support for in-band captioning today? If so, how do I use it?

Author:Brad,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39496599/mediarecorder-captions-and-subtitles
Kaiido :

Since the TextTrack is added to the videoElement, your best bet would have been with the videoElement.captureStream() method, but it currently doesn't incorporate the TextTracks.\n\nSpecs about Media Capture from DOM Elements only states that,\n\n\n Both MediaStream and HTMLMediaElement expose the concept of a \"track\". Since there is no common type used for HTMLMediaElement, this document uses the term track to refer to either VideoTrack or AudioTrack. \n\n\nSo we can just say that it doesn't speak about TextTracks...\n\nMediaStream.addTrack can only handle MediaStreamTracks so it's a no-go too.\n\nThis unfortunately leads to a nope. \n(At least currently - specs may add it in the future, and I guess you can open an issue here about it).\n\nA small playground",
2016-09-22T04:38:48
yy