Giter Site home page Giter Site logo

Support for audio containers about hls.js HOT 13 CLOSED

 avatar commented on August 19, 2024
Support for audio containers

from hls.js.

Comments (13)

mangui avatar mangui commented on August 19, 2024

I guess you are referring to audio only playlist with AAC container.
this should come in the coming weeks, i will review the demuxer layer so that it can support multiple containers.
sample streams welcome

from hls.js.

tchakabam avatar tchakabam commented on August 19, 2024

@mangui How about MP3 support (it can be muxed into MP4). I have a working implementation, does your MP4 transmuxer support this? Otherwise it will be a pleasure to add it :) The thing I got also works with AAC of course.

from hls.js.

mangui avatar mangui commented on August 19, 2024

MP4 transmuxer currently only supports MP4 audio, but adding MP3 should not be an issue, providing that browsers support it : in theory it should be signaled as mp4a.40.34but I didn't get any success on Chrome or FF with MediaSource.isTypeSupported('video/mp4; codecs="mp4a.40.34"');

from hls.js.

mangui avatar mangui commented on August 19, 2024

but if you have a working implementation I would be curious to see how it works :-) and PR welcome

from hls.js.

tchakabam avatar tchakabam commented on August 19, 2024

So, what I know is

  • Chrome supports appending plain MP3 elementary stream to SourceBuffer. It advertises that by MediaSource.isTypeSupported('audio/mpeg')
  • Firefox only supports fMP4 ('audio/mp4' will be true I believe). And it supports all the MPEG standard payloads for MP4 audio, which is AAC and MP3. However I am not sure how it signals that exactly :)

So in principle I think I would like to update your MP4 transmuxer (or add one) that will produce MP4 with MPEG audio L3 payload.

In general will be nice to make the whole thing more like a pipeline I think, because we may also want to do audio software decoding and other codecs (like OPUS) or formats (WEBM), and maybe use WebAudio as a backend as well :) What do you think?

from hls.js.

mangui avatar mangui commented on August 19, 2024

AAC support merged upstream

from hls.js.

kylophone avatar kylophone commented on August 19, 2024

Thanks for this!

from hls.js.

mangui avatar mangui commented on August 19, 2024

@kylophone, needs some testing, i was able to check against one playlist

from hls.js.

 avatar commented on August 19, 2024

Thanks, will do some tests when I get a chance.

from hls.js.

mangui avatar mangui commented on August 19, 2024

for MP3 in MP4, refer to gpac/mp4box.js#78 (comment)

from hls.js.

fdambrosio avatar fdambrosio commented on August 19, 2024

Hi, there's news about mp3 only-audio support?

from hls.js.

mangui avatar mangui commented on August 19, 2024

implemented here https://github.com/dailymotion/hls.js/pull/808
i need some time to review it

from hls.js.

stale avatar stale commented on August 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from hls.js.

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.