# Set Audio Language tag MP4/MKV

**URL:** <https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491>\
**Category:** Tips, Tricks & How-Tos\
**Tags:** tipstricks\
**Created:** [September 3, 2015, 4:55pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491 "2015-09-03T16:55:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferezvi](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ferezvi/32/162984_2.png) [@ferezvi](https://forums.plex.tv/u/ferezvi)\
**Post date:** [September 3, 2015, 4:55pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/1 "2015-09-03T16:55:32Z")

</div>

Hi this is a little tutorial about how set lenguage tags on mp4 and mkv files.  
If you don’t like to see AUDIO tag as “UNKNOWN” on your videos and go from this

to this

or this

to this

you just have to:

1. Get [MKVToolNix](https://www.bunkus.org/videotools/mkvtoolnix/downloads.html "MKVToolNix") and [GPAC](https://gpac.wp.mines-telecom.fr/downloads/ "GPAC") both open source free an multiplataform.

On Ubuntu:  
$ sudo echo “deb [http://www.bunkus.org/ubuntu/$](http://www.bunkus.org/ubuntu/$)(lsb\_release -sc)/ ./” | sudo tee /etc/apt/sources.list.d/mkvtoolnix.list  
$ wget -q -O - [https://www.bunkus.org/gpg-pub-moritzbunkus.txt](https://www.bunkus.org/gpg-pub-moritzbunkus.txt) | sudo apt-key add -  
$ sudo apt-get update  
$ sudo apt-get install mkvtoolnix mkvtoolnix-gui gpac

1. For MKV On the same folder were you video are, open a terminal (command line) and type:

$ mkvpropedit movie.mkv --edit track:a1 --set language=eng --edit track:v1 --set language=eng

```
 *movie.mkv is the name of your movie/serie/video file, "eng" is the target language it can be eng (english), spa (spanish) , kor (korean), jpn(japanese) etc.

```

1. For MP4 On the same folder were you video are, open a terminal (command line) an type:

$ MP4Box -lang 1=eng -lang 2=eng movie.mp4

```
  *movie.mp4 is the name of your movie/serie/video file, "eng" is the target language it can be eng (english), spa (spanish) , kor (korean), jpn(japanese) etc.

```

That’s it 🙂 enjoy Plex even more.

---

<div class="post-metadata">

**Author:** ![RealPetChicken](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/realpetchicken/32/8077_2.png) [@RealPetChicken](https://forums.plex.tv/u/RealPetChicken)\
**Post date:** [September 10, 2015, 2:19am UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/2 "2015-09-10T02:19:19Z")

</div>

> @ferezvi said:  
> Hi this is a little tutorial about how set lenguage tags on mp4 and mkv files.  
> …  
> That’s it 🙂 enjoy Plex even more.

How do i change the track titles for multiple videos? like a loop that checks for every file in the directory. I’ve been search for days for an answer, and can’t find one. I have myMP4Box GUI installed already. I am on windows as well.

---

<div class="post-metadata">

**Author:** ![ferezvi](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ferezvi/32/162984_2.png) [@ferezvi](https://forums.plex.tv/u/ferezvi)\
**Post date:** [September 10, 2015, 7:31am UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/3 "2015-09-10T07:31:10Z")

</div>

You can use Easytag [https://wiki.gnome.org/Apps/EasyTAG](https://wiki.gnome.org/Apps/EasyTAG) it can handle mp4 and fill title bases on file name

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 7, 2016, 10:09am UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/4 "2016-04-07T10:09:53Z")

</div>

> @ferezvi said:  
> You can use Easytag [Apps/EasyTAG - GNOME Wiki!](https://wiki.gnome.org/Apps/EasyTAG) it can handle mp4 and fill title bases on file name

Unfortunately it doesn’t handle **video** mp4 files. All metatag fields pertaining to video content are missing. And it can’t set the language tags of audio streams either.

---

<div class="post-metadata">

**Author:** ![mns\_automa.gr](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mns\_automa.gr](https://forums.plex.tv/u/mns_automa.gr)\
**Post date:** [May 22, 2016, 10:09pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/5 "2016-05-22T22:09:54Z")

</div>

> @RealPetChicken said:  
> How do i change the track titles for multiple videos? like a loop that checks for every file in the directory. I’ve been search for days for an answer, and can’t find one. I have myMP4Box GUI installed already. I am on windows as well.

use find for all mkv files under a given directory:  
`find /your/media/path -iname '*.mp4' -execdir MP4Box -lang eng {} \;`

you can do it interactively answering with a ‘y’ or ‘n’ for each file found:  
`find /your/media/path -iname '*.mp4' -okdir MP4Box -lang eng {} \;`

I’m running debian jessie and I didn’t need to import a key for apt or modify sources.list:  
`sudo apt-get update && sudo apt-get install -y mkvtoolnix gpac`

---

<div class="post-metadata">

**Author:** ![zpaolo11x](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/zpaolo11x/32/18855_2.png) [@zpaolo11x](https://forums.plex.tv/u/zpaolo11x)\
**Post date:** [May 23, 2016, 8:39am UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/6 "2016-05-23T08:39:27Z")

</div>

> @ferezvi said:  
> Hi this is a little tutorial about how set lenguage tags on mp4 and mkv files.

Wow thank you for the hint, neat tutorial! Do you need to re-analyze the movie for this changes to take effect?

---

<div class="post-metadata">

**Author:** ![JasonM](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jasonm/32/82413_2.png) [@JasonM](https://forums.plex.tv/u/JasonM)\
**Post date:** [July 19, 2016, 12:55pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/7 "2016-07-19T12:55:49Z")

</div>

Not to rehash an older thread, but how about this

(for mp4 files…):  
`for /R %f in (*.mp4) do MP4Box.exe -lang 1=en-us -lang 2=en-us "%f"`

(for mkv files…)  
`for /R %f in (*.mkv) do mkvpropedit.exe %f --edit track:v1 --set language="eng" --edit track:a1 --set language="eng"`

> ! [Language tagging in GPAC · gpac/gpac Wiki · GitHub](https://gpac.wp.mines-telecom.fr/2014/09/23/language-tagging-in-gpac/)

---

<div class="post-metadata">

**Author:** ![cyb3rgh05t](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cyb3rgh05t/32/228637_2.png) [@cyb3rgh05t](https://forums.plex.tv/u/cyb3rgh05t)\
**Post date:** [November 11, 2016, 4:28pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/8 "2016-11-11T16:28:57Z")

</div>

> @mns@automa.gr said:
> 
> > @RealPetChicken said:  
> > How do i change the track titles for multiple videos? like a loop that checks for every file in the directory. I’ve been search for days for an answer, and can’t find one. I have myMP4Box GUI installed already. I am on windows as well.
> 
> use find for all mkv files under a given directory:  
> `find /your/media/path -iname '*.mp4' -execdir MP4Box -lang eng {} \;`
> 
> you can do it interactively answering with a ‘y’ or ‘n’ for each file found:  
> `find /your/media/path -iname '*.mp4' -okdir MP4Box -lang eng {} \;`
> 
> I’m running debian jessie and I didn’t need to import a key for apt or modify sources.list:  
> `sudo apt-get update && sudo apt-get install -y mkvtoolnix gpac`

how about mkv files not mp4? i am running macOs Sierra

Thanks for helping

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 11, 2016, 5:22pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/9 "2016-11-11T17:22:59Z")

</div>

> @CyberGhost84 said:  
> how about mkv files not mp4? i am running macOs Sierra

MKVtoolnix is available on the Mac.  
[https://mkvtoolnix.download/downloads.html#macosx](https://mkvtoolnix.download/downloads.html#macosx)

If all else fails, use ffmpeg on the command line

---

<div class="post-metadata">

**Author:** ![cyb3rgh05t](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cyb3rgh05t/32/228637_2.png) [@cyb3rgh05t](https://forums.plex.tv/u/cyb3rgh05t)\
**Post date:** [November 11, 2016, 5:40pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/10 "2016-11-11T17:40:57Z")

</div>

> @OttoKerner said:
> 
> > @CyberGhost84 said:  
> > how about mkv files not mp4? i am running macOs Sierra
> 
> MKVtoolnix is available on the Mac.  
> [MKVToolNix Downloads – Matroska tools for Linux/Unix and Windows](https://mkvtoolnix.download/downloads.html#macosx)
> 
> If all else fails, use ffmpeg on the command line

thanks for the reply:)

Yes but mkvtoolnix can handle just one file at once.

how about multiples files?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 11, 2016, 6:39pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/11 "2016-11-11T18:39:54Z")

</div>

I think I saw a solution where someone wrote a script which handled a full folder automatically.

You can try if this thing is still working  
[http://forum.doom9.org/showthread.php?t=163753](http://forum.doom9.org/showthread.php?t=163753)

could be also of use  
[https://www.flynsarmy.com/2012/01/change-default-languge-subtitles-in-mkv-files/](https://www.flynsarmy.com/2012/01/change-default-languge-subtitles-in-mkv-files/)

---

<div class="post-metadata">

**Author:** ![cyb3rgh05t](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cyb3rgh05t/32/228637_2.png) [@cyb3rgh05t](https://forums.plex.tv/u/cyb3rgh05t)\
**Post date:** [November 11, 2016, 6:41pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/12 "2016-11-11T18:41:35Z")

</div>

Thank you @OttoKerner

---

<div class="post-metadata">

**Author:** ![cyb3rgh05t](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cyb3rgh05t/32/228637_2.png) [@cyb3rgh05t](https://forums.plex.tv/u/cyb3rgh05t)\
**Post date:** [November 14, 2016, 9:26am UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/13 "2016-11-14T09:26:41Z")

</div>

is there also a way to do this with avi files?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 14, 2016, 1:04pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/14 "2016-11-14T13:04:47Z")

</div>

> @CyberGhost84 said:  
> is there also a way to do this with avi files?

[http://fixounet.free.fr/avidemux/](http://fixounet.free.fr/avidemux/)

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/6/3/63b61c83056dc8841e5adf2cfabfb183c79b069b.png)

> <https://softwarerecs.stackexchange.com/questions/4227/program-to-change-language-of-audio-stream-in-video-file>

---

<div class="post-metadata">

**Author:** ![cyb3rgh05t](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cyb3rgh05t/32/228637_2.png) [@cyb3rgh05t](https://forums.plex.tv/u/cyb3rgh05t)\
**Post date:** [November 15, 2016, 12:02pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/15 "2016-11-15T12:02:42Z")

</div>

hello @OttoKerner

may i ask you some help please?

i have a folder with over 200 broken mp4 files. to fix them i use `MP4Box -add myfile.mp4 myfile_correct.mp4` , but this command just allows me to fix one file at once:/

i searched a bit around and found this for multiples files in one folder :

```
for i in `find . -name '*.mp4'`; do
  newName=$(echo $i | sed 's/\.mp4$/_correct.mp4/'); 
  MP4Box -add $i $newName
done

```

but it seems that i do not use it correctly, i am not so familiar with terminal commands:(

i get this when i start a new terminal at folder session under OS X.

```
    Last login: Tue Nov 15 11:46:55 on ttys000
    CyberGhost:Season 1 CyberGhost$ for i in `find . -name '*.mp4'`; do
    > newName=$(echo $i | sed 's/\.mp4$/_correct.mp4/'); 
    > MP4Box -add $i $newName
    > done
    Option -rw-r--r-- unknown. Please check usage
    [Importer] Unknown input file type for "1"
    Error importing 1: Requested URL is not valid or cannot be found

```

Are you able to help me out with that?

thanks

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 15, 2016, 1:59pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/16 "2016-11-15T13:59:01Z")

</div>

I don’t have any experience with OSX, but I think you are supposed to put these lines into a text file.  
Name it `repair_mp4_file.sh` or so.

[http://ss64.com/osx/syntax-shellscript.html](http://ss64.com/osx/syntax-shellscript.html)

---

<div class="post-metadata">

**Author:** ![cyb3rgh05t](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cyb3rgh05t/32/228637_2.png) [@cyb3rgh05t](https://forums.plex.tv/u/cyb3rgh05t)\
**Post date:** [November 16, 2016, 1:42pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/17 "2016-11-16T13:42:59Z")

</div>

thanks @OttoKerner

i found what i need 🙂

[http://www.emmgunn.com/mp4tools-home/](http://www.emmgunn.com/mp4tools-home/)

---

<div class="post-metadata">

**Author:** ![NynjaWitay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nynjawitay/32/89782_2.png) [@NynjaWitay](https://forums.plex.tv/u/NynjaWitay)\
**Post date:** [September 26, 2017, 11:14pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/18 "2017-09-26T23:14:21Z")

</div>

I had a lot of files missing tags, so I needed to run this in parallel to get through the process faster:

```
find . -iname '*.mp4' -print0 | xargs -0 -n1 -P8 MP4Box -lang eng
find . -iname '*.mkv' -print0 | xargs -0 -n1 -P8 mkvpropedit --edit track:a1 --set language=eng --edit track:v1 --set language=eng
```

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [September 26, 2017, 11:20pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/19 "2017-09-26T23:20:37Z")

</div>

> @NynjaWitay said:  
> find . -iname ‘_.mp4’ -print0 | xargs -0 -n1 -P8 MP4Box -lang eng  
> find . -iname '_.mkv’ -print0 | xargs -0 -n1 -P8 mkvpropedit --edit track:a1 --set language=eng --edit track:v1 --set language=eng

Would you care to explain what it does?

I don’t see a point in setting the ‘video’ language, except maybe when you have ‘burned in’ subtitles, But even then you won’t see it easily inside of Plex, except in the [mediainfo](https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats "mediainfo")

---

<div class="post-metadata">

**Author:** ![NewPlaza](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/newplaza/32/128634_2.png) [@NewPlaza](https://forums.plex.tv/u/NewPlaza)\
**Post date:** [January 23, 2018, 2:30pm UTC](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491/20 "2018-01-23T14:30:27Z")

</div>

> @OttoKerner said:  
> I don’t see a point in setting the ‘video’ language, except maybe when you have ‘burned in’ subtitles,

Me too… However, this does bring up a question I had. I know audio lang is important for auto-selecting subtitles and such but what about the language of the video. Does PLEX use this to determine anything? And how does that coincide with the lang of the audio?

[Next page](https://forums.plex.tv/t/set-audio-language-tag-mp4-mkv/114491.md?page=2)
