Log in

View Full Version : MeGUI: Altering/removing tags in MKV container?


TECK
29th January 2012, 22:20
Hi guys,

I have a question related to how tags are saved for each track. For example, I recently encoded one of my Bluray's with MeGUI and the video track has the following tags:

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 48mn
Bit rate : 5 089 Kbps
Width : 1 280 pixels
Height : 688 pixels
Display aspect ratio : 1.860
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.241
Stream size : 5.98 GiB (87%)
Writing library : x264 core 120 r2146 bcd41db
Encoding settings : cabac=1 / ref=3 / ... more ... / aq=1:1.00
Default : Yes
Forced : No

Is there a way to actually remove certain tags like Writing library or Encoding settings? Thank you.
Edit: This is just for learning purposes, I would not bother to actually remove those tags. :)

Emulgator
8th February 2012, 20:29
The writing library and encoding settings tags are embedded in the video bitstream by x264.
This has nothing to do with the final container, BTW.

To avoid these tags you will have to build your own version of x264, I guess.

Most of the other tags are actually needed for the playing application to perform decoding.

TECK
8th February 2012, 22:09
Thank you for the useful explanation.

hello_hello
9th February 2012, 01:24
If you use MKVMergeGUI to split an MKV file, only the first segment retains the writing library and encoding settings information, so if you don't mind chopping a small portion off the beginning....

Otherwise, I "think" this will also remove them. http://forum.doom9.org/showthread.php?t=152419

the_weirdo
9th February 2012, 05:47
Or using a hex editor to edit your MKVs. You can not only remove but also alter those informations. This option is dangerous, however, as it can corrupt your files if you're doing wrong. And if you "would not bother to actually remove those tags", it may not worth the trouble.

Anyway, I cannot find any valid reasons (other than "for learning purposes") for a normal user to remove those informations. Leaving them as is doesn't hurt anything.