Log in

View Full Version : MKVToolNix v99.0 released


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

Ian1182
18th October 2021, 19:46
I am assuming you are using a Windows PC.

Create a file called oniiz86.bat in a folder, contents of file as per my earlier response. Hopefully you are familar on the process to create a bat file, if not Google is your friend.

You then double click the bat file and it should set the audio & subtitle tracks for all the MKV files in that folder.

If you don't wish to update all files, the best approach would be to create a test folder, add the bat file to the test folder, copy over any MKV files you wish to update. Then run the bat file and copy back the updated files to your video folder.

Nope, its not set and forget as this is a manual process to add the audio/subtitle languages using a bat file.

Of course you can set the language to eng in the MKVTOOLNIX GUI and it should be honoured. I did a quick test and all was good. When no language was specified it was indeed left as undefined allowing the video player to decide on what to report.

oniiz86
18th October 2021, 20:06
I am assuming you are using a Windows PC.

Create a file called oniiz86.bat in a folder, contents of file as per my earlier response. Hopefully you are familar on the process to create a bat file, if not Google is your friend.

You then double click the bat file and it should set the audio & subtitle tracks for all the MKV files in that folder.

If you don't wish to update all files, the best approach would be to create a test folder, add the bat file to the test folder, copy over any MKV files you wish to update. Then run the bat file and copy back the updated files to your video folder.

Nope, its not set and forget as this is a manual process to add the audio/subtitle languages using a bat file.

Of course you can set the language to eng in the MKVTOOLNIX GUI and it should be honoured. I did a quick test and all was good. When no language was specified it was indeed left as undefined allowing the video player to decide on what to report.

Yes I am using Windows, this would be my first foray in creating a batch file, so hopefully I'll get the hang of it, I'm not sure what you mean by setting the language to "eng" as I couldn't find that setting anywhere unless you meant adjusting the header editor which is how I'm making such changes now?

Ian1182
18th October 2021, 20:35
How are you creating the MKV file in the first place. On the MKVToolNix GUI you have options to set the language for any of the tracks (video, audio, subtitles, etc).

The header editor is MKVPropEdit which is more of a command line tool hence the use of a windows bat file to issue the commands.

Which one are you using? If you are muxing the file from scratch using MKVToolNix it should be straightforward to set any of the attributes you need.

The header editor is useful for adding/deleting/modifying file characteristics on an existing MKV file.

Liisachan
18th October 2021, 23:47
You can also write "English" in the "Track name" edit-box, when creating your mkv using mkvroolnix-gui.exe. Many players show this text for the track. Maybe this solves your problem?

To use command line things, let's say you downloaded a standalone version of MKVToolnix, and unzipped the files in D:\mkvtoolnix (that is, a folder named "mkvtoolnix" in the root of your D: drive). For the simplicity, assume you put your source files in the same folder (D:\mkvtoolnix). I'll call them input.264, input.ogg, input.ass, but they can be anything.

1. Open the dos-box, by hitting [Win]+[R] and typing cmd [enter]
2. In the dos-box (a black window), type D: [enter] then type cd mkvtoolnix [enter]. It's good if the prompt says "D:\mkvtoolnix >" now.
3. Type this to create "your.mkv": mkvmerge --output "your.mkv" input.264 input.ogg input.ass [enter]
4. You'll see a few lines in your dos-box. Wait until it says "Progress: 100%". It's good, if you see no errors or warnings.
5. Now type this: mkvpropedit "your.mkv" --edit track:a1 --set language=eng --edit track:s1 --set language=eng [enter]
6. It's good, if it says "Done." without errors.

A batch file may be used when you don't want to do the same thing manually again and again. Create a small text file that has the same 2 lines you typed above:
mkvmerge --output "your.mkv" input.264 input.ogg input.ass
mkvpropedit "your.mkv" --edit track:a1 --set language=eng --edit track:s1 --set language=eng
and save it as, say, "do-it.bat" in D:\mkvtoolnix. Now you can just type do-it [enter] and the same thing will happen in one go.

In reality, you can replace any file name in the above example (e.g. input.264) with an actual file path (e.g. "D:\path to\some folder\your video.mp4"). Quotation marks " are necessary if the path contains space(s), optional otherwise. If you're not sure, ask mkvtoolnix-gui to generate a command line for you: use the GUI as you usually do, but instead of Start multiplexing, you can use the menu "Multiplexer | Show command line". Paste that into your do-it.bat.

The FOR loop and %% variables can be used to create a "meta-batch" file to run similar command lines in one go. You may want to try that once you're comfortable with normal command lines. However, in the above example, we're assuming that the track #1 is always English. If, for example, track #1 is Swedish and #2 is English, then the command line to use will be different, and if the track # for English is not fixed, things get difficult...

If you only need to edit a few MKV files once in a while, and you don't want to use command lines, well, this "side channel attack" (?) should work too: create your mkv using GUI normally, but set some totally unrelated language code, say Chinese, for tracks that are actually English. Then, open your fake-Chinese MKV with a binary editor, find "chi" & "zh" near CodecID, and overwrite them as "eng" & "en" respectively. The result should be a valid MKV file (unless the data is CRC-protected; mkvmerge doesn't write CRCs, so that's not a problem). People will say "Don't do this" and I wouldn't recommend this final method either, but it should work.

oniiz86
19th October 2021, 07:59
How are you creating the MKV file in the first place. On the MKVToolNix GUI you have options to set the language for any of the tracks (video, audio, subtitles, etc).

The header editor is MKVPropEdit which is more of a command line tool hence the use of a windows bat file to issue the commands.

Which one are you using? If you are muxing the file from scratch using MKVToolNix it should be straightforward to set any of the attributes you need.

The header editor is useful for adding/deleting/modifying file characteristics on an existing MKV file.

I'm sorry for confusing matters, I'm creating a file in the simplest way possible, selecting all the appropriate language tags, that is not the concern, the problem was that legacy language element "eng" is no longer enabled by default like all foreign languages but as I was told this is the correct behavior by design,

https://i.imgur.com/sixl6ZV.png?1

It was the Header Editor section I noticed this discrepancy between English & foreign languages with the legacy elements, you'll note that it is absent when I would've very much preferred for it to be active without manually enabling it,

https://i.imgur.com/1eFMMFo.png

This is how it is for foreign legacy language elements, enabled by default

https://i.imgur.com/yx7oNuw.png

oniiz86
19th October 2021, 08:06
You can also write "English" in the "Track name" edit-box, when creating your mkv using mkvroolnix-gui.exe. Many players show this text for the track. Maybe this solves your problem?

To use command line things, let's say you downloaded a standalone version of MKVToolnix, and unzipped the files in D:\mkvtoolnix (that is, a folder named "mkvtoolnix" in the root of your D: drive). For the simplicity, assume you put your source files in the same folder (D:\mkvtoolnix). I'll call them input.264, input.ogg, input.ass, but they can be anything.

1. Open the dos-box, by hitting [Win]+[R] and typing cmd [enter]
2. In the dos-box (a black window), type D: [enter] then type cd mkvtoolnix [enter]. It's good if the prompt says "D:\mkvtoolnix >" now.
3. Type this to create "your.mkv": mkvmerge --output "your.mkv" input.264 input.ogg input.ass [enter]
4. You'll see a few lines in your dos-box. Wait until it says "Progress: 100%". It's good, if you see no errors or warnings.
5. Now type this: mkvpropedit "your.mkv" --edit track:a1 --set language=eng --edit track:s1 --set language=eng [enter]
6. It's good, if it says "Done." without errors.

A batch file may be used when you don't want to do the same thing manually again and again. Create a small text file that has the same 2 lines you typed above:
mkvmerge --output "your.mkv" input.264 input.ogg input.ass
mkvpropedit "your.mkv" --edit track:a1 --set language=eng --edit track:s1 --set language=eng
and save it as, say, "do-it.bat" in D:\mkvtoolnix. Now you can just type do-it [enter] and the same thing will happen in one go.

