Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th October 2011, 08:45   #21  |  Link
Devilman1
Registered User
 
Join Date: Feb 2003
Posts: 103
Using MKVToolnix would not lose any TAG added to the different stream? like for example language or comment etc.?
Devilman1 is offline   Reply With Quote
Old 1st November 2011, 02:46   #22  |  Link
RedDwarf1
RedDwarf Fan
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 198
It could be useful but it doesn't seem to recognise header compression correctly. It only recognises header stripping and not lzo (lzo1x) or zlib. Surely they are also compressed headers, although they do seem to make the file larger than having header compression disabled.

I don't know whether those types cause any problems with standalone media players. Has anyone tested by re-muxing an MKV?
RedDwarf1 is offline   Reply With Quote
Old 1st November 2011, 09:40   #23  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,281
zlib compression has been in use since 2002. Practically since VobSubs have been supported in Matroska. If a player doesn't support zlib compression... oh well.

Also a note about the terms you're using. In Matroska a compression algorithm can apply to a) the track headers only (meaning the CodecPrivate element), b) to each and every block (each frame) or c) to both of them. zlib is usually used for VobSub subtitles and other subtitles that are actually not really compressed. In such cases zlib compression is used on c) both the track headers and each frame. Implying that zlib and lzo are "header compression" algorithms is therefore misleading.

Compressing highly compressed content, e.g. h264 video tracks, with zlib will of course increase file size, or at best not decrease it. That's normal, hence zlib compression is usually only used for subtitles.
__________________
Latest MKVToolNix is v83.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 28th June 2013, 14:04   #24  |  Link
Xad
Registered User
 
Join Date: Jul 2012
Posts: 2
Quote:
Originally Posted by b66pak View Post
a .bat like this will remove header compression for audio and video (tested with a file generated with mkvmerge v4.2.0 default settings for compression):

Code:
for %%a in ("*.mkv") do mkWDclean --optimize %%a
_
Sorry to bump this thread. I'm using Windows XP and i tried using this code with mkWDclean but it doesn't work; it seems the spaces in a filename are causing issues? If i enter the pause command i can see that it says for example:
Unknown parameter Spider
Unknown parameter Man

However, if i enter one block name, for example spiderman, then it works fine. What do i need to add to that quote for it to work? I've tried placing quotation marks around different places but no luck.


7ekno, i also tried using fixMKV2 and i keep getting an error telling me remux has failed. I have MKVtoolnix unzipped on C drive (C:\mkvtoolnix\), have the 2 media info files, entered the location manually and removed REM, but still keep getting that error: "Header Compression Found, processing" and then: "REMUX FAILED somehow". I tried drag and drop but still the same error.
Xad is offline   Reply With Quote
Old 28th June 2013, 15:35   #25  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
You need to put quotes around the "%%a" variable. The current mkvmerge versions have reverted to header removal compression off by default, btw, so you could just use the newest mkvmerge:
Code:
for %%a in (*.mkv) do mkvmerge -o "%%~na_processed.mkv" "%%a"
If you have one of those problematic players:
Code:
for %%a in (*.mkv) do mkvmerge --clusters-in-meta-seek --engage no_cue_duration --engage no_cue_relative_position -o "%%~na_processed.mkv" "%%a"
(https://trac.bunkus.org/wiki/FAQ%3AI...ityWithPlayers)
sneaker_ger is offline   Reply With Quote
Old 28th June 2013, 16:28   #26  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
It may be worth noting...

The new versions of MKVmerge don't add header compression 'by default' any more...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 28th June 2013, 16:53   #27  |  Link
Xad
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks sneaker_ger, that works perfectly. Wanted it for some random old video files that i never fixed, but good to hear it's not default any more. Thanks again.
Xad is offline   Reply With Quote
Old 3rd November 2019, 18:57   #28  |  Link
doomer9er
Registered User
 
Join Date: Mar 2014
Posts: 3
Bumping an old thread.

anyone care to make a fixmkvV3 that works today for the latest mkvtoolnix gui? Newbie here. Thanks.
doomer9er is offline   Reply With Quote
Old 13th December 2019, 02:35   #29  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
Quote:
Originally Posted by doomer9er View Post
Bumping an old thread.

anyone care to make a fixmkvV3 that works today for the latest mkvtoolnix gui? Newbie here. Thanks.
mkclean 0.8.10 (August 2017) does support the current matroska (v4) with several options (perhaps including what you want to do):
mkclean --doctype 6 input.mkv output.mkv

Note, --doctype 6 means v4, which is not well documented and confusing. You could convert a matroska v4 file to an old file like matroska v2, if that is what you want to do, with --doctype 2.

A win64 binary of mkclean is officially available from the download page. If you need Win32 binary, maybe you can try 0.8.9 instead (it's in ZIP).

If you want to make a Win32 build by yourself, then:
  1. Download mkclean-0.8.10.tar.bz2.
  2. Compile mkclean-0.8.10\corec\tools\coremake\coremake.c and get coremake.exe. You may have to compile it as C++ (not as C). You may have to tweak lines 1068, 1137 for const correctness, and in line 4941, you may have to change the last "0" to "(build_step)0".
  3. Make your project files using this coremake.exe (see readme).
  4. Compile mkclean.exe using the project files.
Liisachan is offline   Reply With Quote
Old 14th December 2019, 20:57   #30  |  Link
doomer9er
Registered User
 
Join Date: Mar 2014
Posts: 3
Quote:
Originally Posted by Liisachan View Post
mkclean 0.8.10 (August 2017) does support the current matroska (v4) with several options (perhaps including what you want to do):
mkclean --doctype 6 input.mkv output.mkv

Note, --doctype 6 means v4, which is not well documented and confusing. You could convert a matroska v4 file to an old file like matroska v2, if that is what you want to do, with --doctype 2.

A win64 binary of mkclean is officially available from the download page. If you need Win32 binary, maybe you can try 0.8.9 instead (it's in ZIP).

If you want to make a Win32 build by yourself, then:
  1. Download mkclean-0.8.10.tar.bz2.
  2. Compile mkclean-0.8.10\corec\tools\coremake\coremake.c and get coremake.exe. You may have to compile it as C++ (not as C). You may have to tweak lines 1068, 1137 for const correctness, and in line 4941, you may have to change the last "0" to "(build_step)0".
  3. Make your project files using this coremake.exe (see readme).
  4. Compile mkclean.exe using the project files.
Thanks for replying, Lisa.

Not sure I understood some of that, but I'm too much of a newbie to compile anything, plus the mkclean seems to have a warning flag about it being possible malware.
doomer9er is offline   Reply With Quote
Old 15th December 2019, 10:17   #31  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
Quote:
Originally Posted by doomer9er View Post
Thanks for replying, Lisa.

Not sure I understood some of that, but I'm too much of a newbie to compile anything, plus the mkclean seems to have a warning flag about it being possible malware.
I'm not sure either if I understand you - what exactly you want to do, so my comments might be irrelevant.

If you want to just remove the track compression, I think mkvtoolnixGUI itself can do that (Compression: no compression in the pull-down list). Or in mkvmerge --compression 3:none (if the track id is 3).

Mkclean binary for Win64 is already there, so you don't need to compile anything yourself. Just download EXE from sf and you can use it. It's on SF, so it's unlikely that it's malware.
Liisachan is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.