-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Support for SponsorBlock #136
Comments
Turns out this is a lot easier than I thought. Supplying the right arguments to youtube-dl's I'd suggest having one global flag to set up a sponsorblock default which can than be overwritten on a per feed basis. Maybe something like this: [sponsorblock]
enable = true
url = "https://sponsor.ajay.app"
[feeds]
[feed.my_feed]
...
sponsorblock = false |
Could you please provide an example what arguments needs to be passed to youtube-dl? I'm wondering if we can do that in generic way and just give an ability to provide additional arguments to youtube-dl binary. |
Okay, after looking into this a bit more, while the approach works, there are potential problems:
Potential problems arise from the fact that youtube-dl only adds this to FFmpeg invocations. If, however, youtube-dl doesn't even call FFmpeg (which for many formats it doesn't) the arguments are not used. In this case I 'enforced' FFmpeg being called using I think the only solution is to call FFmpeg explicitly, after the download has completed, instead. This would mean no modification to the youtube-dl calls are required. Would you be alright with explicitly calling FFmpeg? For future reference: {
"UUIDs": [
"96b9e1dc8dc5893e195c1d1f5964eab52ace9081e8568742ab46974b3cd731a2"
],
"sponsorTimes": [
[
489.539569,
562.494883
]
]
}
|
This allows inserting arbitrary extra arguments into the youtube-dl command-line within each podcast feed entry. This allows, for example, requesting that youtube-dl embed subtitles and captions into the video file, or configuring additional postprocessor arguments. No effort has been made to make sure no incompatible arguments are provided, with the expectation that the end-user will understand what's possible, and that this is an option expressly for advanced users. This would fix mxpv#162,and theoretically also mxpv#136!
Hey! I’ve implemented such an “an ability to provide additional arguments to youtube-dl binary” in #163. I think for the use case of forcing the postprocessing to occur, @hatzel, I believe adding |
I don't believe this should be closed, SponsorBlock integration can't be done simply with |
I don't really have the time to tackle this currently. So unless someone else is interested it might as wells stay closed :) |
I may be willing to work on this, and even if not the closed status makes it seem like this has been implemented, or perhaps won't ever be implemented even with a pull request. |
It would be great to block sponsor reads as collected in SponsorBlock. This might involve a lot of work (i.e. calling ffmpeg manually) as modifying the actual data would be required.
In principle, however, the feature would not be immensely complicated. FFmpeg can be passed cut-lists and can if desired cut only at key-frames. The SponsorBlock API can easily be used to retrieve the blocked segments.
The text was updated successfully, but these errors were encountered: