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

SEALBoy
2nd December 2021, 02:40
It does have to do it this way, yes, as all frames of all tracks are interleaved by their timestamps. This means that all frames of video, audio & subtitle tracks that should be played at timestamp X are located closely together in the file. Conversely this means that the frames of a single track (no matter its type) are distributed all over the file. Taking out those frames isn't possible, and putting others into their place (or rather: where they should be located according to their timestamps) doesn't work either.

:thanks: :goodpost:

GAP
6th December 2021, 03:26
Are there any differences between the 32 bit and 64 bit versions that I should know about?
How do you append files with re encoding?

von Suppé
6th December 2021, 09:38
2. AFAIK MKVToolNix doesn't re-encode. You can append files in the input window by rightclick on your sourcefile --> Append files

Liisachan
10th December 2021, 13:28
1. Function-wise, probably no. A file written by a 32-bit version will play fine on a 64-bit OS and vice versa. Generally speaking, though, a 64-bit version should be slightly more efficient when muxing.

Incidentally, which version you used to create your MKV will be recorded in that MKV itself, and publicly visible if you share your file. In case you want to author it anonymously, a 64-bit version (much commoner) may be better for anti-fingerprinting.

You could also spoof MuxingApp / WritingApp strings too, hiding not only the "bit-ness" (32 or 64) but the Mkvmerge version, though perhaps doing something like this is stupid & pointless; e.g.

@REM Lying about WritingApp, setting a random string
mkvpropedit.exe muxed.mkv --edit info --set "writing-application=Lavf65.43.210"

Edit
PS: If you really want to change the writing-application string, you should also add --disable-track-statistics-tags option when muxing; otherwise, _STATISTICS_WRITING_APP will reveal the original writing app.

Mosu
10th December 2021, 15:20
You could also spoof MuxingApp / WritingApp strings too, hiding not only the "bit-ness" (32 or 64) but the Mkvmerge version, though perhaps doing something like this is stupid & pointless; e.g.

In rare cases this might actually lead to problems. When reading Matroska files mkvmerge uses the writing app/muxing app strings to enable workarounds for certain bugs in certain versions of software. Luckily this hasn't been needed for quite a while now, so the chances are next to none of this being triggered accidentally. I just wanted to mention it for completeness' sake.

tormento
23rd December 2021, 16:07
I have a variable framerate mkv file. As AVS doesn't support vfr, my idea was to export timestamp from matroska, encode the video assuming a fixed fps and then reapply the timestamp code.

Is there a way to export timestamp from the original mkv and apply to the final one?

filler56789
23rd December 2021, 20:42
Is there a way to export timestamp from the original mkv and apply to the final one?

With mkvextract:

Timestamp extraction:
The sixth mode finds the timestamps of all blocks for a track and outputs a timestamp v2 file with these timestamps.

Example:

mkvextract "a movie.mkv" timestamps_v2 1:timestamps_track1.txt

