Eisa01/mpv-scripts

Bookmark A-B Loop Feature Request Maybe?

AziRizvi opened this issue · 5 comments

Feature Request for Simple Bookmark.. can we get a feature to loop between one or more of the saved bookmarks for a file? it is possible to loop by loading one bookmark point and then pressing the MPV keybind for looping and then opening the bookmark menu again and loading another saved bookmark point and then closing the A-B loop by pressing the keybind again and this works, can we maybe perhaps get an option in the script to save certain bookmark points as loops and then we can just load those and it'll loop between those sections?

Eisa01 commented

In the SimpleBookmark conf file, there is an option to preserve settings.
Can you check if it will preserve the loop points?

In the SimpleBookmark conf file, there is an option to preserve settings. Can you check if it will preserve the loop points?

I just tried it out, first I created an A-B loop, then I created a bookmark, then closed and reopened MPV and loaded the bookmark that I just saved and nothing.. it just played normally from that point onward, it did not loop between the sections.

I also tried starting an A-B loop, creating a bookmark and then closing the loop.. same results.

Is that how it was supposed to be done? Unless I tested something in the wrong manner here..

Eisa01 commented

Basically a-b points are not being saved when creating watch-later files. You can open an issue in mpv repository to see if it will be possible to include a-b points in watch-later files.

If this is not planned to be included within mpv and you consider it of importance, then I'll see if I can make a workaround to save it.

Basically a-b points are not being saved when creating watch-later files. You can open an issue in mpv repository to see if it will be possible to include a-b points in watch-later files.

If this is not planned to be included within mpv and you consider it of importance, then I'll see if I can make a workaround to save it.

I will open an issue in the MPV repo as you said but I think that even if the MPV team was to implement this which is unlikely, they will only let the user have one A-B loop per file, what if I wanted more loops? Everyone would be just forced into having only one.

I do consider it of importance, for me the point of creating bookmarks is so I can watch something from that minute till a certain time or all the way to the end, if I'm watching something from a certain time all the way to the end, I can just save a bookmark for it but lets say I have a 5 minute long file and I only want to watch it from e.g 1:05 - 1:59 and then from 2:40 - 3:25 then for that I think having saved loop points would be great.

If and when you implement this, please also allow the option to join multiple saved loops e.g (1:10 to 2:59) + (3:20 to 4:20) so that one can just load that and watch things smoothly instead of having to load one and watching it and then opening the menu and loading another one.

Basically a-b points are not being saved when creating watch-later files. You can open an issue in mpv repository to see if it will be possible to include a-b points in watch-later files.

If this is not planned to be included within mpv and you consider it of importance, then I'll see if I can make a workaround to save it.

According to MPV team, it is possible to save one loop by using this:

--watch-later-options-append=ab-loop-a
--watch-later-options-append=ab-loop-b

But you're only limited to saving one loop per file.