• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!
    • Docs
      • Installation
      • Changelog
    • FAQ
    • Support
      • Free Support
      • Pro Support
    • PRO

    How to Use Multiple Audio Tracks with FV Player

    List of contents:

    • How to Encode Multiple Audio Tracks
    • How to Serve Multiple Audio Tracks
      • FV Player Coconut
        • Custom Audio Track Labels
      • Amazon Web Services
    • How to Use Multiple Audio Tracks with FV Player
    • Example

    Adding multiple audio tracks to your videos opens up a world of possibilities. You can make your video available for as wide range of people as possible, or cater to the specific needs of your users. Subtitles are important, but sometimes they are simply not enough.

    Whether you want to include various language speakers, add a curated commentary to your short film, or even provide your music students with various layers of a song, that’s where multiple audio tracks come into play.

    How to Encode Multiple Audio Tracks

    Note: For Amazon Web services, the encoding happens in Mediaconvert. If you’re using AWS, click here.

    In order to stream a video with multiple audio tracks, you will need to add the tracks prior to hosting it anywhere. While the tracks are supported in many formats, not all software offers the feature to include them. After carefully considering the options, we recommend using the lightweight, free and open-source tool MKVToolNix, mainly due to it’s ease of use and availability across all platforms. Avidemux can also be used, but it proves to be a bit less flexible in terms of audio.

    Note: Unfortunately, more popular alternatives, such as HandBrake do not support this yet, but hopefully will in the future.

    1. Download MKVToolNix here, install and open it.
    2. Right-click and pick Add files to add the video you wish to edit:

    3. Now follow the same process to add your first audio track.
    4. Once the additional audio track is there, you will see all the tracks and other parts (such as chapters, etc.) in the bottom left field:

      The tracks present in our project at the moment are as follows:

      • The video in mp4 format.
      • The original audio track present in the video.
      • The .mp3 audio track we have just added.
    5. Make sure to pick the track you want to edit in the bottom field. Now you can edit it on the right side:

      You can:

      • Define the track’s name.
      • Define the language tag.
      • Add other common flags and much more.
    6. To define language, click the edit icon next to “Language”:

    7. Now you can pick a tag from the drop-down menu, or even insert the tag as free form:

    8. Repeat the tagging process for all the other tracks you wish to add. Make sure to set “Default audio” flag to Yes for the audio you wish to be default. And to No for all the other tracks:

    9. Review and click Start Multiplexing:

    10. If you want to make sure, or if something went wrong, you can see the details of the job right-clicking the status bar in bottom right corner and picking show job output:

    Not all hosting services support using multiple audio tracks. You will also want to encode the files into an HLS Stream to ensure that all browsers will be able to play the video properly.

    Vimeo and YouTube do not support multiple audio tracks as of yet. YouTube is currently testing this feature and it could be available to the general public fairly soon.

    How to Serve Multiple Audio Tracks

    FV Player Coconut

    We recommend using Coconut, as it fully supports multiple audio tracks. Just encode your video with multiple audio tracks using our free FV Player Coconut.

    To enable the processing for multiple audio tracks you need to enable wp-admin -> FV Player -> Coconut Josb -> Settings -> Separate Audio Tracks.

    Setting required to enable multiple audio tracks

    Then follow the standard steps to post a video.

    Custom Audio Track Labels

    In some cases you might not want the different audio tracks for different languages, but some other purpose. Like different instrument tuning if you music theory website or different sound tracks for your movie.

    Unfortunately Coconut ignores the custom labels and only understands the languages, so we need to fix that once the video is encoded.

    1. When you are preparing your multiple audio tracks audio file assign a unique random language for each audio track.
    2. Then encode the video using FV Player Coconut.
    3. Once the video encoded we need to edit the audio tracks labels in the main HLS m3u8 file.
    4. To do that connect to your target video Space on DigitalOcean. You can use CyberDuck which is free. Just pick the Amazon S3 connection type, provide your DigitalOcean Spaces host and access keys.

      CyberDuck Amazon S3 connection dialog
    5. Locate the index.m3u8 file and open it for editing

      Edit the index.m3u8 file
    6. Then change the standard language labels to what you need using your text editor:

      #EXTM3U
      
      # Audio
      #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="Eng",LANGUAGE="Eng",AUTOSELECT=YES,DEFAULT=YES,URI="audio/aac/eng/stream.m3u8"
      #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="Ger",LANGUAGE="Ger",AUTOSELECT=YES,URI="audio/aac/ger/stream.m3u8"
      #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="Spa",LANGUAGE="Spa",AUTOSELECT=YES,URI="audio/aac/spa/stream.m3u8"
      
      (...)
          

      Note: You can change order of these audio tracks too, just move each line up or down as needed carefully.

      Note: The default audio track is determined by DEFAULT=YES, so you will have to move that bit too. And for this to work on iPhone as well you will have to remove the LANGUAGE="..." attributes as well.

    7. Don’t forget to save the file.

    8. FV Player Pro’s Stream Laoder cache has to be purged as well:

      FV Player Pro’ Stream Loader Cache Purge
    9. If you played the video already, you will have to purge the Bunny CDN cache as it will. That way it will load the new updated file.

      Bunny CDN Purge Cache button

    Amazon Web Services

    Amazon Web Services supports multiple audio tracks too. With AWS, you do not need to use software, as the multiple audio tracks encoding happens all in the Mediaconvert console.

    1. Upload the audio files to your S3 bucket.
    2. Prepare the video input and outputs as per this guide.
    3. Go to Input and configure audio selectors.Choose selector type based on your needs and preferences (Language code, track, PID).

      You can add as many of them as you need by clicking Add audio selector.

      We recommend you add the audio files from your S3 bucket, as it is the easiest way. Browse S3 in the external file field.

    4. Now go over to the output group. You will need new outputs for each audio track. Do not add the audio into existing video outputs.

      Remove audio from encoding settings of all the video quality outputs, and remove video from encoding settings of audio inputs.

      This is an output group with a single video and 3 audio outputs:

    5. In each audio output, go to Output Settings -> Audio. Put in an arbitrary Audio group ID.

      The Audio group ID must be the same in all audio outputs.

      Then select the Audio track type – “Alternate audio, auto select, default” for the default audio and “Alternate audio,auto select, not default” for all the rest.

    6. AWS requires you to set an arbitrary Name modifier – this will be appended to the file name.

      Audio output settings
    7. Underneath, in Encoding Settings -> Audio Source Select the correct number of Audio Selector created in step 3. None of the other encoding settings are required for this purpose.

      Adding audio rendition sets to video output settings

      Double check, if all selectors have correct audio source and the same Audio group ID.

    8. Finally, go into all the video outputs. There, go to Output settings -> Advanced. Write the Audio group ID you set in step 5. to the Audio rendition sets. In this case, our audio group ID is simply called “Audio”:

    How to Use Multiple Audio Tracks With FV Player

    Just insert the link to the shortcode editor as you would a normal video, and FV Player will recognize the multiple audio tracks automatically.

    Once posted, the video will have an AUD button on the controlbar, allowing you to switch between the audio tracks.

    EXAMPLE

    video
    play-sharp-fill

    Reader Interactions

    Primary Sidebar

    Audio Player

    1. Why FV Player?
    2. FAQ
    3. Creating and Managing Playlists
    4. Advanced features
    5. Video Security
    6. Troubleshooting
    7. Tools
    8. Analytics
    9. Audio Player
      1. Audio Tracks in FV Player
      2. Multiple Audio Tracks
    10. Live Streaming
    11. Download | Buy
    12. Getting Started
    13. Licensing and Account
    14. Setting Screens
    15. Video Hosting
    16. Video Membership, Pay Per View and eLearning
    17. Video Advertising
    18. FV Player VAST/VPAID
    19. Casting Options
    20. For Developers
    21. FV Player Demos
    22. Additional Services
    23. Legal

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬

    We are using cookies to give you the best experience on our website.

    You can find out more about which cookies we are using or switch them off in .

    Powered by  GDPR Cookie Compliance
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

    Necessary Cookies

    Strictly Necessary Cookie allow you to log in and download your software or post to forums.

    We use the WordPress login cookie and the session cookie.

    If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

    Support Cookies

    Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

    We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

    Please enable Strictly Necessary Cookies first so that we can save your preferences!

    3rd Party Cookies

    This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

    Keeping this cookie enabled helps us to improve our website.

    We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

    Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

    Please enable Strictly Necessary Cookies first so that we can save your preferences!