tormento
23rd December 2021, 21:13
With mkvextract
And that would give me the capability to "transform" a constant framerate encoded (as I can't see alternatives) in a variable one?

filler56789
24th December 2021, 00:02
And that would give me the capability to "transform" a constant framerate encoded (as I can't see alternatives) in a variable one?

Yes. mkvmerge can use a timestamp file for converting CFR to VFR.

https://forum.videohelp.com/attachments/62521-1640300358/toolnixgui-timestamps.png

vrpatilisl
25th December 2021, 08:16
hello, everybody, new update is very good. i have sony alfa 6300 camera also have shot some home videos with that.I want to append video files and creat one longer video file but don't want to lose any quality. i attach both filesmedia info txt here can anybody expert please go through it and let me know what i am losing if any?
thanks

please find TXT files in attachment.
:thanks:

Mosu
27th December 2021, 13:56
Hey everyone.

Hope y'all are having a couple of stress-free days behind & ahead of you, whatever you might or might not celebrate. I still haven't had much energy to invest into coding, to be honest, but decided to do one last release in 2021 anyway, mostly fixing a couple of smaller issues — especially the wrong-sized icons on high DPI displays, which I've gotten so many bug reports about 😁

Here are the usual links: the MKVToolNix home page (https://mkvtoolnix.download/), the Windows installer/portable version & macOS DMG & Linux AppImage (https://www.fosshub.com/MKVToolNix.html) and the source code (https://mkvtoolnix.download/source.html).

The Windows and macOS binaries as well as the Linux AppImage are available already. The other Linux binaries are still being built and will be available over the course of the next couple of hours.

Here are the NEWS (https://mkvtoolnix.download/doc/NEWS.md) since the previous release:

Version 64.0.0 "Willows" 2021-12-27
New features and enhancements

MKVToolNix GUI: language dialog: when the user switches between the two edit modes, the mode's corresponding first control is automatically focussed.

Bug fixes

all: language lists: the entries for "Ancient Greek (to 1453)" and "Modern Greek (1453-)" have been renamed to "Greek (ancient, -1453)" and "Greek (modern, 1453-)" respectively in order to be easier to find.
mkvmerge: VobSub reader: files containing "id: --" lines to indicate that the track language isn't known were rejected by "mkvmerge". Now they're accepted, and "und" (undetermined) is used as the language. Fixes #3246 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3246).
MKVToolNix GUI: chapter editor: the "Save to Matroska or WebM file" function was using the wrong standard file dialog (the "open file" one instead of "save"), leading to confusing button names. Fixes #3242 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3242).
MKVToolNix GUI: high DPI scaling: fixed the icons in the tool selector having the wrong size for scaling factors other than 100% or 200%. Fixes #3229 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3229).

Build system changes

The bundled "fmt" library was updated to v8.0.1.
The bundled "nlohmann-json" library was updated to v3.9.1.
The bundled "pugixml" library was updated to v1.11 revision 6a76cac.
The bundled "utf8-cpp" library was updated to v3.2 revision b85efd6.


Have fun 😁

filler56789
27th December 2021, 16:28
Thanks :thanks: for the endless updates :D

videoh
27th December 2021, 19:48
Thank you for high DPI support!

SeeMoreDigital
27th December 2021, 20:13
Wonderful job ;)

VBB
27th December 2021, 20:28
Thank you Moritz, and a happy 2022!

tormento
28th December 2021, 20:20
Yes. mkvmerge can use a timestamp file for converting CFR to VFR.
Thanks!

And how can I convert an existing vfr MP4 into a MKV?

filler56789
28th December 2021, 23:13
And how can I convert an existing vfr MP4 into a MKV?

mp4fpsmod?

mp4fpsmod 0.26
(libmp4v2 trunk-r507)
usage: mp4fpsmod [options] FILE
-o <file> Specify MP4 output filename.
-i, --inplace Edit in-place instead of creating a new file.
-p, --print <file> Output current timecodes into timecode-v2 format.
-t, --tcfile <file> Edit timecodes with timecode-v2 file.
-x, --optimize Optimize timecode
-r, --fps <nframes:fps>
Edit timecodes with the spec.
You can specify -r more than two times, to produce
VFR movie.
"nframes" is number of frames, which "fps" is
aplied to.
0 as nframes means "rest of the movie"
"fps" is a rational or integer.
For example, 25 or 30000/1001.
-c, --compress-dts Enable DTS compression.
-d, --delay <n> Delay audio by n millisecond.
-T, --timescale <keep|n>
keep: Keep original timescale.
n: Set timescale of videotrack to n.

tormento
28th December 2021, 23:15
mp4fpsmod
Wow, thanks.

Mosu
28th December 2021, 23:36
And how can I convert an existing vfr MP4 into a MKV?

Simply remuxing it with MKVToolNix should suffice.

SeeMoreDigital
29th December 2021, 11:53
Indeed...

vanden
12th January 2022, 11:30
Hello,

How to remux in MKVToolNix AVC + MVC (264 + mvc) ?
Is it possible ?

Emulgator
13th January 2022, 04:39
BD3D2MK3D does that:
https://forum.doom9.org/showthread.php?t=177317

Mosu
13th January 2022, 08:47
How to remux in MKVToolNix AVC + MVC (264 + mvc) ?

MakeMKV can do it, too, but MKVToolNix can only do so partially. If MVC stuff is already inside Matroska (e.g. a Matroska file created by MakeMKV), MKVToolNix can deal with it just fine. However, MKVToolNix cannot handle it in other containers, including M2TS which is used on Blu-rays.

vanden
13th January 2022, 21:18
@ Mosu : OK
My problem comes from the fact that blurays with several .siff files have been remuxed by tsMuxeR (1 single .siff file): Perfectly readable with Stereoscopic Player.
Bluray with several .siffs made by MakMKV (1 single .mkv file) remade in bluray with tsMuxeR (1 single .siff file).

In both cases, it is impossible to open the iso by MakMKV (https://forum.makemkv.com/forum/viewtopic.php?f=22&t=20692&sid=87c210da59a57270848d6423cb2bc8d4) ....

Bluray lend

@ Emulgator
I don't know how to remux 1 .264 file and 1 .mvc file, or remux 1 .siff or 2 .m2ts with BD3D2MK3D

GAP
20th January 2022, 23:53
I was trying to merge some split videos with different sizes in MKVToolnix only to that I cannot do that. How do you merge videos of different sizes together in MKVToolnix? Or should I use something else?

filler56789
21st January 2022, 06:38
I was trying to merge some split videos with different sizes in MKVToolnix only to that I cannot do that. How do you merge videos of different sizes together in MKVToolnix? Or should I use something else?

Please define "merge videos of different SIZES". :confused:
IF you mean "concatenate videos of different RESOLUTIONS" (frame dimensions),
then you'll need a different container
(namely, a transport stream, AFAIK).

GAP
21st January 2022, 16:39
What do you suggest I use to convert the files to a transport stream?

filler56789
22nd January 2022, 12:09
@GAP — ffmpeg, OR concatenating with the old "copy /b" on the elementary streams, first, and tsMuxer, secondly.
YMMV.

Nico8583
2nd February 2022, 22:34
Hi,
Is there a way to remove "Original source medium" and "ID in the original source medium" from a MKV when muxing ? I would like to remux a BD to MKV and I don't need these infos.
Thanks !

Edit : I just tried --disable-track-statistics-tags but it removes also some other tags like bitrate, stream size, etc...

I also tried --no-track-tags but same result.

The only workaround I found is to use "mkvpropedit.exe 'MyMovie.mkv' --delete-track-statistics-tags" then "mkvpropedit.exe 'MyMovie.mkv' --add-track-statistics-tags" but it requires an additional step and time.

varekai
6th February 2022, 10:51
Question about batch 10 mkv video files using MKVToolNix for deleting some audio and subtitle files.
For the life of me I can't remeber how to do this?
I'm shure I've done this before... or not...
Now I only get 1 big file combined of all 10 mkv's.
Any input on this is highly appreciated.

PS/
I know of a fine little app named MKV Muxing Batch GUI x64.v2.1 that'll do the job perfectly but I would like to use MKVToolNix.

sneaker_ger
6th February 2022, 14:26
1. Preferences->Multiplexer: Under "Adding files .." select either to always ask the user or to create a new multiplex for each file.
2. Preferences->Multiplexer->Enabling Items: set "Only enable copying of tracks with specific languages by default" and choose what you want to keep.
3. Add all your files, check if tracks are disabled like you want to
4. Multiplexer(not in preferences)->Actions for all tabs->Start multiplexing (or add to job queue and start it there)

Mosu
6th February 2022, 15:28
Heyo!

Here it is, the first release of 2022. This time I've worked a bit on implementing a handful of feature requests/enhancements. Have fun with them!

Nothing's changed for package managers.

Here are the usual links: the MKVToolNix home page (https://mkvtoolnix.download/), the Windows installer/portable version & macOS DMG & Linux AppImage (https://www.fosshub.com/MKVToolNix.html) and the source code (https://mkvtoolnix.download/source.html).

The Windows and macOS binaries as well as the Linux AppImage are available already. The other Linux binaries are still being built and will be available over the course of the next couple of hours.

Here are the NEWS (https://mkvtoolnix.download/doc/NEWS.md) since the previous release:

Version 65.0.0 "Too Much" 2022-02-06
New features and enhancements

mkvmerge: the options "--default-track" and "--forced-track" have been renamed to "--default-track-flag" and "--forced-display-flag" respectively for improved consistency with other option names & the wording used in the GUI. However, the old names will be supported and recognized indefinitely. What will remain unchanged is the property names for those flags in mkvmerge's identification output. Existing third-party programs will continue working as they are.
mkvmerge: added a new option "--track-enabled-flag" to set or unset the "track enabled" track header flag.
mkvmerge: MP4 reader: "mkvmerge" will now evaluate the "flags" field of the track header atom ("tkhd") and set the track's "enabled" flag accordingly. Implements #3272 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3272).
MKVToolNix GUI: multiplexer: added support for the "track enabled" track header flag.
MKVToolNix GUI: multiplexer, header editor: added several menu entries & keyboard shortcuts for toggling various track flags of the currently selected tracks, e.g. "Ctrl+Alt+F, D" (that's "Ctrl" and "Alt" with "F" simultaneously followed by "D" without any other key pressed) for toggling the "default track" flag. Part of the implementation of #3253 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3253).
MKVToolNix GUI: multiplexer, header editor: added menu entries & keyboard shortcuts for setting the language of the currently selected tracks to one from a configurable list of languages. The shortcuts used are "Ctrl+Alt+A, 1" through "Ctrl+Alt+A, 0" for the first ten entries of that list (that's "Ctrl" and "Alt" with "A" simultaneously followed by a digit without any other key pressed). Part of the implementation of #3253 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3253).
MKVToolNix GUI: chapter editor: if the user enters commas in start or end timestamps they will automatically be changed to points as the decimal separator, allowing for easier copy & paste from other programs/sources. Implements #3273 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3273).
MKVToolNix: header editor: the selected track or attached file can now be moved up & down with the keyboard shortcuts "Ctrl+Up" & "Ctrl+Down" respectively. Part of the implementation of #3253 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3253).

Bug fixes

mkvmerge: Matroska reader: DVB subtitle tracks with a codec private data size of more than five bytes are accepted now, too. Fixes #3258 (https://gitlab.com/mbunkus/mkvtoolnix/issues/3258).


Have fun 😁

VBB
6th February 2022, 22:51
Thank you!

varekai
7th February 2022, 09:15
1. Preferences->Multiplexer: Under "Adding files .." select either to always ask the user or to create a new multiplex for each file.
2. Preferences->Multiplexer->Enabling Items: set "Only enable copying of tracks with specific languages by default" and choose what you want to keep.
3. Add all your files, check if tracks are disabled like you want to
4. Multiplexer(not in preferences)->Actions for all tabs->Start multiplexing (or add to job queue and start it there)
Thanks for the update and thanks for the input, much appreciated!
I recognize that tab settings, I thought I could do it from here and not tab by tab:
https://i.imgur.com/fa8x9Xj.png

-QfG-
12th February 2022, 07:26
I don't understand the "Disable Track" switch... If i don't need a track i will erase them.

hubblec4
12th February 2022, 12:53
I don't understand the "Disable Track" switch... If i don't need a track i will erase them.

Yeah, that's a matter of Matroska playback support.

Matroska supports more then "simple" audio/video/sub tracks,
and a Chapter-Codec could use such flags....

derf
12th February 2022, 16:52
Starting with MKVToolNix v65.0.0, some files will not show all audio tracks in MPC-HC, only the default track. Reverting to MKVToolNix v64.0.0, all audio track show in MPC-HC. All audio tracks are detected correctly in VLC or Plex.

EDIT:
Remuxing from mkv to mkv doesn't work, I have to take the original m4v from Handbrake with v64 so the audio tracks from the mkv are detected in MPC-HC.

Mosu
12th February 2022, 18:54
One notable thing that changed is that mkvmerge now maps the "enabled" track header flag from MP4 file's "tkhd" atom to Matroska's "track enabled" flag. So maybe those tracks were disabled in the source MP4 files already. You can override those flags in the GUI, of course; that's one of the reason I added the "disabled track flag" combobox in the first place.

If that isn't it, report the issue to the MPC-HC bug tracker, please.

rco133
13th February 2022, 08:35
Hi.

In version 65 when wanting to set the language I can no longer just hit TAB to get from "Track name" to language selection.

I used to just press TAB and space to get into the language selection menu.

Now, when I hit TAB it just jumps to "Default track flag" and skips the Language selection.

That is a bit annoying, since I now have to use the mouse to get into the "Language" menu.

Am I doing something wrong, or has the behaviour been changed on purpose?

rco133

Mosu
13th February 2022, 11:34
That's already been fixed (https://gitlab.com/mbunkus/mkvtoolnix/-/issues/3274).

Liisachan
17th February 2022, 02:30
Starting with MKVToolNix v65.0.0, some files will not show all audio tracks in MPC-HC, only the default track. Reverting to MKVToolNix v64.0.0, all audio track show in MPC-HC. All audio tracks are detected correctly in VLC or Plex.

EDIT:
Remuxing from mkv to mkv doesn't work, I have to take the original m4v from Handbrake with v64 so the audio tracks from the mkv are detected in MPC-HC.

Perhaps the following is unrelated to your issue, but apparently similar problems are also happening due to LAV Filter-side issues. So, if someone has a problem where MPC-HC doesn't show all the audio tracks, various possibilities should be considered. The issue reported at https://forum.doom9.org/showthread.php?p=1963574#post1963574 on 2022-02-09 is:
If I have a *.MKV Video-File with a lot different audio-tracks the media player doesn't offer me to choose between all of them in the Audio Track selection
and clsid's comment is:
this issue is that one audio track isn't recognized by the splitter. He needs to go to the LAV Filters thread for help with that.

So, according to clsid, sometimes this kind of issue is not (directly) related to MKVToolNix nor to MPC-HC itself. I figured maybe I should share this info.

nevcairiel
17th February 2022, 09:19
One notable thing that changed is that mkvmerge now maps the "enabled" track header flag from MP4 file's "tkhd" atom to Matroska's "track enabled" flag. So maybe those tracks were disabled in the source MP4 files already. You can override those flags in the GUI, of course; that's one of the reason I added the "disabled track flag" combobox in the first place.

That seems to be the most likely case to me - thats really the only reason a MKV audio track would not be shown, if its set to Disabled.

Although I believe the MP4 "enabled" semantic is a bit different to the one in MKV, it seems to more closely correspond to MKV "default", and not intended to suppress tracks entirely, like MKV seems to specify the flag.

Mosu
17th February 2022, 09:51
Although I believe the MP4 "enabled" semantic is a bit different to the one in MKV, it seems to more closely correspond to MKV "default", and not intended to suppress tracks entirely, like MKV seems to specify the flag.

I am aware of this, or rather of ffmpeg mapping the flag to their "default track" equivalent. But then I took a look at ISO/IEC 14496-12:2015 and their verbiage is pretty unambiguous in 8.3.2.3:

Track_enabled: Indicates that the track is enabled. Flag value is 0x000001. A disabled track (the low bit is zero) is treated as if it were not present.

One might even argue that remuxing should simply skip such tracks, but I don't think this would be in the best interest of the user, and those flags are usually tailored towards the playback programs, not the remuxers/authoring programs.

nevcairiel
17th February 2022, 09:57
I see, that does look rather unambiguous, I didn't have the spec in front of me right now. I suppose people will need to take a bit more care in the future when remuxing.

Nico8583
20th February 2022, 02:08
Hi,
Does MKVToolNix support multi-angles Blu ray sources ? And how to proceed ?
Thanks !

Mosu
20th February 2022, 12:38
Not really, no.

Nico8583
20th February 2022, 12:59
Not really, no.
Thanks, is there a way to just show angles in mkvtoolnix ? Or is there a workaround to deal with angles before mkvtoolnix ? Thanks !

hubblec4
20th February 2022, 14:04
chapterEditor is extra designed for multi Angle/Edition support to help MTX to process such discs.

Nico8583
20th February 2022, 14:07
chapterEditor is extra designed for multi Angle/Edition support to help MTX to process such discs.
Thanks ! I don't need to keep all angles, just need to know if there is a multi angle and keep one of them. Is chapterEditor can do that ? And is it possible to do that and let mkvmerge do the MPLS to MKV muxing ? Thanks.

hubblec4
20th February 2022, 14:26
with cE you can preserve all Angles or only one, like you want.

All can be muxed directly in/with cE OR you can load all the settings to MTX. cE creates a settings file which can be load in MTX and then you have all settings in MTX.