Skip to content

Scripts? Auto-Skip Chapters? #1221

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

Closed
Obegg opened this issue Jul 20, 2021 · 20 comments
Closed

Scripts? Auto-Skip Chapters? #1221

Obegg opened this issue Jul 20, 2021 · 20 comments

Comments

@Obegg
Copy link

Obegg commented Jul 20, 2021

I watch videos that have chapters, and I would like to AUTO-SKIP those chapters, is there any option to do so?
If not - I noticed that there is a script "chapterskip" that answers my needs, and I did not find any way to integrate this script to MPC-HC.
Is there any option to integrate scripts to MPC-HC?
If not - will there be any option similar to this in the future?

@lifegpc
Copy link

lifegpc commented Jul 20, 2021

Is there any option to integrate scripts to MPC-HC?

No.

@Obegg
Copy link
Author

Obegg commented Jul 20, 2021

Is there any option to integrate scripts to MPC-HC?

No.

So there's no option to auto-skip certain chapters and there's no option to integrate scripts?
Then this is now a feature suggestion.

  1. Auto-Skip certain chapters
  2. Integration with scripts

@clsid2
Copy link
Owner

clsid2 commented Jul 20, 2021

MPC-HC does not support scripts and I have no interest in adding any kind of script support.

Skipping chapters based on title is something that could be implemented, but I am also not interested in doing that myself.

The Matroska container has the ability to mark individual chapters as disabled/hidden. So you could edit the headers of your files to disable the unwanted chapters.

@Obegg
Copy link
Author

Obegg commented Jul 20, 2021

MPC-HC does not support scripts and I have no interest in adding any kind of script support.

Skipping chapters based on title is something that could be implemented, but I am also not interested in doing that myself.

The Matroska container has the ability to mark individual chapters as disabled/hidden. So you could edit the headers of your files to disable the unwanted chapters.

Is it possible that skipping chapters will be implemented (not by you, since you are not interested)?

I tried using "MKVToolNix 59.0.0", it doesn't answer my need to auto-skip chapters.
All it does is marking the chapter and that's it, so you can know it's a chapter, but that's it.

@clsid2
Copy link
Owner

clsid2 commented Jul 20, 2021

If someone submits a patch for a good clean implementation, then I will consider using it.

@Obegg
Copy link
Author

Obegg commented Jul 20, 2021

If someone submits a patch for a good clean implementation, then I will consider using it.

Oh, I thought there's like a team working on MPC-HC, guess I was wrong.
If that's the case - I doubt this feature will be implemented anytime soon :(

@ale5000-git
Copy link

ale5000-git commented Jul 20, 2021

Just an idea: once "Dynamic Toolbars" is implemented, a custom buttom could be added called "Skip" that gets enabled when the video is in chapters like "Intro" or similar and disabled in other chapters.
The list of chapters to skip can be in an .ini file in the MPC-HC folder (since it should be rarely modified).

It can be similar to Netflix in the way it skip.

@clsid2
Copy link
Owner

clsid2 commented Jul 20, 2021

The whole point is that it is automatic. You can already manually skip a chapter with the existing buttons or by pressing PageDown.

@ale5000-git
Copy link

ale5000-git commented Jul 20, 2021

Maybe there can be an .ini setting that allow to set manual/automatic skip (separate from base settings .ini).
My idea is a button (usable directly with the mouse) that isn't able to skip main film but just opening/intro and ending.

@Obegg
Copy link
Author

Obegg commented Jul 20, 2021

The whole point is that it is automatic. You can already manually skip a chapter with the existing buttons or by pressing PageDown.

Exactly!
For example:
image
Blue chapters = Not skip
Red chapters (OP + ED) = Skip
In order to skip you need to manually click PageDown,
My suggestion/request/question is to make it skip automatically, without the need to click a key or mouse.

@ale5000-git
Copy link

ale5000-git commented Sep 6, 2021

I just had an idea, since yt-dlp support SponsorBlock it may be easier for streamings to just get SponsorBlock chapters (see --sponsorblock-mark all) and use these to skip chapters.

@clsid2
Copy link
Owner

clsid2 commented Sep 6, 2021

This request is primarily for local files. It obly involves handling of chapters, not the creation of chapters. So SB is not helpful at all.

@ale5000-git
Copy link

If I haven't read incorrectly the author of the issue haven't specified if it is for local files or streamings but still it may have implied them to be local files.
Also I mean just use chapters from SB, not create and send them.

@clsid2
Copy link
Owner

clsid2 commented Sep 6, 2021

The requested functionality is for when chapter information is already available. Getting chapter information is a totally different and unrelated topic. So please stop commenting with irrelevant suggestions.

@hubblec4
Copy link

Skipping chapters is an easy task for Matroska. Use ordered chapters in different Editions and delete the chapters you don't want to watch.
In a good Matroska player you can change between the Editions and you can watch what you have set.

My wife like it to watch reviews and intros, but me not. So there is an Edition "With review and intro" and a second Edition "Episode only".
That's all.

@Obegg
Copy link
Author

Obegg commented Oct 21, 2021

Skipping chapters is an easy task for Matroska. Use ordered chapters in different Editions and delete the chapters you don't want to watch. In a good Matroska player you can change between the Editions and you can watch what you have set.

My wife like it to watch reviews and intros, but me not. So there is an Edition "With review and intro" and a second Edition "Episode only". That's all.

I'm sorry, can you explain how?
Currently I'm using MPV but I did see something about "edition", how can I make use of it?

@hubblec4
Copy link

hubblec4 commented Oct 21, 2021

MPV is unfortunately not a good Matroska player and the support for Editions is there but not easy to use.
The best Matroska player is MPC-HC.
In my Matroska-Playback repo you will find useful info.

For easy and fast creating multiple Editions you can use chapterEditor.

@adipose
Copy link

adipose commented Mar 26, 2022

An idea. Rather than scripts there could be options loaded per file.

video.mkv
video.opt

Various options could be loaded for supported features. One could be chapters to skip. Regex perhaps.

Could have

all_mkv.opt for globals.

@clsid2
Copy link
Owner

clsid2 commented Mar 26, 2022

I am not interested in added that.

@clsid2 clsid2 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2022
@ncflagg
Copy link

ncflagg commented Dec 3, 2024

The Matroska container has the ability to mark individual chapters as disabled/hidden. So you could edit the headers of your files to disable the unwanted chapters.

I took this to mean that a disabled/hidden chapter would not be played by MPC-HC. I tested this with all variations of disabled/hidden in an mkv file using mkvtoolnix and playing with MPC-HC 2.2.1, but the chapters were still played (and visible).

Repository owner locked and limited conversation to collaborators Dec 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants