A Better Way To Find The Correct Playlist/Segment Map

MKV playback, recompression, remuxing, codec packs, players, howtos, etc.
SysCrasher
Posts: 1
Joined: Sat Dec 21, 2019 10:38 pm

SysCrasher

Post by SysCrasher »

Mat1926 wrote:
Tue Aug 28, 2018 8:16 am
Mat1926 wrote:
Mon Jul 30, 2018 5:06 pm
This method did not work for me. The issue is the "CloseFile" operation, it is not in the drop down menu, and typing "CloseFile" does not help...

The only way was a tutorial on YouTube using ProcessMonitor + PowerDVD + filtering Path only "mpls"...This lead to the correct play list... and then I used makmkv to extract that one only...
Okay, guys! Just a quick update...

The method I described above (not mine BTW), is the perfect starting point. It saves you a lot of trouble if you have many playlists, because you don't spend time searching for the correct playlist if you followed the OP method. And searching for .mpls instead of .m2ts served me well until last night!

I have this BD where the correct .mpls according to M$ Process Monitor does not show entirely in the MakeMKV list. So I thought of giving the .m2ts method a go...and guess what as expected I was able to find the correct playlist. However, maybe it is because I am on Win 10 X64, or because my Process Monitor is the latest, the only difference is that instead of "CloseFile", choose "IRP_MJ_CLOSE" from the combo box/drop down menu. That is the only difference...

Good luck, and thnx to OP for the help :)
Why you don't search for IRP_MJ_CLEANUP instead?
Then you only have the same count of segments than MakeMKV has.

Quote from a Microsoft documentation about this entry also looks very interesting:
When Sent

Receipt of the IRP_MJ_CLEANUP request indicates that the handle reference count on a file object has reached zero. (In other words, all handles to the file object have been closed.) Often it is sent when a user-mode application has called the Microsoft Win32 CloseHandle function (or when a kernel-mode driver has called ZwClose) on the last outstanding handle to a file object.

It is important to note that when all handles to a file object have been closed, this does not necessarily mean that the file object is no longer being used. System components, such as the Cache Manager and the Memory Manager, might hold outstanding references to the file object. These components can still read to or write from a file, even after an IRP_MJ_CLEANUP request is received.
I have tested it today on my StarWars 8 Bluray and it only shows me the different entries/segments. Maybe I'll test it later the week on other discs.
Attachments
Unbenannt.PNG
Unbenannt.PNG (28.19 KiB) Viewed 59269 times
mgutt
Posts: 141
Joined: Sun May 05, 2019 6:38 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by mgutt »

If you view a Blu-Ray through DVDFab Player and use the playlist button in the bottom right corner it displays the MPLS number of the movie:
2020-01-09 22_44_45.png
2020-01-09 22_44_45.png (1.02 MiB) Viewed 59201 times
No need to monitor file access or fast play the movie. I think this is by far the easiest method.
Last edited by mgutt on Sun Dec 05, 2021 3:46 pm, edited 2 times in total.
MetalDave
Posts: 31
Joined: Wed May 03, 2017 10:17 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by MetalDave »

Hey, friends.

I just caught up with this thread this evening. Interesting information.

I'm wondering if this method could be transposed to use VLC as the Blu-ray player instead of those mentioned in the thread. To take it a step further, I also wonder if we can do something similar using macOS utilities (e.g. Activity Monitor or CLI utility).

Has anyone played with either to sleuth the segment map?

Thanks,

- Dave
Support MakeMKV - Buy a license!
(Seriously, you use this thing enough; A lifetime license is well worth it.)

Thank you to all of my fellow supporters!
Mr_Orange
Posts: 149
Joined: Sun Jul 14, 2019 6:11 am

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by Mr_Orange »

This is probably a uninformed suggestion but can the .clpi files in the 'CLIPINF' folder of a disc be used to help determine the correct playlist and segment map?
namos23
Posts: 2
Joined: Thu Sep 03, 2020 11:03 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by namos23 »

