(Go: >> BACK << -|- >> HOME <<)

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in how Youtube handles automatic captions #13461

Open
AlifianK opened this issue Feb 11, 2024 · 3 comments
Open

Changes in how Youtube handles automatic captions #13461

AlifianK opened this issue Feb 11, 2024 · 3 comments

Comments

@AlifianK
Copy link

Youtube used to lump automatic captions together with provided subtitles. Now it's under the automatic_captions in the video's json metadata, making mpv unable to retrieve the auto captions.

  • mpv version v0.37.0-271-gf5c4f0b0

https://0x0.st/HdeQ.json

@christoph-heinrich
Copy link
Contributor

I don't think we should automatically add all automatic captions as subtitle tracks, but if you want everything to be listed, you could use this in your config.

ytdl-raw-options-append=write-subs=
ytdl-raw-options-append=write-auto-subs=
ytdl-raw-options-append=sub-langs=.*

@AlifianK
Copy link
Author

I'm not suggesting we should include all of them but can't the correct auto captions be inferred from slang config? For example, slang = 'eng,en,enUS' will load the English auto caption? I'm just wondering since mpv used to load auto captions before, if this is the intended behavior from now on then I'll close the issue.

@christoph-heinrich
Copy link
Contributor
christoph-heinrich commented Feb 11, 2024

We could pass sub-langs with whatever was set in slang, unless explicitly set otherwise.
Personally I don't really care either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants