Jump to content

Remove Header Compression and Subtitles from selected MKVs


ginjaninja

Recommended Posts

ginjaninja

Script to remove header compression and subtitles from selected MKV(s).

Useful for XBOX playback in MBC/WMC

 

Description

For windows OSes with batch support

Script remuxes selected file(s) into a temporary holder (.mux), deletes (default) or renames the original (.old). and renames the temporary as original so you are left with the same file(name)(s) but without compression and subs.

script relies on MKVMERGE being in 'PATH' (otherwise you could hardcode the path to MKVMERGE)

https://www.bunkus.org/videotools/mkvtoolnix/downloads.html

Use rename (original) rather than delete in script until you are confident. Test first with files in a backup folder.

Unrem the pauses if you want to see what the script is doing.

 

Download

https://www.dropbox.com/s/87sftwu0cg0lbe3/RemoveHdrSubs.bat

 

Install

Copy script to shell:sendto folder (varies dependant on OS)

[Rename script filename to your preference]

 

Use

Right Click on selected file(s) and send to the script.

[Alternatively place script on e.g.. desktop - to support dragging file(s) onto the script)

 

Alternative uses.

You can change the main MKVMERGE command for other common library tasks e.g..

mkvmerge.exe -o "%~dpn1.MUX" --compression -1:none -a !2 -M -S "%~1"

remove the 2nd audio track (as well as turn off header compression and remove subtitles).

Edited by ginjaninja
  • Like 1
Link to comment
Share on other sites

  • 9 months later...
hurgerarder

After a little bit of digging, I found an article which inform us:

As we all know, video formats, such as MKV, MP4 and AVI, can contain several subtitle streams in different formats or languages in one file. Technically, subtitles are divided into two types: hard subtitle and soft subtitle in video files. Hard subtitle is a part of the video images, and you cannot disable or hide it when playing the video file. Soft subtitle is an independent stream, and you can turn on or turn off it when playing.

There must be some subtitle stream in MKV file, so you cannot disable the subtitle by deleting independent subtitle srt file. And it seems there are some problem that QuickTime Player cannot disable internal subtitle when playing. You can try VLC to test if that subtitle can be disabled.

If the subtitle can be removed, here is a method on how to remove subtitle from MKV, MP4, AVI, etc with ease.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...