Remove audio track from MKV without remuxing?

Hello !
I just wanted to know if there is a quick way to remove (or at least hide with a flag, or corrupting, or whatever) an audio track from an mkv ?

I just tried it with mkvtoolnix. It works well but the remuxing process takes about 15min per file (4K)

Thank you :slight_smile:

You can’t hide per se. If the track exists then it will show up.
You could use the Header Editor in mkvtoolnix to change the flags to enable/disable the track. Though, the track still exists within the MKV file.
I know many 3rd party video players honor the disable flag. I’m not sure plex will.

If you want to remove a track you’ll have to make a new package with that track not in it - remuxing is the only way I know (I am ready to learn a new trick, however - if one exists).

I did recently yank about 9 language tracks I couldn’t use out of a file. I don’t know if I’d want them merely disabled. I did seem much happier when they were gone.

Nope. Plex will not honor the disable flag
Ran a few tests.


p2

p4

Though, you know… If you have your audio/subtitle setting correct and changed the language of the track you can ā€œtrickā€ plex.
https://support.plex.tv/articles/204985278-account-audio-subtitle-language-settings/#toc-0

Sadly, the ā€œtrack enabledā€ flag is not working. I add it with ā€œnoā€ value for all tracks but one, but they still show up in Plex :frowning_face:

@JuiceWSA This is what I’m waiting, a new trick to avoid remuxing, I just hope it exists :smiley:

Unfortunately, that will not help me, as I’ve got an issue a bit more complex than that : see here Plex on LG TV is slowly biting me :cry:

Well, does your app show the language. If so, you will know Und or Chi, or whatever is not the track for you.

If possible, put the source and destination on separate drives. It will speed up the remux process since there will be less read/write contention on each drive.

2 Likes

Indeed, it shows the language, but the track that will play is completely random. I could select English, and have an italian track playing.
Unfortunately, for french, we have french and canadian french tracks.

A real pleasure to realize, 30 minutes in the movie, that Plex chose the canadian french instead of french, thanks to a famous actor not fitting the voice you know.

More testing…
It all depends on what your LG app displays but heres another way.codec1
codec2

I suppose you can use any codecID.

Oh… Okay. That does pose a unique issue.

I seem to recall waiting on a remux when it occurred to me the best time to handle that would be at creation - I found the thing in MakeMKV that only automatically ticks the default language for audio/subs. That helped.

Then shortly after that I started pouring everything through Xmedia Recode to copy the video track, normalize, re-lable, remove audio tracks, fiddle with subs, and such - that remuxes anyway, is just part of doing bidness, so doesn’t take any ā€˜extra’ time…

Well, that sucks. It’s all plex fault by not honoring the flags that are set fourth.
It’s like if self driving cars didn’t obey traffic signs.

I’m not sure if this is possible, but can you use mkvpropedit to change the audio codec to some other name. If the codec name is unknown, PMS might ignore it.

Okay, that may be true but Plex can enforce any value it chooses.
It’s not like we the people don’t already have to comply with the naming/tagging/organizing that plex has set as a standard. One more won’t hurt(well, it might) but how about an option.

Obey Media Container Flags or Override Media Container Flags

It’s the best of both worlds. The ones that don’t know what they are doing and only download and drop media into plex and wait a minute or so, then play the media.
And the ones that are an*l, particular, perfectionists, guru’s that spin much time fine tuning their media to be the most optimized for plex, changing codec, containers, setting/arranging tracks, adding/removing titles including track titles, setting flags, etc…

It be nice if there was an override toggle.
You know, The Plex Way(the default vaule) and The Container Way.

unfortunately not. I already tried(last 2 pictures above) and plex just displays ā€œNONEā€

Ah. Thought you were just changing the language. Ok.

Create a feature request to obey the ā€œdisableā€ flag. Or is it ā€œenableā€. Can’t remember what the actual name is.

I guess ā€œenableā€
Capture

@Link2811

Though I would put more information in the link you provided.

If true, this seems to be a very bad bug. To select track #1 to find out it’s really track #2

I am real curious to see info on one of your problem mkv’s…
You might want to add it to your other post though…

Unfortunately, I’m not the only one eg : LG WebOS 4.0 wrong language or [BUG] Wrong audio track despite of what is chosen

And this problem is occuring with all MKVs (or at least, all 4K MKVs) …