In reality, you can replace any file name in the above example (e.g. input.264) with an actual file path (e.g. "D:\path to\some folder\your video.mp4"). Quotation marks " are necessary if the path contains space(s), optional otherwise. If you're not sure, ask mkvtoolnix-gui to generate a command line for you: use the GUI as you usually do, but instead of Start multiplexing, you can use the menu "Multiplexer | Show command line". Paste that into your do-it.bat.

The FOR loop and %% variables can be used to create a "meta-batch" file to run similar command lines in one go. You may want to try that once you're comfortable with normal command lines. However, in the above example, we're assuming that the track #1 is always English. If, for example, track #1 is Swedish and #2 is English, then the command line to use will be different, and if the track # for English is not fixed, things get difficult...

If you only need to edit a few MKV files once in a while, and you don't want to use command lines, well, this "side channel attack" (?) should work too: create your mkv using GUI normally, but set some totally unrelated language code, say Chinese, for tracks that are actually English. Then, open your fake-Chinese MKV with a binary editor, find "chi" & "zh" near CodecID, and overwrite them as "eng" & "en" respectively. The result should be a valid MKV file (unless the data is CRC-protected; mkvmerge doesn't write CRCs, so that's not a problem). People will say "Don't do this" and I wouldn't recommend this final method either, but it should work.

Thanks so very much for your assistance & @Ian1182, I'll see how I go & report back if it is a success!

Ian1182
19th October 2021, 09:30
Maybe I'm getting confused with the problem you are seeing.

If I add a audio or subtitle track using the MKVToolNix GUI and set a language, I see that in the resulting MKV file even if the language is English. However if I add a track and do not set any language (or set to "und") then the resulting MKV has no language attribute.

I see that as correct, if you don't set a language in the GUI it should be left as undefined (or blank) and allow the player to determine.

What I would see as incorrect would be for the GUI to set the language as undefined when the user explicitly specifies "eng". My experience is that the GUI does respect a user choice.

Mosu
19th October 2021, 11:34
Their problem is their player. It doesn't support the Matroska specs properly. When the legacy language element is set to English ("eng"), mkvmerge doesn't write it to the file. That is spec-compliant as the specs say that the element's default value is "eng", and any reader must use that value if the element isn't present.

Their player doesn't do that.

Therefore they want to have a way to force writing that element to the file. mkvmerge doesn't provide a way for that.

then the resulting MKV has no language attribute.

That is incorrect. In Matroska terms it isn't possible not to set a language. Semantically a language code is always in effect, whether or not the elment is present in the file doesn't matter.

Ian1182
19th October 2021, 13:12
@Mosu . Thanks for clearing that up.

GAP
21st October 2021, 12:16
What are the differences between the two versions of MKVToolnix?

Mosu
21st October 2021, 12:20
Which two versions are you talking about?

Nejiro
22nd October 2021, 10:14
I am encountering with this latest version 62 on Ubuntu always errors when I load the index file of a bluray, example almost always tells me that file x cannot be joined to file y because they have different bitrate instead of the content if I go to see the m2ts file it's all on a file (type 0001.m2ts) and it has no different bitrate, in fact if I directly load the m2ts file it works, if I use the index file it always gives me this error, it didn't happen before ......

Liisachan
22nd October 2021, 12:48
To clarify: 1) If you don't specify the language of a track, then it's set as "und" (Undefined). This does not mean that the Language element is NOT defined; actually it is explicitly defined as "und" (a bit confusing, kind of oxymoron :confused:).
2) If the Language value is indeed not defined (non-existing), then, by the Matroska Specks, the missing element is implicitly assumed to have the default value, which is "eng".
3) Technically, and even more confusing, both 1) and 2) are supposed to be ignored anyway whenever the LanguageIETF is defined for that track.

Perhaps a helpful thing to do is, to open a ticket if your player doesn't treat the non-existing Language element as "eng" - such Specs are admittedly confusing and in a way arbitrarily English-centric, but it's too late to change this now, and we're going to have to politely ask the player's devs to support this.

