View Full Version : chapterEditor(Chapter-Database Disc2mkv Matroska-Tools[Tags,Menu,Multi-MKV])+CLI
Pages :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
18]
hubblec4
5th October 2024, 14:37
Thanks for the feedback, I will have a look at this.
hubblec4
8th October 2024, 01:05
Hi tomento
Here is a new test version (https://forum.videohelp.com/attachments/82727-1728345899/cE.7z).
tormento
8th October 2024, 13:22
Hi tomento
Rounding problem seems to be fixed.
Thanks.
hubblec4
20th October 2024, 16:41
chapterEditor(cE) rev1.45 is available.
Windows (https://forum.videohelp.com/attachments/82993-1729438370/cE-W(1.45).7z)
Linux (https://forum.videohelp.com/attachments/82994-1729438370/cE-L(1.45).7z)
After a long time, it's time again.
"Automatic creation and saving of Matroska tags"
This is a feature of mine for myself.
As I always edit the chapters first and save them in the Matroska file, the only thing missing at the end is the tags.
There is a button that can be used to create the tags, but from there it's always a few more clicks to save the tags in the Matroska file.
So everything is now automated and when you save the chapters for the last time, you can use the CTRL key to save the tags directly.
Time stamp files for MKVToolNix (MTX)
Until now, when films consist of several segments, the tracks should/must be extracted in order to stay synchronized.
A demux tool such as eac3to or DGDemux is used for this. eac3to was the first tool that could do this and it output a message that
duplicate audio frames were removed.
However, there are no duplicate audio frames.
A user had a great idea, but it wasn't clear to me either what he wanted and how the whole thing should be implemented.
With a lot of help from the DG-Team, analyzing the problem became much easier (many thanks Rocky).
It was clear that there were no duplicate audio frames and only the time stamps didn't "match".
MTX needs a little help to append the segments because the internal append mode works differently.
With the help of the correctly specified time stamps, which MTX supports, everything can be muxed together cleanly.
cE had to be expanded to include an m2ts parser because not all information can be found in the mpls.
At this point, a special thank you to Sherman, who did a lot of preparation for me when coding.
To create the time stamp files, cE first uses a fast mode.
For this, only the corresponding frame duration of the audio track is required.
cE then assumes that there are no more audio frames after the last video frame, which should be the case according to the Blu-ray specs.
This means that no more audio frames are removed and everything remains synchronized.
Thank you @Unforgettable for this inspiration.
Change chapterEditor
added &
fixed *
improved #
changed %
rev1.45 2024-10-20
// chapterEditor
& support for the file extension ".qp"
* Timestamps in the format HH:MM:SS.MS are now correctly rounded
// Matroska Chapters
& automatic creation and saving of Matroska Tags
- only for direct saving in Matroska files with the "Save" button
- CTRL key must be pressed for left or right click
// BD2mkv
& creation of MTX timestamp files for films or Playlists that use multiple segments (settings)
- timestamp files "must" be created only for audio tracks
- the audio tracks no longer have to be demuxed -> no more removal of audio frames
* mtxcfg file is now created correctly again if DolbyVision is present
% in the settings there is a new tab "MKV file" with the relevant settings
Klaus1189
20th October 2024, 21:52
Sounds very good.
marooned2
9th November 2024, 23:08
Is it possible to incrementally rename chapters, say, starting from 17?
Example Ch01, Ch02, Ch03... >>> Ch17,Ch18,Ch19...?
Also, not sure if it's a bug, but when I click "Copy all chapter names" nothing gets copied.
hubblec4
10th November 2024, 13:45
Hi marooned2
Is it possible to incrementally rename chapters, say, starting from 17?
Example Ch01, Ch02, Ch03... >>> Ch17,Ch18,Ch19...?
Yes, in the Chapter-Naming tool there is an option "Action range" -> select the 4th option " A fixed number from the selected chapter" -> and set the start number
Also, not sure if it's a bug, but when I click "Copy all chapter names" nothing gets copied.
This is not a "normal" copy like Windows copy/paste.
The content is internally handled.
After a "copy all chapter names" you can paste the names in other tabs.
GeoffreyA
30th December 2024, 19:06
Hi, hubblec4. After having done and muxed everything for a series, I found a chapter error, and so would have had to go back and do the editing in Notepad. Having a headache today, I was fed up. To my luck, I found chapterEditor, and it worked like magic in a few minutes. Thanks for the excellent tool!
vertigo220
27th January 2025, 06:32
I posted last summer about an issue with creating multi-edition MKVs, but all the back-and-forth posts regarding it are now gone for some reason. There's been an update since then, and while it wasn't clear based on the changelog, when I retried the problematic movie with the latest version, the issue I was having appears to have been resolved. Unfortunately, while I didn't spot any issues with the MKVs created from a couple movies, including the problematic one from before, the last two I tried have both resulted in messed up files. It doesn't seem to be handling the seamless branching properly for the audio track. At some points in the movie the audio will be properly sync'd, but in others it will be out of sync.
hubblec4
28th January 2025, 03:01
Hi vertigo220
To investigate the problem I would need the entire disc.
@GeoffreyA
You are welcome.
vertigo220
28th January 2025, 04:32
Unfortunately, I don't have the bandwidth for that. Due to my crappy ISP, I have limited data and don't have it to spare for this. As valiant an effort as chapterEditor is, I think I'm just going to give up on trying to do multi-edition MKVs, as it's proven to be too difficult and error-prone. Thanks, anyway.
hubblec4
28th January 2025, 14:01
Yes, it is also a problem to send such large data over the network. I understand you well, as my internet connection is not the best either.
The problem with the multi-edition MKVs is always merging the data from the M2TS files into a single file, as unfortunately MTX does not use a very good internal process.
A completely 100% perfect method would be to mux all the M2TS files separately into MKV files and then access the files using ordered chapters and generate the virtual timeline. But then you have a lot of MKV files, and whether you want that is up to you.
Have you also activated the option "Use time stamp files" in the latest cE version? This helps MTX to put the audio frames in the right place.
phant8m
13th March 2025, 03:56
Is there a way to open a, previously created, Multi-Edition MKV and use the BD2MKV Chapter check feature that was introduced in rev1.44?
When using BD2MKV to create a multi-edition MKV, I found the chapter check feature convenient to check the transitions and adjust as necessary. However, I didn't discover the feature until after already creating some Multi-Edition MKV files. I'm hoping there's a way to go back and check them using this feature.
hubblec4, many thanks for this tool!
hubblec4
13th March 2025, 13:54
Hi phant8m
and welcome to Doom9 forum.
The Chapter Check feature is only available for the currently created multi-edition MKV file.
Unfortunately, editing it afterwards is not possible.
On the other hand, I highly recommend using the new feature (timestamp files) for creating multi-edition files.
Only with timestamp files for the audio will you get a 100% clean multi-edition MKV file.
phant8m
14th March 2025, 07:00
Thanks for confirming. Regarding the timestamp feature, I think I'm using it.
I'm using rev1.45 of cE with DGDemux. "Timestamp Files" is checked on the MKV tab of the Disc2MKV preferences. I can confirm timestamp files for the audio tracks do get created. Hopefully this all means it's working.
All the multi-edition MKVs I've created are from the same TV series. For these, I've noticed that the transition from angle 2 back to angle 1, was 1 frame late causing audio/visual "glitches" on playback (from showing 1 frame of the next scene in angle 2 before it switches back to angle 1). This was easy enough to fix using the chapter check feature though.
hubblec4
14th March 2025, 11:59
All the multi-edition MKVs I've created are from the same TV series. For these, I've noticed that the transition from angle 2 back to angle 1, was 1 frame late causing audio/visual "glitches" on playback (from showing 1 frame of the next scene in angle 2 before it switches back to angle 1). This was easy enough to fix using the chapter check feature though.
OK, good to know that the chapter check feature helps.
Above the Timestamp files setting, there's an option for the "Magic" Timestamp Scale value.
This option should also be enabled, as it creates better timestamps for audio and video, which can lead to smoother transition control.
tormento
27th November 2025, 17:10
OK, good to know that the chapter check feature helps.
Do you plan to add High DPI support?
vertigo220
15th February 2026, 20:49
Have you also activated the option "Use time stamp files" in the latest cE version? This helps MTX to put the audio frames in the right place.
Sorry for the long delay. Since I unfortunately had to give up on this, I forgot to respond before. I don't remember if I tried this, and it might be worth trying again with it, but even if it works, it doesn't seem it's the best option anymore. I originally planned to use cE to create a multi-edition MKV that could later be encoded (with, e.g., Handbrake) down to a smaller, still multi-edition, file, but now that I'm looking into doing this, it doesn't seem possible. I'd always assumed it was due to the qfile which is meant to use for encoding, but when I just tried it, it didn't work, and searching this thread and the web I've been unable to find anything regarding doing this.
So unless I'm missing something, and it is possible to do this, it makes more sense to have a separate encode for each cut/edition with multiple files, as that would not only be smaller than one non-encoded file, even with the duplicated content, but it's better for compatibility. So is there a way to encode a multi-edition file in e.g. 264/265 with the seamless branching to allow for a much smaller single file, or is that truly not possible?
darksen
5th May 2026, 03:59
I have been getting errors sporadically with some Blu-rays, specifically I think (Don't remember exactly) this has only happened with Disney Blu-rays. The playlist cE loads includes always at least two m2ts files and one always only has a video track, because of this (I think) I get
mkvmerge v98.0 ('Chonks') 64-bit
'V:\BDMV\STREAM\00045.m2ts': Using the demultiplexer for the format 'MPEG transport stream'.
'V:\BDMV\STREAM\00018.m2ts': Using the demultiplexer for the format 'MPEG transport stream'.
'V:\BDMV\STREAM\00045.m2ts' track 0: Using the output module for the format 'AVC/H.264 (unframed)'.
'V:\BDMV\STREAM\00045.m2ts' track 1: Using the output module for the format 'DTS'.
'V:\BDMV\STREAM\00045.m2ts' track 2: Using the output module for the format 'HDMV PGS'.
'V:\BDMV\STREAM\00018.m2ts' track 0: Using the output module for the format 'AVC/H.264 (unframed)'.
Warning: 'V:\BDMV\STREAM\00018.m2ts': A track with the ID 2 was requested but not found in the file. The corresponding option will be ignored.
Warning: 'V:\BDMV\STREAM\00018.m2ts': A track with the ID 1 was requested but not found in the file. The corresponding option will be ignored.
Error: The file no. 1 ('V:\BDMV\STREAM\00018.m2ts') does not contain a track with the ID 1, or that track is not to be copied. The argument for '--append-to' was invalid.
Loading the playlist in mkvtoolnix directly and processing it works and as far as I can see in the job output it does processes the 00018.m2ts file.
mkvmerge v98.0 ('Chonks') 64-bit
Scanning 2 files in 1 playlist.
Done scanning playlists.
'V:\BDMV\STREAM\00045.m2ts': Using the demultiplexer for the format 'MPEG transport stream'.
'V:\BDMV\STREAM\00018.m2ts': Using the demultiplexer for the format 'MPEG transport stream'.
'V:\BDMV\STREAM\00045.m2ts' track 0: Using the output module for the format 'AVC/H.264 (unframed)'.
'V:\BDMV\STREAM\00045.m2ts' track 1: Using the output module for the format 'DTS'.
'V:\BDMV\STREAM\00045.m2ts' track 2: Using the output module for the format 'HDMV PGS'.
'V:\BDMV\STREAM\00018.m2ts' track 0: Using the output module for the format 'AVC/H.264 (unframed)'.
The file 'E:\remux\00100.mkv' has been opened for writing.
'V:\BDMV\STREAM\00045.m2ts' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 1920/1080.
Appending track 0 from file no. 1 ('V:\BDMV\STREAM\00018.m2ts') to track 0 from file no. 0 ('V:\BDMV\STREAM\00045.m2ts').
'V:\BDMV\STREAM\00018.m2ts' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 1920/1080.
The cue entries (the index) are being written...
Multiplexing took 4 minutes 12 seconds.
Can you please look into this?
I uploaded the generated files.
Thanks!
tebasuna51
5th May 2026, 08:49
Play the 00018.m2ts, maybe it is only a copy protection warning.
Convert only the 00045.m2ts instead the playlist.
A track with the ID 2 was requested but not found in the file
This sounds like mkvmerge's command-line was constructed with wrong track IDs. My guess is that whoever or whatever created the command-line didn't use the track IDs output by mkvmerge's track identification (e.g. "mkvmerge -J whatever.mpls"), but their own numbering scheme. While track IDs generated by mkvmerge are somewhat predictable, the only guarantee I make is that using the same mkvmerge versions for track identification and muxing of the same source file(s) will use the same track IDs. I do not guarantee algorithmic stability across versions, and especially not across container types or different source files even with the same mkvmerge version.
If the command-line used was generated by a program, that program might have a bug. If it was generated by a human, take to heart what I wrote above & change your approach. If it was generated by a cat, on the other hand — chapeau!
srs10
19th May 2026, 06:55
I am trying to use disk to mkv mode to create a multi edition mkv, but keep running into this error:
Abort: PgcDemux(Mod) Log file not found
I have set the correct location for pgcdemux in the settings.
Any advice?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.