Playlist doesn't open properly

eac3to forked from madshi eac3to 3.36
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Interesting bug got hehe.
Case: we have some BD disk.
If we open it in eac3to as is we got some number of playlists.
If we open any playlist from there it's fine, like those:

1) 00027.mpls, 1:24:32
[107+103+105+109+113+116+108+106+111+115+114+1+104+112+110+102].m2ts

And we'll see chapters, tracks etc fine.

If we take the same playlist and write direct path for 00027.mpls like:
>eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" we'll see the same as was from paylists list:
1) 00027.mpls, 1:24:32
[107+103+105+109+113+116+108+106+111+115+114+1+104+112+110+102].m2ts

but if we open it with usual command and direct path:
>eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" 1)

we got error
"Source file "C:\DISK\BDMV\PLAYLIST\00107.m2ts" not found." - it's first file from the playlist
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

Try giving a full path to the MPLS. Also try in eac3to 3.36. Report results.

Actually the command

eac3to "\BDMV\PLAYLIST\00027.mpls" 1)

does not make sense, because the mpls already points to the playlist, so 1) is just silly. You can just do:

eac3to "\BDMV\PLAYLIST\00027.mpls" -demux

Anyway, I tried your command with a full path and it worked fine:

Code: Select all

eac3to g:\rips\jfk_directors_cut\bdmv\playlist\00002.mpls 1)
Running in fast mode
Keeping dialnorm
analyze: 100%
M2TS, 2 video tracks, 3 audio tracks, 1 subtitle track, 3:25:30, 24p
1: Chapters, 13 chapters
2: h265/HEVC, 2160p24 (16:9), 10 bits
3: *h265/HEVC, 1080p24 (16:9), 10 bits
4: DTS Master Audio, English, 5.1 channels, 24 bits, 48kHz, dialnorm: 0dB
   (core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: 0dB)
5: DTS Master Audio, English, 2.0 channels, 24 bits, 48kHz, dialnorm: 0dB
   (core: DTS, 2.0 channels, 1509kbps, 48kHz, dialnorm: 0dB)
6: AC3, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Curly wrote:
Thu Jan 11, 2024 5:01 pm
Try giving a full path to the MPLS. Also try in eac3to 3.36. Report results.

Actually the command

eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" 1)

does not make sense, because the mpls already points to the playlist, so 1) is just silly. You can just do:

eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" -demux

Anyway, I tried your command with a full path and it worked fine:
It makes sence in this case bacause a lot of .m2ts files in playlist and if you want to see the specify playlist and chech the tracks etc you just can't.

And actually -demux don't work in this case too, I got the same error:
"eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" -demux
Source file "C:\DISK\BDMV\PLAYLIST\00107.m2ts" not found."

But if trying from all list of playlists it's working, so here some bug because it write that can't found the first .m2ts file from playlist folder "C:\DISK\BDMV\PLAYLIST\00107.m2ts" and it's weird because it should be open this file from STREAM folder with all .m2ts files.

Sent you PM files.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

I asked you to try with a full path. Please do that before I proceed. Thank you.
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Curly wrote:
Fri Jan 12, 2024 5:00 am
I asked you to try with a full path. Please do that before I proceed. Thank you.
Right, for 3.45 I wrote, for 3.36 the same, file not found (it's looking .m2ts files in PLAYLIST folder) but opening the same playlist from all playlist list fine.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

Show me the command and output when using full path!
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

I wrote in already earlier.

eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls"
1) 00027.mpls, 1:24:32
[107+103+105+109+113+116+108+106+111+115+114+1+104+112+110+102].m2ts

eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" 1)
Source file "C:\DISK\BDMV\PLAYLIST\00107.m2ts" not found.

eac3to "C:\DISK\BDMV\PLAYLIST\00027.mpls" -demux
Source file "C:\DISK\BDMV\PLAYLIST\00107.m2ts" not found.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

OK, listen!

1. Make a new thread for different problems. I'll have Rocky move it this time but if you do it again I'll just delete it.

2. You STILL haven't tried with a full path. A full path starts with g:\ or whatever. Here is an example:

eac3to g:\rips\jfk_directors_cut\BDMV\PLAYLIST\00002.mpls 1)

Yours starts with \BDMV.

