GithubHelp home page GithubHelp logo

Support multi-channel of audio about flash HOT 7 OPEN

litvinok avatar litvinok commented on August 21, 2024
Support multi-channel of audio

from flash.

Comments (7)

danrossi avatar danrossi commented on August 21, 2024

you can't do this with HTTP or RTMP there is no api option to do that. packing audio streams into the one file is inefficient anyway. Both HDS and HLS allow for this, it will inject the separate mp3 or aac files into the stream.

However I had to do some modifications for hbo recently to programatically switch the language audio its not in the plugin at the moment for HDS. but it's fully supported in my HLS feature or the free one available on the site but I dont support that one someone else might.

I have done some modifications to my own plugin where some people had multiple audio streams in their TS fragments rather than separate audio feeds so I had to accomodate for that.

it is unfortunate but "only supporting in such and such" is a very common affair in browser land it will never change therefore does need flash fallbacks as work arounds.

There is a way still but it requires security work arounds sadly.

http://flash.flowplayer.org/plugins/streaming/pseudostreaming.html

There is a byte range support feature, but it would have to do a whole lot of demuxing and parsing to choose the right audio track to append with the video track for both flv and mp4. It would work pretty much the same way as HDS and HLS but on standard mp4 files. The worth of this kind of work i'm unsure of ?

from flash.

vkhramtsov avatar vkhramtsov commented on August 21, 2024

Our main point is that we want to allow user to switch audio stream on the fly online and offline (after downloading file) and we want to avoid synchronization problems between audio and video streams. After some investigation, we have figured out that the simplest way is store different audio tracks in different audio streams in one file. Currently in API of flowplayer (clip) we can see different audio tracks, but unfortunately cannot switch between them.
Would you be so kind to implement plugin, that allow to switch audio tracks?
P.S. Using HLS or HDS will lead us to overhead and we would like to avoid it, because we are use static mp4 files for this functionality.

from flash.

danrossi avatar danrossi commented on August 21, 2024

If you have an example I can see what might be possible.

from flash.

vkhramtsov avatar vkhramtsov commented on August 21, 2024

Please use this file from https://dl.dropboxusercontent.com/u/2026692/result.mp4. It has one video and three audio tracks.
Thank you.

from flash.

vkhramtsov avatar vkhramtsov commented on August 21, 2024

Any news about this ticket?

from flash.

VinGarcia avatar VinGarcia commented on August 21, 2024

+1 I also would like to see this feature implemented

from flash.

danrossi avatar danrossi commented on August 21, 2024

Hi guys there is beginning support for multi channel audio as in surround tracks folding down to stereo but natively in the browser in mp4 containers and mpeg dash.

It's not across all yet sadly.

IE Edge and Safari supports AC3 format I believe, also folding down surround tracks to stereo.

If Flash supported such a thing, I'm not sure how it works but if it connected to this multi channel support in browsers then it would be possible.

As far as alternate switching goes for language audio tracks. Use HDS / Mpeg Dash / HLS. It allows for selectable external audio streams.

ie I have a demo for HDS on my page here and uses Flash. It appends audio separate from the video.

https://flowplayer.electroteque.org/httpstreaming-hds/fp6

from flash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.