Giter Site home page Giter Site logo

Support MP3 about rust-media HOT 12 OPEN

pcwalton avatar pcwalton commented on July 18, 2024
Support MP3

from rust-media.

Comments (12)

boghison avatar boghison commented on July 18, 2024

Is it ok if we don't use FFmpeg or AudioUnit.framework and write a decoder in Rust instead?

from rust-media.

pcwalton avatar pcwalton commented on July 18, 2024

It is, but that decoder should be treated as a fallback for when no hardware decoder is available. Sadly, the only way to use HW decoders is typically the platform APIs, due to the closed proprietary nature of decoders :(

from rust-media.

boghison avatar boghison commented on July 18, 2024

But isn't that only for Win + Mac? For Linux we're using software decoding anyways, aren't we?

from rust-media.

pcwalton avatar pcwalton commented on July 18, 2024

Yeah, I don't think desktop Linux usually uses HW decoding, so a pure Rust solution sounds just fine there. Assuming it works and is fast enough, of course :)

from rust-media.

boghison avatar boghison commented on July 18, 2024

It would be an interesting experiment :)

from rust-media.

boghison avatar boghison commented on July 18, 2024

How would we go about per-frame headers and info (ex. sampling rate)? It is common practice to assume that every frame will be like the first, but that's not correct per se.

from rust-media.

boghison avatar boghison commented on July 18, 2024

@pcwalton ^^

from rust-media.

pcwalton avatar pcwalton commented on July 18, 2024

Usually I've been following the way mkv does these things. For example, the notion of cluster/track/etc. is taken from mkv. So I guess my answer would be "however mkv handles it".

from rust-media.

boghison avatar boghison commented on July 18, 2024

@pcwalton Well, it seems like mkv handles it exactly the way I put it (at least judging by this), which assumes that each frame has the same headers, but this is not correct, and it will not allow features such as variable bitrate

from rust-media.

ritiek avatar ritiek commented on July 18, 2024

Any update on MP3 support?

from rust-media.

jdm avatar jdm commented on July 18, 2024

Nobody is working on rust-media at this point.

from rust-media.

lieff avatar lieff commented on July 18, 2024

Hi, here new https://crates.io/crates/minimp3

from rust-media.

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.