This the third time now I ask for a full path.
Curly Howard
Director of EAC3TO Development
User avatar
Rocky
Posts: 3623
Joined: Fri Sep 06, 2019 12:57 pm

Playlist doesn't open properly

Post by Rocky »

Lemme try to help.

Tell us what directory you are in when you do this stuff! Let's assume you are in the top disk directory. E.g.:

g:\RATATOUILLE

Then you could do:

eac3to .\BDMV\PLAYLIST\00001.mpls"
and
eac3to .\BDMV\PLAYLIST\00001.mpls" 1)

or:

eac3to BDMV\PLAYLIST\00001.mpls"
and
eac3to BDMV\PLAYLIST\00001.mpls" 1)

Or you could give a full path. But "\BDMV\PLAYLIST\00001.mpls" is simply wrong. The only way that could work is if BDMV was in the top level (root) of the disk, which is unlikely, stupid, or both.

Again, you have to tell us the directory you are in when doing stuff.
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Ok, changed path to C:\DISK\BDMV but it doesn't change anything, because the problem not in the name of folder.
I provided the disk to Curly.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

I'm going to give you one last chance. If you don't respond exactly as I ask I'll give you a one-week time-out to think about it. Is it clear? You just keep ignoring us when we ask for things. Don't tell us what you think the problem is. Just exactly follow what we ask for. I have to know exactly what you are doing to be able to duplicate it.

1. Tell us what directory you are in when you do this.
2. Show the exact full eac3to command with the DOS prompt. Like this:

D:\Don\Programming\Delphi\EAC3TO>eac3to g:\rips\RATATOUILLE\BDMV\PLAYLIST\00001.mpls

3. Give the full output from the command.
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Curly wrote:
Fri Jan 12, 2024 11:15 am
1. Tell us what directory you are in when you do this.
2. Show the exact full eac3to command with the DOS prompt. Like this:
D:\Don\Programming\Delphi\EAC3TO>eac3to g:\rips\RATATOUILLE\BDMV\PLAYLIST\00001.mpls
3. Give the full output from the command.
Actually I tried few more things. Sorry for not wrote full path in the first place, I found exactly the problem now.

Seems the problem here just in incorrect processing UTF-8 symbols in the path when using direct pass for playlist file in some step (but just opening from playlists list is fine).
Because I tried actually C:\DISK path and it's working.

We should start again because here new data about the problem. :facepalm:

Here two cases:
1. Full path of disk (disk the same provided, I renamed the name of folder for easy path):
C:\DISK\ and here all fine with direct path for playlist or opening playlist from playlists list.

2. Problem case - adding to name the "ö" symbol.
Disk full path:
C:\DISKö\

commands:
here fine for opening from playlists list:

Code: Select all

C:\Users\HPotter>eac3to C:\DISKö 1)
Running in fast mode
Keeping dialnorm
analyze: 100%
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 1:24:31, 24p
1: Chapters, 12 chapters
2: h264/AVC, 1080p24 (16:9)
3: DTS Master Audio, Finnish, 5.1 channels, 24 bits, 48kHz, dialnorm: 0dB
   (core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: 0dB)
4: AC3, Finnish, 5.1 channels, 448kbps, 48kHz, dialnorm: -27dB
5: AC3, Finnish, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
6: Subtitle (PGS), Finnish
7: Subtitle (PGS), Swedish
8: Subtitle (PGS), Finnish
problem with opening directly from playlist file path:

Code: Select all

C:\Users\HPotter>eac3to C:\DISKö\BDMV\PLAYLIST\00027.mpls
1) 00027.mpls, 1:24:32
   [107+103+105+109+113+116+108+106+111+115+114+1+104+112+110+102].m2ts
   - Chapters, 12 chapters
   - h264/AVC, 1080p24 (16:9)
   - DTS Master Audio, Finnish, multi-channel, 48kHz
   - AC3, Finnish, multi-channel, 48kHz
   - AC3, Finnish, stereo, 48kHz

C:\Users\HPotter>eac3to C:\DISKö\BDMV\PLAYLIST\00027.mpls 1)
Source file "C:\DISKo\BDMV\PLAYLIST\00107.m2ts" not found.
With quotes the same thing:

Code: Select all

C:\Users\HPotter>eac3to "C:\DISKö\BDMV\PLAYLIST\00027.mpls" 1)
Source file "C:\DISKo\BDMV\PLAYLIST\00107.m2ts" not found.

