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

Consider creating an edit decision list for youtube videos from the SponsorBlock database #26084

Open
db48x opened this issue Jul 22, 2020 · 0 comments

Comments

@db48x
Copy link

@db48x db48x commented Jul 22, 2020

Checklist

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

Description

SponsorBlock is a nice browser extension which allows viewers to crowdsource information about the different content segments in the videos they watch. Segments can be categorized as advertisements, intros or outros, self promotions, etc. Segment categories are annotated on the video timeline and advertisements are automatically skipped.

Youtube-dl could download this information from SponsorBlock's API and then save the information as an edit decision list in a format usable by common video players.

Of course there are questions to consider. Different users may want to automatically skip a different set of segment categories, so in an ideal implementation that would be configurable. Perhaps a command-line argument such as --sponsorblock-autoskip-categories=[sponsor,intro,outro,interaction,selfpromo,music_offtopic] would work. Of course a simple implementation could skip this step and simply build the EDL from the sponsor category alone.

Worse, however, is that not every video player supports the same format for edit decision lists. VLC's documentation is poorly organized, but it appears that it can read this information from both M3U and XPSF playlist files. Mplayer has a very simple EDL file format. (Repeat ad infinitum for all other video players.) It seems likely that an initial implementation would pick one of these formats while leaving room for extension over time as more formats can be generated. An option like --generate-edl-from-sponsorblock-api would do to start, and it could be extended later to let the user specify which format to generate.

There are other existing feature requests for creating playlist files, which as far as I can tell do not overlap with this request. Of course they do share some technical requirements around creating various playlist formats. Hopefully implementing this feature would make it easier to implement the others, and visa-versa.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.