ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.41k stars 10.04k forks source link

Support writing youtube video chapters as a CUE file #28863

Open jevring opened 3 years ago

jevring commented 3 years ago

Checklist

Description

I saw that youtube-dl supports --write-json-info, which includes the chapters of a video. It would be nice if we could get this as a CUE file format as another option. ~Winamp supports this file type as an automatic playlist generator, in a way. Poweramp does too.~ I was mistaken. Poweramp does this by default. Winamp requires a plugin.

I don't expect youtube-dl to split the resulting file for me. I just expect a CUE file to be a possible output format for metadata, like --write-json-info. Perhaps with a flag like --write-chapters-as-CUE-file or something.

The workaround is that I can take the JSON file and process it into what I want, but I would prefer it if youtube-dl could do this for me.

I wrote an application that does this that could serve as inspiration (or workaround if this issue is closed): https://bitbucket.org/jevring/youtube-dl-chapters-to-cue/src/master/

we-taper commented 3 years ago

Ported @jevring script to python, with slight modifications, here.

jevring commented 3 years ago

It turns out that https://github.com/yt-dlp/yt-dlp, which is a fok of youtube-dl, supports this out of the box. No need for my little app. =)

alexeik commented 2 years ago

@jevring how it support that? not found in help

jevring commented 2 years ago

@alexeik you know, I have no idea why I wrote that. I can't find it now either. =(

alexeik commented 2 years ago

thanks)