Code: Select all

C:\Users\HPotter>eac3to "C:\DISKö\BDMV\PLAYLIST\00027.mpls" -demux
Source file "C:\DISKo\BDMV\PLAYLIST\00107.m2ts" not found.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

It simply does not fail for me:

Code: Select all

D:\Don\Programming\Delphi\EAC3TO>eac3to g:\RATATOUILLEö\BDMV\PLAYLIST\00001.mpls 1)
Running in fast mode
Keeping dialnorm
analyze: 100%
M2TS, 1 video track, 5 audio tracks, 4 subtitle tracks, 1:50:32, 123.814p
1: Chapters, 32 chapters
2: h264/AVC, 1080p24/1.001 (16:9)
3: RAW/PCM, English, 5.1 channels, 24 bits, 48kHz, dialnorm: 0dB
4: AC3 EX, English, 5.1 channels, 640kbps, 48kHz, dialnorm: -31dB
5: AC3 EX, French, 5.1 channels, 640kbps, 48kHz, dialnorm: -31dB
6: AC3 EX, Spanish, 5.1 channels, 640kbps, 48kHz, dialnorm: -31dB
7: *AC3, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
8: Subtitle (PGS), English
9: Subtitle (PGS), French
10: Subtitle (PGS), Spanish
11: *Subtitle (PGS), English
What is your OS?
What is your system locale set to?
Do you have the Windows beta UTF8 support turned on?

Just answer those directly, nothing else. Thank you.
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Windows 11 last january update 22631.3007.
System locale set to English.
"Windows beta UTF8 support" - dunno, I didn't install specially that thing, just usual Windows.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

Must be something fishy about the disk structure. Did you give me a link to download the whole disk? If so, please remind me.

In tracing my code, eac3to changes

g:\RATATOUILLEö\BDMV\PLAYLIST\00001.mpls

to

g:\RATATOUILLEö\BDMV\PLAYLIST\..\STREAM\00027.m2ts

which is a good path. But yours is missing the ..\STREAM. I can't tell from code reading why that is the case, so I have to get the entire disk and try to duplicate it.
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Curly wrote:
Fri Jan 12, 2024 1:12 pm
Must be something fishy about the disk structure. Did you give me a link to download the whole disk? If so, please remind me.
Sent PM.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

Thank you.
Curly Howard
Director of EAC3TO Development
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

I may have a fix:

Code: Select all

D:\Don\Programming\Delphi\EAC3TO>eac3to "g:\rips\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\bdmv\playlist\00027.mpls" 1)
Running in fast mode
Keeping dialnorm
analyze: 100%
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 1:24:31, 24p
1: Chapters, 12 chapters
2: h264/AVC, 1080p24 (16:9)
3: DTS Master Audio, Finnish, 5.1 channels, 24 bits, 48kHz, dialnorm: 0dB
   (core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: 0dB)
4: AC3, Finnish, 5.1 channels, 448kbps, 48kHz, dialnorm: -27dB
5: AC3, Finnish, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
6: Subtitle (PGS), Finnish
7: Subtitle (PGS), Swedish
8: Subtitle (PGS), Finnish
I will give you the test version in an hour or two after a current upload finishes.

That sure is some obfuscation.
Curly Howard
Director of EAC3TO Development
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

OK, Harry, try this:

https://rationalqm.us/misc/eac3to_HPotter.rar

It has the hidden stream marking too.

If it still fails, post the full command line and output (should look just like mine). I actually think there's only a 50-50 chance it fixes your problem. I emphasize your problem because as you can see from my post, it's works just dandy for me (and always did).

If it doesn't work we'll have to start giving you instrumented debug loads.
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

The same as before:

Code: Select all

C:\Users\HPotter>eac3to "C:\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00027.mpls"
1) 00027.mpls, 1:24:32
   [107+103+105+109+113+116+108+106+111+115+114+1+104+112+110+102].m2ts
   - Chapters, 12 chapters
   - h264/AVC, 1080p24 (16:9)
   - DTS Master Audio, Finnish, multi-channel, 48kHz
   - AC3, Finnish, multi-channel, 48kHz
   - AC3, Finnish, stereo, 48kHz

C:\Users\HPotter>eac3to "C:\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00027.mpls" 1)
Source file "C:\Hairiotekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00107.m2ts" not found.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

