mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.95k stars 2.88k forks source link

Would it be possible to add support for .webvtt subtitles? #10089

Closed githubdotcomuser closed 2 years ago

githubdotcomuser commented 2 years ago

Before requesting a new feature make sure it hasn't been requested yet. https://github.com/mpv-player/mpv/labels/meta%3Afeature-request

Expected behavior of the wanted feature

I was streaming this file with mpv and despite the fact that it included three different subtitle tracks, mpv didn't display any of them when selected. I learned that the included subtitles were in the .webvtt format and mpv doesn't support it. I would really appreciate if support for .webvtt subtitle format is added to mpv.

Alternative behavior of the wanted feature

Log file

https://www.toptal.com/developers/hastebin/raw/okuwebixoz

Akemi commented 2 years ago

duplicate of or related to #10035 #10015 #7214

this is something that should be requested from ffmpeg. we use their subtitle parser and decoder.

githubdotcomuser commented 2 years ago

duplicate of or related to #10035 #10015 #7214

this is something that should be requested from ffmpeg. we use their subtitle parser and decoder.

Thank you for your response! Would you happen to know where I could request support for .webvtt subtitle format from ffmpeg?

dyphire commented 2 years ago

This is not even a issue of ffmpeg, it's just that the subtitles use the wrong file extension. According to the W3C spec, the file extension of webvtt should be .vtt.

https://www.w3.org/TR/webvtt1/#iana-text-vtt

So I don't think you'll get a fix from ffmpeg. The correct approach is to try to fix all wrong files by yourself.

githubdotcomuser commented 2 years ago

This is not even a issue of ffmpeg, it's just that the subtitles use the wrong file extension. According to the W3C spec, the file extension of webvtt should be .vtt.

https://www.w3.org/TR/webvtt1/#iana-text-vtt

So I don't think you'll get a fix from ffmpeg. The correct approach is to try to fix all wrong files by yourself.

Oh, is that so? Thanks anyway.