Open loutoo opened 1 year ago
Hi,
Thank you for sharing the media file. I tested it on the Exoplayer demo app and observed that the subtitles were successfully displayed.
Please let me know any other details you might have to reproduce this issue.
I am sorry. I send the wrong video. The mkv is transcoded that I use for testing. I resent the video in question.
Hi @loutoo,
After analyzing the webm file you provided, it appears that there are three available tracks:
The third track in this file contains the WEBVTT subtitle track. The codec ID assigned to this track is D_WEBVTT/SUBTITLES and aligns with http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm (refer to Storing WebVTT data in a WebM Track).
At present, MatroskaExtractor only supports WEBVTT for .mkv files, with a codec ID defined as S_TEXT/WEBVTT. As a result, Exoplayer does not recognize this track since we don't support this codec.
Quoting from https://www.matroska.org/technical/subtitles.html:
Storage of WebVTT in Matroska vs. WebM Note: the storage of WebVTT in Matroska is not the same as the design document for storage of WebVTT in WebM. There are several reasons for this including but not limited to: the WebM document is old (from February 2012) and was based on an earlier draft of WebVTT and ignores several parts that were added to WebVTT later; WebM does still not support subtitles at all; the proposal suggests splitting the information across multiple tracks making demuxer’s and remuxer’s life very difficult.
I'm going to mark this issue as enhancement and assigning it to @icbaker who is the best person to look into this.
Hi, I have a webm file. It has an subtitle stream by webvtt format. But Exoplayer can't find it.
THE VIDEO INFO:
THE EXOPLAYER LOG:
Exoplayer Version: 2.18.3 Devices: All
Thanks!