2024-07-01, 05:19 PM
(This post was last modified: 2024-07-02, 01:32 AM by mildlyjelly. Edited 3 times in total.)
From my experience Jellyfin always plays the first audio track of an MKV regardless of the preferred language setting or the defaults within the container.
There is a playback setting called "Set audio track based on previous item (Try to set the audio track to the closest match to the last video.)". You could try that setting and see if it makes a difference for you, but in my experience, it doesn't work and Jellyfin still just plays the first audio track. Though, again from my experience, this ends up making things worse when using the web player because the player will show the correct audio track as selected (even though it is playing the wrong audio track) which means you can't select it without first switching to the wrong audio track so you can then actually switch to the correct audio track.
I'm sure there are ways to rearrange the audio tracks if you want keep them, but I just delete the audio tracks that aren't english.
I use the following command to remove the first audio track:
- https://github.com/jellyfin/jellyfin-and...issues/230
- https://github.com/jellyfin/jellyfin/issues/6935
There is a playback setting called "Set audio track based on previous item (Try to set the audio track to the closest match to the last video.)". You could try that setting and see if it makes a difference for you, but in my experience, it doesn't work and Jellyfin still just plays the first audio track. Though, again from my experience, this ends up making things worse when using the web player because the player will show the correct audio track as selected (even though it is playing the wrong audio track) which means you can't select it without first switching to the wrong audio track so you can then actually switch to the correct audio track.
I'm sure there are ways to rearrange the audio tracks if you want keep them, but I just delete the audio tracks that aren't english.
I use the following command to remove the first audio track:
Code:
ffmpeg -i "[FILENAME].mkv" -map 0 -map -0:a:0 -c copy "[FILENAME].wk.mkv"