# \[RELEASE\] External Audio Track Support

**URL:** https://forums.plex.tv/t/release-external-audio-track-support/390714
**Category:** Apps & Creations
**Tags:** other-third-party
**Created:** [March 22, 2019, 12:09pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714 "2019-03-22T12:09:52Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [March 22, 2019, 12:09pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/1 "2019-03-22T12:09:53Z")

</div>

So I made this thingy which allows you to play media with external audio, so you don’t have to remux everything.

Download:  
[https://github.com/Saoneth/plex-custom-audio](https://github.com/Saoneth/plex-custom-audio)

External audio track has to be in mka format and with file name in format: `{movie}.{lang}.mka` or `{movie}.{lang}.{whatever you want}.mka`

Eg.:

1. Example.Movie.2017.720p.BluRay.H264.AAC-PLEX.mp4
2. Example.Movie.2017.720p.BluRay.H264.AAC-PLEX.pol.mka
3. Example.Movie.2017.720p.BluRay.H264.AAC-PLEX.pol.commentary-1.mka
4. Example.Movie.2017.720p.BluRay.H264.AAC-PLEX.pol.something-something.mka

---

<div class="post-metadata">

### Author: ![42nevin](https://avatars.discourse-cdn.com/v4/letter/4/8edcca/32.png) [@42nevin](https://forums.plex.tv/u/42nevin)
#### Post date: [April 24, 2019, 2:26am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/2 "2019-04-24T02:26:10Z")

</div>

Absolutely love this idea. A feature I’ve been waiting for years for Plex to implement. Thank you for making this happen!  
However, I’ve tried and failed to adapt your settings to work with my Plex server in docker. Maybe you can help add support for docker and/or other OSes?

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [July 17, 2019, 12:26pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/3 "2019-07-17T12:26:46Z")

</div>

i like this idea, saves me remux movies and tv shows to add more audio to it, as my wife speaks chinese, and she enjoys listening to her shows with audio in chinese on, as to vick wu said, i too had problems, i followed the guide, but i couldnt get it to work either, well i got it all to work kind of, except for `update-transcoder.sh` it said unknown command in ubuntu for me, i placed evereything in the right folder which is `/usr/lib/plexmediaserver`  
what else have we done wrong?  
the file `Plex Custom Audio Mapper` are we meant to add every location path for every file we want to add for any custom audio file? can’t make it easier for scanning drivers or folders for the audio file?  
couldn’t see any options in any where in settings or any where to config or anything, so don’t know if it is working or not, but as far as i can tell, it seems it is on, only thing that didn’t work that the update-transcoder.sh

---

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [July 24, 2019, 3:33am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/4 "2019-07-24T03:33:33Z")

</div>

Hey, there was wild `return` in `Plex Custom Audio Mapper` which is probably why it wasn’t working for you.

I rewrote few parts of the code, and added config file and install script. I tested it with official docker image and it works.

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [July 24, 2019, 7:00am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/5 "2019-07-24T07:00:48Z")

</div>

oh, this doesn’t work without docker? as i do not have docker installed

---

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [July 24, 2019, 3:45pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/6 "2019-07-24T15:45:32Z")

</div>

It should work even better without docker. Mapper needs to write to plex database which pms sometimes locks - you can just stop pms to fix it which on docker is not possible.

---

<div class="post-metadata">

### Author: ![smbertino](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@smbertino](https://forums.plex.tv/u/smbertino)
#### Post date: [August 6, 2019, 1:24pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/7 "2019-08-06T13:24:45Z")

</div>

I’ve been looking for this function for a while now.  
I have Plex installed directly on a Qnap NAS, how should the procedure for its installation be?

Sorry for my English…

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [August 8, 2019, 10:13am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/8 "2019-08-08T10:13:52Z")

</div>

ooopppp i didnt mean to edit this post

i got errors which stopped me from installing through the curl way, see next post please…

---

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [August 9, 2019, 10:33am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/9 "2019-08-09T10:33:20Z")

</div>

Can you attach whole log of your console (or screenshot)? Because i’m not sure which of the commands could return such error.

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [August 9, 2019, 11:15am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/10 "2019-08-09T11:15:32Z")

</div>

this is what i get when i try and run it

sudo apt install curl [https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh)  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
E: Unable to locate package [https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master)  
E: Couldn’t find any package by glob ‘[https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master)’  
E: Couldn’t find any package by regex ‘[https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master)’

but i managed to run the install.sh in the terminal manually and it all installed and downloaded all the files needed, i haven’t figured how to configure the mapper correctly though, i only have one movie so for to map to test, just to see if it works, feel like i need a guide for dummys here

---

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [August 9, 2019, 4:36pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/11 "2019-08-09T16:36:49Z")

</div>

Did you read “How to install”? Because looking at your log it seems that you are doing something completely different.  
You don’t need to configure anything after installation.

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [August 10, 2019, 11:24am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/12 "2019-08-10T11:24:32Z")

</div>

perhaps ill need a how to install guide, Linux isn’t my thing, I follow allot of guides, surprising I have gotten this far, would really appreciate it allot to get this working thank you in advance

---

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [August 10, 2019, 7:20pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/13 "2019-08-10T19:20:01Z")

</div>

It’s in README, just scroll down: [https://github.com/Saoneth/plex-custom-audio#how-to-install](https://github.com/Saoneth/plex-custom-audio#how-to-install)

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [August 12, 2019, 6:35am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/14 "2019-08-12T06:35:13Z")

</div>

ok, so when i go to start the readme guide, i follow the steps as follows,

kumo@???~/Downloads/temp/pms2$ curl [https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh) | bash

Command ‘curl’ not found, but can be installed with:

sudo apt install curl

,  
and i get that right away, so i sudo it, and i get this,

kumo@???:~/Downloads/temp/pms2$ sudo apt install curl [https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh) | bash  
[sudo] password for kumo:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

bash: line 1: Reading: command not found  
bash: line 2: Building: command not found  
bash: line 3: Reading: command not found  
E: Unable to locate package [https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master)  
E: Couldn’t find any package by glob ‘[https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master)’  
E: Couldn’t find any package by regex ‘[https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master](https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master)’

,  
this is as far as i can get for the readme, i do not know what i am doing wrong,

---

<div class="post-metadata">

### Author: ![Saoneth](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Saoneth](https://forums.plex.tv/u/Saoneth)
#### Post date: [August 13, 2019, 4:27pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/15 "2019-08-13T16:27:38Z")

</div>

Ok, so you need to do: `sudo apt install curl`, then `curl https://raw.githubusercontent.com/Saoneth/plex-custom-audio/master/install.sh | bash`. Also if you are using docker, make sure you run these commands on container with plex (not on host).

---

<div class="post-metadata">

### Author: ![kumozero](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kumozero](https://forums.plex.tv/u/kumozero)
#### Post date: [August 15, 2019, 8:43am UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/16 "2019-08-15T08:43:23Z")

</div>

edit never mind, i fixed it, i just noticed what i did wrong, i changed my $ to # and redid the command and now it is fully installed, thank you so much for the help, just did the mapping and by god, i wasn’t expecting it to go crazy and raping my drives for looking for the media, anyways thank you so much for helping me.

---

<div class="post-metadata">

### Author: ![Maxim-Khan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/maxim-khan/32/158143_2.png) [@Maxim-Khan](https://forums.plex.tv/u/Maxim-Khan)
#### Post date: [November 5, 2019, 11:41pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/17 "2019-11-05T23:41:40Z")

</div>

Can I run it in Windows by any way or it only works in Linux-based OSs?

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [February 3, 2020, 11:41pm UTC](https://forums.plex.tv/t/release-external-audio-track-support/390714/18 "2020-02-03T23:41:47Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
