TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.02k stars 3.02k forks source link

Let users download subtitles in other formats #4216

Open JohnRTitor opened 4 years ago

JohnRTitor commented 4 years ago

Describe the feature you want

Currently users can download subtitles/closed captions of YouTube videos only in SRT format. But SRT is a very basic format of subtitles, it doesn't even support styling of the text (meaning no italics, bolding). Not even CEA-608 features. I am requesting a feature to download subtitle/CC of a video in format other than SRT.

Is your feature request related to a problem? Please describe it

Additional context

Currently supported subtitle/CC format by YouTube API documentation to download subtitles in specific formats

How will you/everyone benefit from this feature?

Subtitles in SRT format don't support styling, so users can not see if a text is bolded/italicized. They are missing out the emphasis. There are more advanced subtitles format such as scc, ssa, smi which support styling of the text. I agree that this might not be the most wanted feature. But as an user who usually watches videos in other languages I don't know (with subtitles in English), I think this would be helpful.

opusforlife2 commented 4 years ago

From the API docs in the given link:

Supported values are: sbv – SubViewer subtitle scc – Scenarist Closed Caption format srt – SubRip subtitle ttml – Timed Text Markup Language caption vtt – Web Video Text Tracks caption

JohnRTitor commented 4 years ago

I am okay with any other subtitle format that support styling honestly. Looks like SMI and SSA aren't available for downloading.

opusforlife2 commented 4 years ago

Out of these, WebVTT seems like the most widely supported style-able format.

Edit: Since it is also a draft W3C web standard, I think this will be fairly future-proof.

Stypox commented 4 years ago

Related: #3111

JohnRTitor commented 4 years ago

I think we can use the code from YTSubConverter and let users download SSA subtitles.

@phly95 said in #3111

There's this cool tool https://github.com/arcusmaximus/YTSubConverter that allows you to use ASS/SSA subtitle styles with Youtube videos (The kind anime fansubs use). Their test video https://www.youtube.com/watch?v=il4cAeVzZwI shows how it can be used effectively.

opusforlife2 commented 3 years ago

Related: Invidious offers to download subtitles in the WebVTT format.