youtube-dl icon indicating copy to clipboard operation
youtube-dl copied to clipboard

Support writing youtube video chapters as a CUE file

Open jevring opened this issue 3 years ago • 5 comments

Checklist

  • [X] I'm reporting a feature request
  • [X] I've verified that I'm running youtube-dl version 2021.04.17
  • [X] I've searched the bugtracker for similar feature requests including closed ones

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/

jevring avatar Apr 25 '21 15:04 jevring

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

we-taper avatar Jun 15 '21 11:06 we-taper

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. =)

jevring avatar Oct 25 '21 20:10 jevring

@jevring how it support that? not found in help

alexeik avatar Aug 08 '22 06:08 alexeik

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

jevring avatar Aug 15 '22 19:08 jevring

thanks)

alexeik avatar Aug 15 '22 19:08 alexeik