Giter VIP home page Giter VIP logo

mpeg2part3decoder's Introduction

Yet another MPEG-2 Part 3 decoder

An attempt at an MPEG-2 Part 3 decoder in Rust.

This is a toy project, use at your own risk!

Supported layers

Roadmap

  1. Find a simple reference implementation
    • It should be in C and contain as few as possible assembly and no threading
    • It should have a compatible license
    • It should have a test suite
    • It should be simple to read and port (no assembly, no complex SIMD)
  1. Compile the reference implementation as submodule with Cargo
  2. Make the reference implementation callable from Rust (C2Rust?)
  3. Reimplement each component and compare with reference implementation

Layer I being so simple, a reference implementation may not be needed.

Personal goals

  • Learn Rust
  • Learn MP3 file format
  • Learn audio signal processing

Safety goals

  • Use safe Rust as much as possible
  • No explicit panic

Features

  • Dump MPEG-2 structure
  • Dump MPEG-2 packets
  • Output PCM

Test goals

  • 100% test coverage
  • Compare struct dump to reference
  • Compare packets dump to reference
  • PCM output is identical to reference excluding rounding errors
  • Stretch: Assembly generated never calls panic!

Reference should be generatable from fmprobe and ffmpeg.

Existing implementations

Implementation SIMD Layer License ISO Note
Jon Olick's [ ] I Public [?] archive
PDMP2 [ ] II Zlib [?]
mp3-decoder [ ] III GPL [ ]
minimp3 [X] All CC0 [X]
libmad [X] All GPL [X]
PDMP3 [ ] All? CC0 [?]
TwoLame [?] II LGPL [X] Encoder only

Interesting links

mpeg2part3decoder's People

Contributors

mat-tso avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.