Extract chapters from MPLS file

Support forum for DGDecNV
User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Tue Mar 12, 2019 10:23 pm

Understood, DJ. Your code is very useful to me and I'll extend it to support branching. Thank you.

User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Tue Mar 19, 2019 4:39 pm

I have DGIndexNV extracting chapters now that match EAC3TO for tormento's Aliens rip. In order not to complicate the UI, a chapters file is automatically created when an MPLS is opened.

Before giving a test version, I want to ask DJATOM if he can provide or refer me to a bluray that has multiple episodes such that his parser is applicable. I can then ensure that it will also be supported.

Hats off to Jarrett Vance, whose Chapter Grabber code showed how to do it.

https://code.google.com/archive/p/chapt ... ult/source

User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Thu Mar 21, 2019 1:05 pm

Thanks to DJATOM for providing a Japanese-style rip suitable for his parsing tool. :salute:

I slipstreamed a first step supporting normal chapters as output by EAC3TO. I hope to support DJATOM's case in a future version. It will require UI changes, whereas this first step does not.

User avatar
tormento
Moose Approved
Posts: 321
Joined: Mon Sep 20, 2010 2:18 pm

Re: Extract chapters from MPLS file

Post by tormento » Thu Mar 21, 2019 1:30 pm

admin wrote:
Tue Mar 19, 2019 4:39 pm
I have DGIndexNV extracting chapters now that match EAC3TO for tormento's Aliens rip. In order not to complicate the UI, a chapters file is automatically created when an MPLS is opened.
Thanks @admin!

Don't you think it's better to save chapters when saving DGI? We could give path and save only when interested and not anytime you open a mpls.

User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Thu Mar 21, 2019 1:42 pm

It might be better but I don't think it's worth the effort. I already parse the MPLS on open, so that's a fine time to write the chapters file. Maybe it will change when I implement DJATOM's use case.

User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Mon Apr 01, 2019 7:24 pm

After some thought I decided to generate it as tormento suggested, i.e., when the project is saved. The chapters file is generated in the same directory as the DGI file. This will be in the next slipstream.

The main reason is that (I think) when a bluray is decrypted with anydvd the playlist directory is not writable, so the chapter file generation would fail.

dmcs
Posts: 36
Joined: Sat Oct 21, 2017 9:40 pm

Re: Extract chapters from MPLS file

Post by dmcs » Fri Aug 30, 2019 11:50 pm

When I indexed an .mpls file via CLI, the chapter file generated at the end of the process looks like this:

CHAPTER01=00:00:00.000
CHAPTER01NAME=
CHAPTER03=00:05:59.359
CHAPTER03NAME=
CHAPTER05=00:09:51.633
CHAPTER05NAME=
CHAPTER07=00:15:51.742
CHAPTER07NAME=
CHAPTER09=00:18:36.449
CHAPTER09NAME=
CHAPTER11=00:23:19.523
CHAPTER11NAME=
CHAPTER13=00:27:44.705
CHAPTER13NAME=

Is this normal?

User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Sat Aug 31, 2019 6:06 am

Can you tell me what you think is wrong? And is it different from when you demux via the GUI?

dmcs
Posts: 36
Joined: Sat Oct 21, 2017 9:40 pm

Re: Extract chapters from MPLS file

Post by dmcs » Sat Aug 31, 2019 1:49 pm

admin wrote:
Sat Aug 31, 2019 6:06 am
Can you tell me what you think is wrong? And is it different from when you demux via the GUI?
Demux via GUI and CLI gave the same output.
Anw, I thought the chapter file template needs to go from 0 -> 1 -> 2 etc. Turns out, it doesn't matter.

User avatar
admin
Site Admin
Posts: 4410
Joined: Thu Sep 09, 2010 3:08 pm

Re: Extract chapters from MPLS file

Post by admin » Sat Aug 31, 2019 2:43 pm

OK, thank you dmcs, let me look into that, even if it doesn't matter.

Post Reply