Adding --track-name is helpful for human users, in the menu etc. (e.g. --track-name "0:Français" for French subs); but it doesn't change the Language value.

@oniiz86: to answer your PM, you don't need to demux/remux the existing files. If you have your files to edit in C:\test, then you can create this test1.bat in the same folder:
SET PropEdit="X:\path to\mkvtoolnix\mkvpropedit.exe"

FOR %%f IN (*.mkv) DO %PropEdit% "%%f" --edit track:a1 --set language=eng --edit track:s1 --set language=eng


...assuming that the 1st Audio track and 1st Subtitle track are English. If for example, the audio in English is #2, change "a1" to "a2". The first line sets the path to mkvpropedit.exe. The FOR loop means, "FOR each file %%f DO this". In Dos-box, one can type:

cd /d C:\test
test1


Since the files will be rewritten in-place, you may want to save the original files first just in case something goes wrong. To automatically copy & save the original files as read-only, you can simply add something like this before the FOR loop in test1.bat:
mkdir BACKUP
copy /b *.mkv BACKUP\*.mkv
attrib +r BACKUP\*.mkv

Nejiro
23rd October 2021, 18:14
Depends on the subtitle format in question. For SRT-style subtitles (CodecID S_TEXT/UTF-8) and SSA/ASS (CodecID S_TEXT/SSA or …/ASS) it is possible by creating a temporary Matroska file consisting of the first file (the one without a subtitle track) and an empty text subtitle file. For SRT this is trivia; just create a text file, leave it empty and save it under "empty.srt". For SSA/ASS it gets a bit more complicated as SSA/ASS contains formatting blocks etc; the procedure is extracting the subtitles from the file you want to append, edit that extracted SSA/ASS file with a text editor & remove all lines starting with "Dialogue:". That way you'll have an SSA/ASS file with the same global header but without content.

MKVToolNix can then recognize empty SRT/SSA/ASS subtitle files & will create a subtitle track in the output file.

Step 2 is taking that temporary file & appending the file you wanted to append originally.

Unfortunately I didn't quite understand what to do as none of my subtitles have that format, they are all in HDMV-PGS format, the only thing I managed to do is take the second track (the one where there are subtitles) save only the subtitles so that I get an .mks file which I then put in the first track so that when I add the track with the subtitles they only merge that then in the file obtained the subtitles start immediately and I would not want them to be there but in the second track I saw that there are and they also report with the times, so I have to keep the subtitles off and then activate them when needed .....

tormento
24th October 2021, 15:55
I'd like to save the AVS script that I used to encode the video along with the mkv, so I can see after some years, how I got that result.

Is there a comment section in MKV where you suggest to put such a small text? If readable thru MediaInfo it would be even better.

Mosu
24th October 2021, 18:02
Either use tags with a tag name you invent for the occasion (e.g. ENCODED_WITH_AVS_SCRIPT), or, simply attach it. The latter is preferable as there's more meta data stored with that method: you have to assign a MIME type to it, and you can keep your file name.

Mosu
24th October 2021, 18:05
so I have to keep the subtitles off and then activate them when needed .....

