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

Foliovision

Making the web work for you

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

Multiple Audio with hls is not working on FV Player but works on videojs

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › Multiple Audio with hls is not working on FV Player but works on videojs

  • Gus E. 2 weeks ago

    Hi! I’m trying to make work a multiple audio stream for hls but doesn’t change the language. The same master.m3u8 works on videojs but not in FV Player. Is made with Bento4 mp4-hls utility.
    Here is the master.m3u8 file:

    #EXTM3U
    # Created with Bento4 mp4-hls.py version 1.2.0r637
    
    #EXT-X-VERSION:4
    
    # 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="hin",LANGUAGE="hin",AUTOSELECT=YES,URI="audio/aac/hin/stream.m3u8"
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="zho",LANGUAGE="zho",AUTOSELECT=YES,URI="audio/aac/zho/stream.m3u8"
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="pol",LANGUAGE="pol",AUTOSELECT=YES,URI="audio/aac/pol/stream.m3u8"
    
    # Media Playlists
    #EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=595687,BANDWIDTH=622783,CODECS="avc1.4D4028,mp4a.40.2",RESOLUTION=480x272,AUDIO="audio_aac"
    media-1/stream.m3u8
    #EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=942864,BANDWIDTH=986312,CODECS="avc1.4D4028,mp4a.40.2",RESOLUTION=640x360,AUDIO="audio_aac"
    media-2/stream.m3u8
    
    # I-Frame Playlists
    #EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=72069,BANDWIDTH=116293,CODECS="avc1.4D4028",RESOLUTION=480x272,URI="media-1/iframes.m3u8"
    #EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=128713,BANDWIDTH=208246,CODECS="avc1.4D4028",RESOLUTION=640x360,URI="media-2/iframes.m3u8"
    
Viewing 8 replies - 1 through 8 (of 8 total)
  • Gus E. 2 weeks ago

    Hello, It’s possible to have some feedback on this issue? I’m testing my stream in some other players such as Theo Player and videojs and is working fine. I can change the audio track. The only one that doesn’t work is FV Player. Can someone give me a clue? I’ll apreciate it.
    This is my testing stream:
    https://dusqglx8g3hsd.cloudfront.net/test_multia_audio_renditions_2/master.m3u8
    Thank you very much

    Gus E. 2 weeks ago

    Browser is returning 404 not found errors on aac files and the key pairs are only attached on ts files not aac. Is this the expected behaivour?
    Thanks

    screenshot-2021-01-11-at-17-29-18 Screenshot-2021-01-11-at-17.29.18
    Mária Stašová 2 weeks ago
    Mária Stašová

    Hello Gus,

    sorry for the late response.

    Encrypted HLS streams with multiple audio tracks need to obtain the decryption keys twice. It seems, this is the problem. There was a fix for it rather recently. Please, make sure you are using the beta version, not the release version of FV Player Pro.

    Let me know if it helped.

    Thanks,
    Maria

    Martin 2 weeks ago

    Hello Gus,

    it doesn’t seem like you are using an encrypted HLS stream actually. The video plays without issue on the HLS.js test page too: https://hls-js.netlify.app/demo/

    Thank you for the screenshot, it reveals that FV Player Pro is actually using the Stream Loader to play your stream, but it’s not necessary as obviously the stream doesn’t use URL tokens as it plays on that HLS.js test page. But we will fix that.

    My guess is that you have configured the dusqglx8g3hsd.cloudfront.net domain in Settings -> FV Player Pro -> Hosting -> Cloudfront. If you remove it from the configuration there no Stream Loader will be used and the video will play.

    Thanks,
    Martin

    Gus E. 2 weeks ago

    Hello Martin and Maria, thanks for your answer!
    Regarding the encrypted HLS, yesterday I disabled the Cloudfront signed url option in order to let you check my stream. But in a real scenario we need this protection in order to protect from downloads. Is a good practice or you think that another layer of encryption on the hls encoding is needed? With this setup seems to be pretty secure and undownloadable.
    I’m gonna check if as says Maria the beta version of the player fixes the multitrack problem.

    Martin 2 weeks ago

    Hello Gus,

    yes please, have a look if using the Beta version of FV Player Pro will fix the issue. We did some fixes to the Stream Loader there.

    Encrypting the stream is necessary if you really want to protect your videos. That way the video won’t play even if you download the files.

    Thanks,
    Martin

    Gus E. 2 weeks ago

    Thanks for your help! With the beta version works fine.

    Martin 2 weeks ago

    Hello Gus,

    in that case it’s about time to move this functionality from beta to release. Next time you check the changelog you should be able to see a note of which Beta improvements were moved into Release version. Then you can switch back to Release.

    Thanks,
    Martin

Viewing 8 replies - 1 through 8 (of 8 total)
Reply To: Multiple Audio with hls is not working on FV Player but works on videojs



Related Posts

  1. multiple audio tracks

    New multiple audio tracks support

  2. How to Use Audio Tracks in FV Player

  3. Audio Tracks

    Audio Tracks

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

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 © 2021 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. +1 518 412 4600