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

[question] Since when did youtube-dl include chapters in downloaded files, and how will this change because of the new YouTube timestamp-chapters? #25356

Closed
Bernd-L opened this issue May 22, 2020 · 2 comments
Labels

Comments

@Bernd-L
Copy link

@Bernd-L Bernd-L commented May 22, 2020

I'll provide some background info first, the question itself follows it.

Background

I remember downloading DBOYD - Paradise (Full EP), and I was surprised after seeing chapter markers in VLC when I played back the .mkv file.

image

(See the tiny markings underneath the scrubbing bar; Hovering over the scrubbing bar also shows the chapter name.)

Since when did YouTube have this?

After seeing new stuff in YouTube Web-GUI, I ran a quick web search and found this article describing what's going on:

image

Notice: The video description contains timestamps. I think they were there for quite some time (even before YouTube had this feature - since you've always been able to just click on them).

Yes, I have some custom CSS which displays Nyan Cat, but the important part here is that the scrubbing bar on the YouTube website has gaps (the chapter markers) and next to the videos running time (near the play/pause button) is the chapter name.

My question(s)

What surprised me was that youtube-dl managed to include them in the .mkv file as well, in a time before YouTube has this chapters-feature.

  1. Did youtube-dl just scan and analyze the video description?
  2. Did it parse it on its own from the video desctiption?
  3. How will youtube-dl handle this new YouTube feature?
  4. Did youtube-dl access an (potentially undocumented) API somewhere for this info?
  5. SInce when does YouTube offer this?

The README.md file only offers limited info on "chapters", which is why I'm asking this.


Thanks for reading!

@Bernd-L Bernd-L added the question label May 22, 2020
@Bernd-L
Copy link
Author

@Bernd-L Bernd-L commented May 22, 2020

This might be relevant: #24819

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 22, 2020

  1. Correct.
  2. Correct.
  3. Handle what?
  4. It does not use any API.
  5. Ask Youtube.
@dstftw dstftw closed this May 22, 2020
@ytdl-org ytdl-org locked as off topic and limited conversation to collaborators May 22, 2020
@ytdl-org ytdl-org deleted a comment from Bernd-L May 22, 2020
@ytdl-org ytdl-org deleted a comment from drelephant May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.