Somehow your [o + umlaut] is being mapped to just [o]. Let's try to find out where and why.

Re-download the test build: https://rationalqm.us/misc/eac3to_HPotter.rar
Run it and post the output. Here is my output. Note the debug lines at the beginning and be sure to include them. Also make sure to include the command line.

Code: Select all

D:\Don\Programming\Delphi\EAC3TO>eac3to "g:\rips\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00027.mpls" 1)
ref 0: correct
ref 0a: correct
ref 0e
ref 1: correct
Running in fast mode
Keeping dialnorm
analyze: 100%
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 1:24:31, 24p
1: Chapters, 12 chapters
2: h264/AVC, 1080p24 (16:9)
3: DTS Master Audio, Finnish, 5.1 channels, 24 bits, 48kHz, dialnorm: 0dB
   (core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: 0dB)
4: AC3, Finnish, 5.1 channels, 448kbps, 48kHz, dialnorm: -27dB
5: AC3, Finnish, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
6: Subtitle (PGS), Finnish
7: Subtitle (PGS), Swedish
8: Subtitle (PGS), Finnish
Curly Howard
Director of EAC3TO Development
DAE avatar
HPotter
Posts: 38
Joined: Thu Jul 29, 2021 9:54 am

Playlist doesn't open properly

Post by HPotter »

Curly wrote:
Sat Jan 13, 2024 6:56 am
Somehow your [o + umlaut] is being mapped to just [o]. Let's try to find out where and why.

Re-download the test build: https://rationalqm.us/misc/eac3to_HPotter.rar
Run it and post the output. Here is my output. Note the debug lines at the beginning and be sure to include them. Also make sure to include the command line.

Code: Select all

C:\Users\HPotter>eac3to "C:\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00027.mpls" 1)
ref 0: correct
ref 0a: not correct
ref 1: not correct
Source file "C:\Hairiotekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00107.m2ts" not found.
User avatar
hubblec4
Posts: 221
Joined: Tue May 02, 2023 6:03 pm

Playlist doesn't open properly

Post by hubblec4 »

HPotter wrote:
Sat Jan 13, 2024 3:21 am

C:\Users\HPotter>eac3to "C:\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00027.mpls" 1)
Source file "C:\Hairiotekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00107.m2ts" not found.[/code]
What I not understand is, why is the 00107.m2ts searched in the PLAYLIST folder? m2ts files are never located in the PLAYLIST folder.
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

@hubblec4

Please just watch for now. Don't distract Harry. The path fragment "PLAYLIST" is supposed to be mapped to "PLAYLIST\..\STREAM" internally but that is not happening. Everything is in the right place. My debug stuff is trying to find out why the mapping is not happening, and where/why the umlaut is getting lost. Thank you.

What makes this tricky is that it works fine for me. Maybe system related, or Win11 related. We'll track it down.
Curly Howard
Director of EAC3TO Development
User avatar
Curly
Posts: 716
Joined: Sun Mar 15, 2020 11:05 am

Playlist doesn't open properly

Post by Curly »

@HPotter

Please re-download the test version and run again. Now it should look like this:

Code: Select all

D:\Don\Programming\Delphi\EAC3TO>eac3to "g:\rips\Hairiötekija 2015 1080p FIN Blu-ray AVC DTS-HD MA 5.1-ESiR\BDMV\PLAYLIST\00027.mpls" 1)
ref 0: correct
ref 1: correct
ref 2: correct
ref 3: correct
ref 0e
ref 4: correct
Running in fast mode
Keeping dialnorm
analyze: 100%
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 1:24:31, 24p
1: Chapters, 12 chapters
2: h264/AVC, 1080p24 (16:9)
3: DTS Master Audio, Finnish, 5.1 channels, 24 bits, 48kHz, dialnorm: 0dB
   (core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: 0dB)
4: AC3, Finnish, 5.1 channels, 448kbps, 48kHz, dialnorm: -27dB
5: AC3, Finnish, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
6: Subtitle (PGS), Finnish
7: Subtitle (PGS), Swedish
8: Subtitle (PGS), Finnish
I have a theory now, and put in a fix to test it. Theory: Delphi 7 ExtractFilePath() does not support wideString. But then why does it work for me?
Curly Howard
Director of EAC3TO Development
Post Reply