[RELEASE] External Audio Track Support

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

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
12 Likes

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?

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

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.

1 Like

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

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.

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…

ooopppp i didnt mean to edit this post

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

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

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
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
E: Couldn’t find any package by glob ‘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

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

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.

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

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

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 | 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 | 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
E: Couldn’t find any package by glob ‘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

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

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).

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.

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

2 Likes

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