Plex Server - up to date
LG WebOs Plex player - up to date
Finally back so I made a lot of tests. In my case it appears that problem is not tied just to specific type of audio, but it’s muxing setup in mkvmerge, specifically audio tracks order.
My whole library is muxed with track order like this:
video (default track yes, forced track no), original audio mostly english (default track no, forced track no), foreign audio mostly czech in my case (default track yes, forced track no), forced subs if exsits (default track yes, forced track yes), full subs (default track mo, forced track no).
These settings seems to be headache for LG WebOS Plex player where foreign audio is played when original audio selected and vice versa.
Workaround in my case is to remux files in specific order where foreign audio NEEDS to be first then followed by original audio:
video (default track yes, forced track no), foreign audio (default track yes, forced track (yes or no - does not matter)), original audio (default track no, forced track no), forced subs (default track yes, forced track yes), full subs (default track no, forced track no).
This specific muxing order works for me.
There is also specific case when you have files with more than 1 foreign audio like I do have some with czech and slovak audio.
In this case muxing order has to be like this:
video (default track yes, forced track no), foreign audio 1 (default track yes, forced track (yes or no - does not matter)), original audio (default track no, forced track no), foregin audio 2 (default track no, forced track no), forced subs (default track yes, forced track yes), full subs (default track no, forced track no).
I created samples with combination of different audio types like E-AC3 - AC3, DTS-ES - AC3, DTS - AC3, DTS-HD MA - AC3. I don’t have files with TrueHD Atmos anymore (re-encoded to DTS-HD MA) because of transcoding. Running Plex Server on raspberry Pi which is strictly set for direc play what so ever. You can download sample package from my google drive and test it yourself. Here is the link.
“Bad” folder contains files with my usual muxing order: video, original audio, foreign audio, forced subs, full subs.
“Fixed” folder contains files with muxinf order: video, foreign audio, original audio, forced subs, full subs.
Please test and let me know.
LG WebOS Plex player has clearly issue with track IDs of muxed files. God knows if devs will do something for this case or not. Hope they will narrow it somehow and I would be very happy if they will see this post.
In the meantime we need to rely on workaround. I was searching if there is way how to change tracks order without remuxing entire files and answer is you cannot. With mkvpropedit you can change track number and track UID which are Matroska properties, but not track ID because this is mkvmerge thing, not Matroska. So I think I will create some script(s) once I will have time for this which can be run on plex server doing preciselly defined remuxes file by file.