Trying to dump the disc info via command line just results in "Invalid Command:Mobile"

Anyone know why?
awdspyder
Posts: 39
Joined: Sun Dec 23, 2018 11:56 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by awdspyder »

MetalDave wrote:
Tue Jun 02, 2020 5:38 am
Hey, friends.

I just caught up with this thread this evening. Interesting information.

I'm wondering if this method could be transposed to use VLC as the Blu-ray player instead of those mentioned in the thread. To take it a step further, I also wonder if we can do something similar using macOS utilities (e.g. Activity Monitor or CLI utility).

Has anyone played with either to sleuth the segment map?

Thanks,

- Dave
Yes, I've been using VLC as the player along with OpenedFilesView to document the segment map. I switched over a while ago, as I just can't stomach paying the crooks at CyberLink to upgrade their crappy software.

I've only had one issue with JW3 that stated it was the wrong region code for some reason. Still haven't figured that one out...
dcoke22
Posts: 3086
Joined: Wed Jul 22, 2020 11:25 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by dcoke22 »

It seems like OpenedFilesView (https://www.nirsoft.net/utils/opened_files_view.html) is a Windows program. MetalDave was asking about how to do it on a Mac.

MacOS has something called fs_usage (https://ss64.com/osx/fs_usage.html). You can make it show you all the file system events that a program has. On a Mac, when you launch VLC, it has a process name of VLC. If you look in Activity Monitor you'll find it. Hence the following command will display all the filesystem events that the process named VLC does.

Code: Select all

sudo fs_usage VLC
You'll need admin privileges to make this work, since it uses some kernel tracing facilities.

If VLC is playing a video, you'll see a stream of things scroll by. Probably too fast to read. Saving the output in a file is probably better.

Code: Select all

sudo fs_usage VLC > ~/vlc-output.txt
That'll put the output in a file named vlc-output.txt in your home folder. There will be a bunch of stuff in there, but eventually you'll see where VLC reads a .m2ts file from where ever your blu-ray backup is.

Code: Select all

16:27:09  read                                                                                        0.000002   VLC         
16:27:09  read                                                                                        0.000002   VLC         
16:27:09  read                                                                                        0.001099   VLC         
16:27:09  read                                                                                        0.000004   VLC         
16:27:09  read                                                                                        0.000002   VLC         
16:27:09    RdData[A]       /Volumes/Me/M/b/movie/BDMV/STREAM/00810.m2ts           0.003406 W VLC         
16:27:09    RdData[A]       /Volumes/Me/M/b/movie/BDMV/STREAM/00810.m2ts           0.020080 W VLC         
16:27:09    RdData[A]       /Volumes/Me/M/b/movie/BDMV/STREAM/00810.m2ts           0.022471 W VLC         
16:27:09  read                                                                                        0.000021   VLC         
16:27:09  read                                                                                        0.000006   VLC         
16:27:09  read                                                                                        0.000005   VLC         
16:27:09  read                                                                                        0.000005   VLC         
16:27:09  read                                                                                        0.000017   VLC         
16:27:09  read                                                                                        0.000001   VLC         
16:27:09  read                                                                                        0.000002   VLC
Use your favorite text searching utility to look for just the .m2ts entries and you can find the play order.

I have verified that is works with at least 1 blu-ray backup on macOS Mojave and with VLC 3.0.11.1.

For completeness, I should point out that one could use the command

Code: Select all

lsof
It only runs at a point in time, however and doesn't monitor continuously by default. You can point lsof at a specific process to see what files a process has open at that moment in time with the following command.

Code: Select all

lsof -p <PID>
PID is the process ID of VLC, which one can find in Activity Monitor.
Reiver
Posts: 23
Joined: Wed Jul 26, 2017 8:45 am

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by Reiver »

A word of caution on VLC though, it doesn't always get the right playlist/segments.

The last time I tried it got the wrong playlist for me with John Wick 3 aka Lionsgate obfuscation. This was with (now) a few minor releases old VLC 3.0.8 (on Linux) but still the same libbluray 1.2.0 that chose the wrong playlist. So double check with other people reports if possible.
MetalDave
Posts: 31
Joined: Wed May 03, 2017 10:17 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by MetalDave »

dcoke22 wrote:
Mon Sep 07, 2020 9:57 pm
It seems like OpenedFilesView (https://www.nirsoft.net/utils/opened_files_view.html) is a Windows program. MetalDave was asking about how to do it on a Mac.
I'm multi-OS; I'm using Ubuntu right now to read this. :D That said, I'm curious to know a better process on any OS.

Thank you to both dcoke22 and awdspyder for the info (and the rest of the community for contributing to the conversation).
Support MakeMKV - Buy a license!
(Seriously, you use this thing enough; A lifetime license is well worth it.)

Thank you to all of my fellow supporters!
GurliGebis
Posts: 1
Joined: Sun Nov 15, 2020 10:07 am

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by GurliGebis »

I don't know if this has been suggested, but I have found a slightly easier way, also using procmon, but with VLC, since it does not try to mess around with false playlists.
  1. Make sure MakeMKV is set to integrate with VLC
  2. Start ProcMon and configure it like above, but filter for ".mpls" files instead.
  3. Open VLC and select to open the bluray disk.
  4. Once it gets to the main menu, configure it like you normally would (some spoken languages selects different playlists).
  5. Now clear the list in ProcMon, and start the movie in VLC - the last MPLS file it has closed once the movie has started should be the correct one.
I have used this method on several of my movies I have ripped, and none has yet failed to identify with this method.
nathan
Posts: 9
Joined: Fri May 16, 2014 9:22 am

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by nathan »

GurliGebis wrote:
Sun Nov 15, 2020 10:14 am
I don't know if this has been suggested, but I have found a slightly easier way, also using procmon, but with VLC, since it does not try to mess around with false playlists.
  1. Make sure MakeMKV is set to integrate with VLC
  2. Start ProcMon and configure it like above, but filter for ".mpls" files instead.
  3. Open VLC and select to open the bluray disk.
  4. Once it gets to the main menu, configure it like you normally would (some spoken languages selects different playlists).
  5. Now clear the list in ProcMon, and start the movie in VLC - the last MPLS file it has closed once the movie has started should be the correct one.
I have used this method on several of my movies I have ripped, and none has yet failed to identify with this method.
This worked nicely for my UK JWick3. Many thanks
NutFlush920
Posts: 94
Joined: Wed Dec 28, 2011 8:26 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by NutFlush920 »

Is this still the best method for determining the right title to rip? Is it recommended to use PowerDVD over VLC and if so what version of PowerDVD?

Is their a Mac work around?

If MakeMKV finds a “Main Feature” title should I trust its right?
archiveEverything
Posts: 11
Joined: Fri Feb 19, 2021 5:47 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by archiveEverything »

You can use the following from Terminal:

Code: Select all

BD_DEBUG_MASK=0x40 /Applications/VLC.app/Contents/MacOS/VLC 2>&1 | grep mpls
That will print every time a playlist is chosen via the menus.

Now I just have to figure out how to to get MakeMKV to show all the mpls on a disc. For some reason it's dropping a bunch and not even mentioning them in the log.
rodrigo081089
Posts: 19
Joined: Tue Dec 22, 2020 1:17 am

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by rodrigo081089 »

Wouldn't be easier just see the size and file duration on the top scene release group?
stephen0804
Posts: 2
Joined: Thu Dec 17, 2020 10:04 pm

Re: A Better Way To Find The Correct Playlist/Segment Map

Post by stephen0804 »

the op method worked great for my copy of "a day to kill (2014)"
thank you so much!
Post Reply