Extract chapters from MPLS file

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

Extract chapters from MPLS file

Post by admin » Mon Mar 04, 2019 2:19 pm

tormento wrote:
Mon Mar 04, 2019 4:08 am
On next iteration of parser, please consider chapter extraction too.
Does the chapter file info generated by DJATOM's tool match what you are looking for? Here is an example of its output:

CHAPTER00=00:00:00.000
CHAPTER00NAME=
CHAPTER01=00:01:13.824
CHAPTER01NAME=
CHAPTER02=00:02:34.863
CHAPTER02NAME=

I generated that from an MVC bluray 00000.mpls using the tool (only one I had lying around). Not sure why there are no names.

What will be done with this chapter info?

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

Re: Extract chapters from MPLS file

Post by tormento » Tue Mar 05, 2019 7:11 am

admin wrote:
Mon Mar 04, 2019 2:19 pm
Does the chapter file info generated by DJATOM's tool match what you are looking for? Here is an example of its output
That is a txt type of chapters and it's ok. It can be xml too. Currently I am using eac3to to extract from BD and MKVExtract for MKV containers (which DGIndexNV already deal with).
admin wrote:
Mon Mar 04, 2019 2:19 pm
What will be done with this chapter info?
To mux a mkv with chapters when creating video to be played from non BD devices :)

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 05, 2019 1:09 pm

OK, 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 » Mon Mar 11, 2019 7:08 pm

Help me out, guys, I'm confused. I ran DJATOM's tool on the Alien 1 rip and it generated a whole bunch of EPxx.txt files, one of which looks like this:

CHAPTER00=00:00:00.000
CHAPTER00NAME=
CHAPTER01=00:00:07.591
CHAPTER01NAME=

My questions:

1. Why are all these files generated? It's a movie so it doesn't have episodes. Why isn't
a single file used?

2. Why are the name fields blank?

3. How will these files actually be used, as in what are the tools and process?

gonca
Moose Approved
Posts: 841
Joined: Sun Apr 08, 2012 6:12 pm

Re: Extract chapters from MPLS file

Post by gonca » Mon Mar 11, 2019 8:36 pm

The name fields are blank because this is to be filled in when merging with a file (non BD), i.e. MKV
They tend not to have names in a BluRay movie that I have noticed

Merged together with video, audio, etc for file playback like MKV.
Some people name the chapters for better seeking I guess

Why does it think it is a bunch of episodes?
I don't know, authoring issues maybe

If you wish I can try a couple of discs tomorrow

gonca
Moose Approved
Posts: 841
Joined: Sun Apr 08, 2012 6:12 pm

Re: Extract chapters from MPLS file

Post by gonca » Mon Mar 11, 2019 8:45 pm

Just read the usage info for DJAtom's tool'
Since Alien is a seemless branching movie it thinks that every m2ts is a separate episode and the mpls is a sort of playall playlist

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 Mar 11, 2019 9:36 pm

gonca wrote:
Mon Mar 11, 2019 8:45 pm
Just read the usage info for DJAtom's tool'
Since Alien is a seemless branching movie it thinks that every m2ts is a separate episode and the mpls is a sort of playall playlist
OK, thank you for the explanation. But then the tool should be smart enough to know that and operate accordingly.

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

Re: Extract chapters from MPLS file

Post by tormento » Tue Mar 12, 2019 7:00 am

admin wrote:
Mon Mar 11, 2019 7:08 pm
Help me out, guys, I'm confused. I ran DJATOM's tool on the Alien 1 rip and it generated a whole bunch of EPxx.txt file
Use eac3to with a GUI. One file only will be generated.

The chapters.txt or .xml is then fed to MKVToolnix GUI to replicate same chapter structure in muxed output mkv (of course this is useful when you convert a BD to x264/x265 plus multiple audio and srt). You just need to drag and drop like other files in the upper blank window space and it will be recognized as such.

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 7:29 am

Got it, thank you. I will try to emulate what EAC3TO is doing.

User avatar
DJATOM
Moose Approved
Posts: 58
Joined: Fri Oct 16, 2015 6:14 pm

Re: Extract chapters from MPLS file

Post by DJATOM » Tue Mar 12, 2019 8:53 am

Yeah, my script tuned for my usecase (anime blurays with 2-3 episodes per volume), and I rarely make anime movies, so I didn't run on that scenario (seemless branching, etc). If eac3to produces desired output, indeed it's better to use that approach.
RTX 2070 | Ryzen R9 3900X (no OC) | 32 GB RAM

Post Reply