Not all mpls files are shown
Not all mpls files are shown
Hi Rocky
When I load(with the GUI) a Blu-ray, for example Terminator 2, than not all mpls are shown.
I guess you use a filter to omit some mpls files.
Could you explain on what DGDemux filters.
Is there a way to get all mpls files?
When I load(with the GUI) a Blu-ray, for example Terminator 2, than not all mpls are shown.
I guess you use a filter to omit some mpls files.
Could you explain on what DGDemux filters.
Is there a way to get all mpls files?
Not all mpls files are shown
DGDemux just enumerates the .mpls files in the PLAYLIST directory and shows all of them, i.e., there is no filtering.
How are you determining that not all are shown? How many are there in total and how many are missing?
After you open the disk, don't click on an MPLS, and leave the GUI open. Then inspect the demuxXXXX.txt file in the same directory as DGDemuxGUI.exe, where XXXX is the PID shown in the GUI to the left of the Abort button. Compare the list in that file to a directory listing of PLAYLIST. If they match, then it is a GUI problem and we will go from there.
How are you determining that not all are shown? How many are there in total and how many are missing?
After you open the disk, don't click on an MPLS, and leave the GUI open. Then inspect the demuxXXXX.txt file in the same directory as DGDemuxGUI.exe, where XXXX is the PID shown in the GUI to the left of the Abort button. Compare the list in that file to a directory listing of PLAYLIST. If they match, then it is a GUI problem and we will go from there.
Not all mpls files are shown
Hmm, I just did that for CARS_2 and they don't match. Investigating... Ha ha, something to do today.Rocky wrote: ↑Tue Jul 04, 2023 7:45 amAfter you open the disk, don't click on an MPLS, and leave the GUI open. Then inspect the demuxXXXX.txt file in the same directory as DGDemuxGUI.exe, where XXXX is the PID shown in the GUI to the left of the Abort button. Compare the list in that file to a directory listing of PLAYLIST. If they match, then it is a GUI problem and we will go from there.
![Razz :P](./images/smilies/icon_razz.gif)
Not all mpls files are shown
I had a check that was intended to ignore "weird" MPLS files. By weird I mean those with the same M2TS file listed one after another. E.g., here is the list for CARS_2 00020.mpls:
00040.m2ts+00040.m2ts+00040.m2ts+00040.m2ts+ ...
Can't remember but somebody probably asked for that check. Don't ask me to make it optional!
Are all of your missing MPLS files like that? Do we really want to keep them? I suppose keeping them isn't a problem if we really value showing all MPLS files. OTOH, these weird playlists appear to be part of the studio's obfuscation strategy, and their presence in the list complicates identifying the main playlist.
00040.m2ts+00040.m2ts+00040.m2ts+00040.m2ts+ ...
Can't remember but somebody probably asked for that check. Don't ask me to make it optional!
Are all of your missing MPLS files like that? Do we really want to keep them? I suppose keeping them isn't a problem if we really value showing all MPLS files. OTOH, these weird playlists appear to be part of the studio's obfuscation strategy, and their presence in the list complicates identifying the main playlist.
Not all mpls files are shown
Yes, the missing mpls have the same m2ts multiple times.
Good to know that you have a filter there and it is not a fault.
And I can also understand why there was a request to ignore such mpls files. The demuxed content is than hugh.
BUT
this mpls files are mostly used for the main menu screen.
cE has an option to ignore m2ts files which are repeated.
You have to know that such mpls files often also contain two m2ts files.
The first m2ts file is used only one time but the second is used multiple times.
It makes no sense to demux from such mpls the whole content.
MKVToolNix(MTX) uses also all m2ts file from the mpls list, so I have to feed MTX with the m2ts files,
or I demux all streams with cE which feeds eac3to only with one (or two) m2ts files.
With cE and Matroska ordered chapters I get a final mkv with only one m2ts but it plays so long like the mpls duration.
Should I open a new feature request "Remove duplicated m2ts from the m2ts list"?
Good to know that you have a filter there and it is not a fault.
And I can also understand why there was a request to ignore such mpls files. The demuxed content is than hugh.
BUT
this mpls files are mostly used for the main menu screen.
cE has an option to ignore m2ts files which are repeated.
You have to know that such mpls files often also contain two m2ts files.
The first m2ts file is used only one time but the second is used multiple times.
It makes no sense to demux from such mpls the whole content.
MKVToolNix(MTX) uses also all m2ts file from the mpls list, so I have to feed MTX with the m2ts files,
or I demux all streams with cE which feeds eac3to only with one (or two) m2ts files.
With cE and Matroska ordered chapters I get a final mkv with only one m2ts but it plays so long like the mpls duration.
Should I open a new feature request "Remove duplicated m2ts from the m2ts list"?
Not all mpls files are shown
Sorry, I don't follow your explanation. Please explain like you're talking to a five-year-old what the purpose of this option is, and the consequences of not having it. Why do you even need these playlists? I am disinclined to do this absent a really good justification. I'm also very stingy with new options. So if you can handle it within cE that will be preferred for us. You say this:
"cE has an option to ignore m2ts files which are repeated."
Why isn't that enough?
You know me, my friend hubblec4. I don't like to implement things whose purpose I do not understand.
Not all mpls files are shown
Yes, no problem I will try to explain in more details
I keep these menu videos sometimes to have a menu in an mkv as well.
Especially with series, I find these menu videos very chic and like to keep them.
I plan to expand my cE->BD2mkv editor to create a single mkv of an entire Blu-ray, which preserves all videos
and with an interactive Matroska menu to navigate through the content.
cE can feed eac3to with a free random m2ts list, but not DGDemux.Rocky wrote: ↑Tue Jul 04, 2023 11:42 amI am disinclined to do this absent a really good justification. I'm also very stingy with new options. So if you can handle it within cE that will be preferred for us. You say this:
"cE has an option to ignore m2ts files which are repeated."
Why isn't that enough?
cE scans such mpls files creates the m2ts list and remove all duplicates.
This abbreviated m2ts list is used as input for eac3to and also for MKVToolNix.
OK, if there is only one m2ts which is repeated, this is simple, the m2ts list has only one m2ts after removing duplicates and MKVToolNix handles all fine.
But with the other case where two m2ts files are used, I like to demux the streams because to perform Audio gap-handling.
I know DGDemux will never have a free-m2ts-list-input feature and this is fully fine to me, but cE is not able to control DGDemux to ignore the duplicated m2ts files.
That's perfectly understandable.
Not all mpls files are shown
Thank you. Thinking... ![Thinking :scratch:](./images/smilies/icon_scratch2.gif)
![Thinking :scratch:](./images/smilies/icon_scratch2.gif)
Not all mpls files are shown
Some thoughts:
cE offers an option to remove the duplicates, but I could remove this and do the duplicate removal always by default.
Because it is nonsense to append the same content again and again.
This means DGDemux could do this also by default and so is no new switch necessary.
cE offers an option to remove the duplicates, but I could remove this and do the duplicate removal always by default.
Because it is nonsense to append the same content again and again.
This means DGDemux could do this also by default and so is no new switch necessary.
Not all mpls files are shown
Yes, I was thinking that too. I'll do the duplicate removal for you but I'm undecided still whether to have an option. Maybe I'll make it unconditional for now and add an option in the future if it ever becomes problematic for some use case. I mean after all, we used to throw out the whole MPLS, so how bad could it be?
Not all mpls files are shown
A question:
If I remove the duplicates, do you want the playtime returned as the original full time or the playtime with the duplicates removed? I'm tending towards returning the truncated playtime.
I temporarily removed build 70 because I had uploaded the wrong DGDemux.exe.![Sad :(](./images/smilies/icon_e_sad.gif)
EDIT: build 70 was restored.
Be warned this duplicate removal change will need a few days as it is highly nontrivial due to interaction with -sf, -sl, -sk, and -ep.
If I remove the duplicates, do you want the playtime returned as the original full time or the playtime with the duplicates removed? I'm tending towards returning the truncated playtime.
I temporarily removed build 70 because I had uploaded the wrong DGDemux.exe.
![Sad :(](./images/smilies/icon_e_sad.gif)
EDIT: build 70 was restored.
Be warned this duplicate removal change will need a few days as it is highly nontrivial due to interaction with -sf, -sl, -sk, and -ep.
Not all mpls files are shown
Many thanks.
I'm also undecided for the moment. Already is everything working with this option.
I guess not much users are interested in this mpls files so I think an automatic remove is fully fine.
cE set the remove option also to "yes" automatically if there are duplicatem2ts files and a user have to uncheck the option to keep all m2ts fils.
Yes, sounds a good idea and no I think it could not be bad.
For the mpls list in DGDemux I think the original mpls duration is better.
Keep in my that also the chapters not longer entirely correct. To cut the chapters makes in this case sense, for a normal user.
For cE, I need only the demuxed streams, all time relevant thing and chapters are handled by cE already.
Not all mpls files are shown
Yeah, I knew about chapters too.
Let me ask you frankly... How bad would it be if I continued to ignore these weird playlists? Is it a deal-breaker?Honestly, this is going to be a difficult change for me.
Let me ask you frankly... How bad would it be if I continued to ignore these weird playlists? Is it a deal-breaker?Honestly, this is going to be a difficult change for me.
Not all mpls files are shown
That would be a bit of a shame, of course, but not the end of the world either. (I hope this sentence makes sense in English, translated by google)
If necessary, I will simply stop demuxing for such mpls files and hope that MKVToolNix can process everything properly.
But what is when you ignore all the other switches -sf, -sl...and so on.
All this can not be used, because we have mostly only one remain m2ts file.
If two m2ts files remains it makes also no sense to remove the first or last m2ts.
Not all mpls files are shown
I could implement the dup removal with an option, and if it's enabled then I disable -sf/-sl/-sk/-ep. That would be not so difficult. I'll do some experimenting.
Translation has come a long ways from the early days.
Sounds like perfect colloquial English.I hope this sentence makes sense in English
![Wink ;)](./images/smilies/icon_e_wink.gif)
Not all mpls files are shown
Wow, many many thanks and that's exactly what I mean, you are willing to find solutions, that's so great!!
![Bow down :bow:](./images/smilies/icon_bow_down.gif)
Not all mpls files are shown
Hehe, thanks. I can argue that it's a special for cE, and so if you enable it as a normal user, it may not be what you expect. ![Cool 8-)](./images/smilies/icon_cool.gif)
![Cool 8-)](./images/smilies/icon_cool.gif)
- Bullwinkle
- Posts: 338
- Joined: Thu Sep 05, 2019 6:37 pm
Not all mpls files are shown
Such a breath of fresh air to huddle with such a fine hoomin as hubblec4. Not to say there's much hope for hoominity, but as they say, think global but act local.
Not all mpls files are shown
Huh? I can't see it.
Not all mpls files are shown
@hubblec4
Can you test this build please? Changes are:
1. All MPLS files are detected, including the weird ones.
2. There is a new option '-collapse' for DGDemux that will remove duplicates from the M2TS list.
Notes:
a. It's up to you to not enable -sf/-sl/-sk/-ep when you give -collapse.
b. I may or may not expose -collapse in the GUI. As it's a special for cE, arguably
there's no need for GUI support. Your thoughts?
c. Duplicates must be adjacent to be removed. E.g., if the list is:
00000.m2ts
00001.m2ts
00000.m2ts
then nothing is removed. OTOH if it is:
00000.m2ts
00000.m2ts
00001.m2ts
then one of the 00000.m2ts files is removed.
https://rationalqm.us/misc/DGDemux_hubblec4.rar
Sample:
DGDemux -l "D:\tmp\demux0000.txt" -i "G:\Rips\CARS_2\BDMV\PLAYLIST\00020.mpls" -thd 1 -collapse -o "D:\tmp\DGDemuxGUI test\0000" -demux 1011,1100,Chapters
Can you test this build please? Changes are:
1. All MPLS files are detected, including the weird ones.
2. There is a new option '-collapse' for DGDemux that will remove duplicates from the M2TS list.
Notes:
a. It's up to you to not enable -sf/-sl/-sk/-ep when you give -collapse.
b. I may or may not expose -collapse in the GUI. As it's a special for cE, arguably
there's no need for GUI support. Your thoughts?
c. Duplicates must be adjacent to be removed. E.g., if the list is:
00000.m2ts
00001.m2ts
00000.m2ts
then nothing is removed. OTOH if it is:
00000.m2ts
00000.m2ts
00001.m2ts
then one of the 00000.m2ts files is removed.
https://rationalqm.us/misc/DGDemux_hubblec4.rar
Sample:
DGDemux -l "D:\tmp\demux0000.txt" -i "G:\Rips\CARS_2\BDMV\PLAYLIST\00020.mpls" -thd 1 -collapse -o "D:\tmp\DGDemuxGUI test\0000" -demux 1011,1100,Chapters
Not all mpls files are shown
Yes I will do and report my results. But it won't be for an hour.
OK, and good to know. Only for interest, if I use one of the switches should I expect issues?
Mmh good question. I'm sure this feature is not often used by normal users,
therefore I would say you can omit the support for the GUI until a user asks for this.
But on the other hand it could be useful for quicker test for developing.
I hope it's OK if I let you decide.
OK, and I think this is a good solution.
I have never seen the first case where the same m2ts are not in a row.
What means OTOH?
A little note on the "weird" mpls:
This isn't actually weird, it's actually clever.
Instead of packing a 5 hour menu video with 5gb or more onto the disc, you simply repeat the content of an m2ts until you get to 5 hours.
The Matroska ordered chapters follow the same principle.
You can also create a 5h video with just one frame.
Not all mpls files are shown
No problem, thank you. Take your time. I'll be taking my afternoon nap.
Don't know, haven't thought it through.OK, and good to know. Only for interest, if I use one of the switches should I expect issues?
Sure, no problem.I hope it's OK if I let you decide.
On the other hand.What means OTOH?
Not all mpls files are shown
It was easier to implement as I thought.
It works perfect.
I used for a test an mpls with a 10h duration and the demuxed video is reduced to 3min.
You saved me a lot of time with this feature and I had to write only two lines of code.
Again many thanks for all your work.
It works perfect.
I used for a test an mpls with a 10h duration and the demuxed video is reduced to 3min.
You saved me a lot of time with this feature and I had to write only two lines of code.
Again many thanks for all your work.
Not all mpls files are shown
Awesome. You are most welcome and thank you for your testing. ![grateful :salute:](./images/smilies/icon_salute.gif)
I'll wait a little while for us to get some more experience with things before releasing it. And I'm still oscillating between implementing it in the GUI and not. Seems to be a damped oscillation, thankfully.![Wink ;)](./images/smilies/icon_e_wink.gif)
20 lines of code on my side, BTW. It still took several hours, though, because it was quite tricky to do the deletions correctly and robustly, including all the corner cases.
![grateful :salute:](./images/smilies/icon_salute.gif)
I'll wait a little while for us to get some more experience with things before releasing it. And I'm still oscillating between implementing it in the GUI and not. Seems to be a damped oscillation, thankfully.
![Wink ;)](./images/smilies/icon_e_wink.gif)
20 lines of code on my side, BTW. It still took several hours, though, because it was quite tricky to do the deletions correctly and robustly, including all the corner cases.
Not all mpls files are shown
The GUI presents now also this special mpls files and so it would be good to have the collapse option also in GUI.
Yes, the code is mostly fast written but the research like you said takes a lot of time sometimes.
I know exactly what you mean
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)