If you go the route you described, you can use the "delay" feature on the subtitle track in the first file when appending and use a ridiculous high negative value with it (its absolute value must be higher than the length of the first part). That way all entries from that first file (the ones you don't want to see) will end up with negative timestamps & will not actually be written to the output file.

Untested.

Nejiro
24th October 2021, 19:12
Yes thanks, it's a good idea, I'll try to see if it works ...... I put a value like 1,000,000 to be sure it goes beyond?

Mosu
24th October 2021, 19:45
Sure, or just 10000. The unit is "seconds"; meaning this is just below 3h.

Nejiro
24th October 2021, 20:05
One thing I wanted to ask, one of the functions that I use most to join two files is "hang files" so that they are placed one behind the other to obtain a single file, the function "add as additional parts" what is it for? 'did I ever understand ....
Thanks

Mosu
24th October 2021, 21:37
Not really. See this FAQ entry (https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Adding-files-vs.-Appending-files-vs.-adding-as-additional-parts) for details.

Nejiro
25th October 2021, 19:29
What is a lossless format that I can use instead of wav? Because several of my films have track in pcm / wav both in 2 channels and in 5.1, if I turn them into flac I would have a considerable space reduction without loss of quality but then unfortunately I can't merge two or three files as the program doesn't support it, I tried wavpack and it works but then it is not read to me by my Zidoo Z9X player, so I don't know what to use as a lossless format .....
Thanks

SeeMoreDigital
25th October 2021, 19:37
...if I turn them into flac I would have a considerable space reduction without loss of quality but then unfortunately I can't merge two or three files as the program doesn't support it... How about merging the (two or three) files which include PCM.wav audio first. Then extract the PCM.wav audio and re-encode it to Flac...

Nejiro
25th October 2021, 20:06
I have often done this but the times do not always coincide, if you merge multiple files and each audio file is contained in the same it is almost always fine, if after merging everything I extract the single pcm track and then transform it into flac many times the times do not coincide and unfortunately nothing can be done because it is fine for the first file and it starts to desynchronize after the second or third, so I can't even synchronize it with the delays etc .... I hope I have explained myself, sorry but I use a translator.

Mosu
25th October 2021, 20:11
What is a lossless format that I can use instead of wav? Because several of my films have track in pcm / wav both in 2 channels and in 5.1, if I turn them into flac I would have a considerable space reduction without loss of quality but then unfortunately I can't merge two or three files as the program doesn't support it

There are tons of lossless formats out there, and MKVToolNix supports quite a number of them. In no particular order:

Uncompressed PCM
FLAC
TTA (True Audio)
WavPack
ALAC (Apple Lossless Audio Codec)
DTS-HD MA (Master Audio)
TrueHD

As for FLAC: you can still append such tracks, and the result mostly works fine, if you enable the proper override. See this FAQ entry (https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Appending-&-splitting-FLAC-audio-tracks-not-supported) for details.

Nejiro
25th October 2021, 20:19
The problem is that many concert blurays have different tracks, for example, there is the main concert in dts-hd 96 and sometimes there are clips in dts-hd 48, I have no way to produce dts files (and not even true- hd) with no program then to merge the two files I extract the dts track and with audacity I transform it into pcm to put both at 48 or 96 so that I can merge them, often the files are even more than two and if I merge the single tracks the times coincide if after obtaining the single file I extract the pcm track and transform it into flac the times then do not coincide that's why I need to merge flac files but if it is not possible it does nothing ..... Alac is as big as PCM and audacity does not support it well, wavpack I can get it with ffmpeg or with native wavpack on ubuntu because audacity does not support it in output, in a nutshell it remains only the flac for me unfortunately ..... and the flac there is no way to join them.
Thanks

Mosu
25th October 2021, 20:21
and the flac there is no way to join them.

Again, you STILL CAN APPEND THEM. Read the FAQ entry!

Nejiro
25th October 2021, 20:28
But really now is there a way to merge the flacs? You give me great news because I have not even tried as I always got an error when I had to merge files with the flac inside, from which version is this functionality?
Thanks

Mosu
25th October 2021, 20:32
I… seem to completely fail to convey to you that you should read the FAQ entry I've linked, as the answer how to do that is written in said FAQ entry.

Nejiro
25th October 2021, 20:37
Sorry but maybe we don't understand each other, on the faq I find this section about flacs https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Appending-&-splitting-FLAC-audio-tracks-not-supported

Nejiro
25th October 2021, 20:56
I added the entry --engage append_and_split_flac in the gui on the options (I hope I put them in the right place) as written in the faq and I tried to merge two flacs but it gives an error, it says that these tracks are not supported, do not give an error immediately, try to join them but then from error .....

Mosu
25th October 2021, 22:33
Not supported!? Uh… is your MKVToolNix version compiled without FLAC support, maybe? Using Gentoo with use flags that prohibit FLAC?

Check in the GUI via "Help" → "System information". Near the bottom it'll list "Compiler and libraries". Does this section contain "FLAC"?

MKVToolNix has supported FLAC for… well over a decade. It's optional, though, and one can compile MKVToolNix support without it. By default it is enabled if libFLAC is detected in the "configure" stage.

And it would help if you posted the actual error message. Verbatim, please. Thanks.

Nejiro
25th October 2021, 23:53
Does this section contain "FLAC"?



https://i.postimg.cc/t1fVBJJg/Schermata-del-2021-10-26-00-52-25.png (https://postimg.cc/t1fVBJJg)

Mosu
26th October 2021, 08:03
Soooooooooo… can you upload the files somewhere?

And again, what is the exact error message? Please copy&paste it here, don't just paraphrase.

Nejiro
26th October 2021, 08:16
https://i.postimg.cc/F7jSvrf1/Schermata-del-2021-10-26-09-13-18.png (https://postimg.cc/F7jSvrf1)

https://i.postimg.cc/YGW9xRYj/Schermata-del-2021-10-26-09-15-22.png (https://postimg.cc/YGW9xRYj)

https://i.postimg.cc/kBF2ZTZb/Schermata-del-2021-10-26-09-14-32.png (https://postimg.cc/kBF2ZTZb)

Mosu
26th October 2021, 11:02
Which version of MKVToolNix is this?

Liisachan
26th October 2021, 11:29
The problem is that many concert blurays have different tracks, for example, there is the main concert in dts-hd 96 and sometimes there are clips in dts-hd 48
This may not be the problem here, but you can't probably append 96000.flac + 48000.flac.

Also, if your files happen to be like this...
0.mkv (track 0 = video, track 1 = flac)
1.mkv (track 0 = flac, track 1 = video)
... then -o out.mkv 0.mkv + 1.mkv probably doesn't work. You'll have to manually map the tracks to append, like --append-to 1:1:0:0,1:0:0:1

Mosu
26th October 2021, 13:13
You are definitely correct in that one cannot append two FLAC tracks that have different sampling frequencies, no matter which option one uses, Liisachan.

The other part of your answer doesn't apply in this case, though, as they're trying to append FLAC files, not Matroska files. You can see both source file names in the error message. Additionally, the "pre-parsing FLAC file…" messages only occur in the FLAC reader, not for FLAC in other containers.

On top of all that the last sentence of the error message is the one only output if mkvmerge doesn't support appending of these track types in general. Other reasons (sampling frequency, number of channels, codec type mismatch) have distinctly different error messages.

Nejiro
26th October 2021, 13:19
Which version of MKVToolNix is this?

It is the latest version 62.0.0 (Apollo) https://flathub.org/apps/details/org.bunkus.mkvtoolnix-gui

Obviously I have not tried to combine flacs with different samples, I know that you cannot do that with any file, they are always the same but that error has always been that and so by now I have given up on flac for my mkvs unfortunately .....

Unfortunately, however, as already said, apart from the wav that is not compressed I cannot find any lossless container that is supported by my Zidoo Z9X, I have also tried True-Audio (tta), Alac and wavpack which I get very well with ffmpeg but none of the three is supported

Nejiro
26th October 2021, 13:48
This may not be the problem here, but you can't probably append 96000.flac + 48000.flac.

Also, if your files happen to be like this...
0.mkv (track 0 = video, track 1 = flac)
1.mkv (track 0 = flac, track 1 = video)
... then -o out.mkv 0.mkv + 1.mkv probably doesn't work. You'll have to manually map the tracks to append, like --append-to 1:1:0:0,1:0:0:1


Sorry but I didn't understand anything :confused:

Liisachan
26th October 2021, 18:00
Sorry, I'm not sure what you're trying to do... Concatenating FLACs is trivial, and not related to Matroska.

On Windows, fb2k can do 1.flac + 2.flac + 3.flac + ... = concatenated.flac on the fly, without manually decoding them to WAV, and the result is perfect (bit-identical when decoded). Audacity can do a similar thing, and the result is at least sample-accurate and practically acceptable.

Like @SeeMoreDigital said, appending them as WAV is the easiest and safest; you can just append WAV files and (re-)encode (in which case, you could optionally try .wv insteald of .flac, since .flac may be inconvenient in Matroska). If the audio is already in Matroska, you can first mkvextract. MKVToolNix is surely not an audio editor, and you're making things difficult by using it to concatenate audio files... or is this something different, directly related to Matroska? I hope you can do what you want to, anyway :)

SeeMoreDigital
26th October 2021, 18:16
Personally speaking...

Until we have more detailed information about each one of the source files Nejiro is trying to merge together, any recommendations are pointless :scared:

Nejiro
26th October 2021, 20:57
Sorry, I'm not sure what you're trying to do... Concatenating FLACs is trivial, and not related to Matroska.

On Windows, fb2k can do 1.flac + 2.flac + 3.flac + ... = concatenated.flac on the fly, without manually decoding them to WAV, and the result is perfect (bit-identical when decoded). Audacity can do a similar thing, and the result is at least sample-accurate and practically acceptable.

Like @SeeMoreDigital said, appending them as WAV is the easiest and safest; you can just append WAV files and (re-)encode (in which case, you could optionally try .wv insteald of .flac, since .flac may be inconvenient in Matroska). If the audio is already in Matroska, you can first mkvextract. MKVToolNix is surely not an audio editor, and you're making things difficult by using it to concatenate audio files... or is this something different, directly related to Matroska? I hope you can do what you want to, anyway :)

Somehow I will try to get by but you didn't understand, I don't have to merge single flac files but mkv where in addition to the various dts-hd etc there are also pcm tracks, the problem is that if I have three mkv files with audio dts, pcm, dd etc. .... I join them and they are well synchronized, then I extract the single pcm track to transform it into flac and then put it back in the mkv you lose the audio video synchronism, that's why I was trying to merge mkv with already flac tracks inside .. ... unfortunately it is difficult to explain but I will somehow try to fix it, for me it is fun. I would have had no problem and I would not have written here if mkvmerge had merged mkv with flac tracks but somehow I will, I like it when the things get complicated and I enjoy it more :)

mood
3rd November 2021, 00:50
How to disable opening a file automatically on startup of mkvtoolnix-gui???

Asmodian
3rd November 2021, 01:43
How to enable opening a file automatically on startup of mkvtoolnix-gui?

Mine does not open anything on startup. :confused:

Mosu
3rd November 2021, 09:46
How to disable opening a file automatically on startup of mkvtoolnix-gui???

It really doesn't add any file by default. Yes, it does create empty multiplex settings, but that's all.

Maybe you're starting the GUI through a shortcut or batch file that adds an additional file name in the call?

Nejiro
4th November 2021, 13:39
Sorry for the stupid question but I can't understand how to do it, I have mkvs with the attachment inside (for example the cover of the film in jpg), how do you do if you want to download that jpg or png file etc ... in a nutshell how do i get the attachment only?

Mosu
4th November 2021, 14:57
Open your Matroska file in MKVToolNix GUI's "header editor" tool. Its tree view contains all attachments that exist in the file. Right-click on any of those in the tree view & select the "save" option from the context menu.

Nejiro
8th November 2021, 01:11
If you go the route you described, you can use the "delay" feature on the subtitle track in the first file when appending and use a ridiculous high negative value with it (its absolute value must be higher than the length of the first part). That way all entries from that first file (the ones you don't want to see) will end up with negative timestamps & will not actually be written to the output file.

Untested.
I did this test but if I put 10000 or -10000 the subtitles of the first track start immediately, maybe there is a maximum value in which you can not go?
Thanks

Selur
10th November 2021, 16:03
Hi Mosi,
I think about splitting a clip using:
mkvmerge -v -o "Path to output" -A -S -B -T -M --no-chapters --no-global-tags --split 1s "PATH to input"
Problem is I would like to know the number of output files before writing the output files.

Question is: Is there a way to basically simulate the above without acctually having to write the output?
Or is there another way to know the number of files that would get created without having to do the actual splitting?

Cu Selur