Solved Toggle between audio tracks when playing a video
#1
I searched the forum and Google and couldn't find the feature I need.

I need to be able to switch between audio tracks (or language) when playing a movie. For example, I have a movie with english and french tracks. Sometimes, I may want to watch it in english and other times, in french.

The option to select a default language I found in Kodi is not what I need. This features seems to play a video file in a specific language.

It's a feature available in VLC (see screenshot below).

TIA

Image
Reply
#2
You can already do that:
1) Press 'm' to bring up the OSD, select "Audio Settings" and then the "Audio stream"
2) ...or you can edit the keymap to assign the "AudioNextLanguage" action to the button of your choice

For example, this keymap will allow you to jump to the next audio stream by pressing 'a':
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <FullscreenVideo>
    <keyboard>
      <a>AudioNextLanguage</a>
    </keyboard>
  </FullscreenVideo>
</keymap>
Reply
#3
Thanks sialivi,

I'll play with your suggestion and tweak it to my likings.

I'll now fumble to see how to make it easier to use with Yatse...
Reply
#4
I tweaked the remote mapping to toggle the audio track from Yatse (or any other remote).

As I don't plan to use Kodi's volume up and volume down features, I mapped the "volume plus" button to toggle to the next audio track.

The file is:
Code:
/data/sputnik321/.kodi/userdata/keymaps/remote.xml
(or an equivalent location on your OS).

The content of the file is:
Code:
<keymap>
        <global>
                <remote>
                        <volumeplus>AudioNextLanguage</volumeplus>
                </remote>
        </global>
</keymap>

I restarted Kodi and it worked!
Reply
#5
Yatse has a button to do this already.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply

Logout Mark Read Team Forum Stats Members Help
Toggle between audio tracks when playing a video0