gnoling/UnlinkMKV

UnlinkMKV fails to detect segments

DrRandomacts opened this issue · 3 comments

randomacts@BlackSlab:/home/UnlinkMKV$ ./unlinkmkv '/media/randomacts/InfoDump/Video/[Coalgirls]Serial_Experiments_Lain(1520x1080_Blu-Ray_FLAC)/[Coalgirls]Serial_Experiments_Lain_01(1520x1080_Blu-Ray_FLAC)[573CDDD6].mkv'
UnlinkMKVu-Ray_FLAC)/[Coalgirls]Serial_Experiments_Lain_01(1520x1080_Bl processing /media/randomacts/InfoDump/Video/[Coalgirls]Serial_Experiments_Lain(1520x1080_Blu-Ray_FLAC)/[Coalgirls]Serial_Experiments_Lain_01(1520x1080_Blu-Ray_FLAC)
[573CDDD6].mkv
checking if file is segmented
/media/randomacts/InfoDump/Video/[Coalgirls]Serial_Experiments_Lain(1520x1080_Blu-Ray_FLAC)/[Coalgirls]Serial_Experiments_Lain_01(1520x1080_Blu-Ray_FLAC)[573CDDD6].mkv contains segmented chapters
generating chapter file
loading chapters
[EXT]
ChStart 00:00:00.000000000
ChEnd 00:01:58.660000001
Offset 00:01:58.660000001
OffTE 00:01:58.660000001
ChEn 1
[INT]
ChStart 00:01:58.660000002
ChEnd 00:22:17.336000002
Offset 00:01:58.660000001
OffTE 00:22:17.336000002
ChEn 1
[EXT]
ChStart 00:22:17.336000002
ChEnd 00:23:54.263000003
Offset 00:03:35.587000002
OffTE 00:23:54.263000003
ChEn 1
[EXT]
ChStart 00:23:54.263000003
ChEnd 00:25:52.923000004
Offset 00:05:34.247000003
OffTE 00:25:52.923000004
ChEn 1
[INT]
ChStart 00:05:34.247000004
ChEnd 00:25:52.923000004
Offset 00:05:34.247000003
OffTE 00:25:52.923000004
ChEn 1
[EXT]
ChStart 00:25:52.923000004
ChEnd 00:27:29.850000005
Offset 00:07:11.174000004
OffTE 00:27:29.850000005
ChEn 1
writing chapter temporary file
looking for segment parts
found part /media/randomacts/InfoDump/Video/tmp/26986/parts/[Coalgirls]Serial_Experiments_Lain_ED(1520x1080_Blu-Ray_FLAC)
[BF8449F7].mkv
found part /media/randomacts/InfoDump/Video/tmp/26986/parts/[Coalgirls]Serial_Experiments_Lain_OP(1520x1080_Blu-Ray_FLAC)_[DF129863].mkv
checking that all required segments were found
missing segments!


http://coalgirls.wakku.to/1329/serial-experiments-lain

(1080p one)

Episode 1/13 both have this issue for some reason.. I tried using --ignore-default-flag .. not sure if that is for this both it didn't help.

I only looked at episode 1, but I'm guessing it's the same for both. There's a mastering issue with the chapters in ep1, there are two "editions", both marked as default and enabled in the chapters. One with the correct intro/ending, the other for differing intro/ending files.

It's actually pretty easy to fix with mkvmerge gui. It's a good idea to back up both of the episode files somewhere else before you start this. Start that up, then in the application menu click "Chapter Editor" > Load, then choose episode 01. There, you'll see two editions*. select and delete the second edition using the remove chapter button. Click the chapter editor menu again, then save to matroska file, select the same episode file. It'll only take a few seconds to save. Try it against UnlinkMKV now.

: To know which edition to keep, you can check the segment IDs*. For episode one, click the chapters named "Opening", the correct one should have "b3d47291ba6010c19337603003f2b812". That's the one you want to -keep-. Delete the other edition.

**: If you run UnlinkMKV with "-ll TRACE", you'll get a lot of extra output. In there, you'll see the segment IDs, and it successfully match the right opening/ending against said IDs. The ones it can't match belong to the edition that needs to be removed from the chapters.

I actually just ended up going with NPC's release but I figured it would be a good idea to report it considering it sounded similar to an issue talked about in the pull request (more then one default chapter)

god damn coalgirls ..

My script ignores this @ https://github.com/hilts-vaughan/UnlinkMKV-GUI if you want to work around it... but apparently it's used elsewhere, so do not simply replace it with this one.