Giter Site home page Giter Site logo

jpeg-mpeg-visualizer

WebAssembly application visualizing the JPEG, MPEG-1 and G.711 compression algorithms

Open in browser »

About the project

This project aims to visualize the principles of image compression (JPEG), video compression (MPEG-1) and audio compression (G.711). It utilizes WebAssembly and works completely inside the browser. The whole application was written in Rust. It was created as our engineer's thesis.

Screenshots

Features

  • JPEG
    • see how the image is converted into Y'CbCr color space
    • view the effect of chroma subsampling
    • adjust the quality slider to see how different quantization tables behave
    • compare original and recovered image side by side
  • MPEG-1
    • view the type of each frame
    • inspect the decoded information inside each macroblock
    • view the evolution of a given macroblock
    • adjust which types of macroblocks are being displayed
  • G.711
    • compare the A-law and μ-law algorithms
    • switch the playback between original and recovered signal
    • create the spectrogram of the signal

The application can analyze user supplied inputs. The JPEG and G.711 section should work with any file format supported by the used web browser. The MPEG-1 section can only play MPEG-1 encoded videos inside the MPEG-TS container. You can use FFmpeg to generate your own samples (the resulting video will contain 2 B-frames between non-B-frames, adjust the bitrate by changing the value of b:v parameter): ffmpeg -i INPUT -c:v mpeg1video -b:v 2000k -bf 2 -an OUTPUT.ts

Getting started

This project is using wasm-pack for building the WebAssembly package and all necessary JavaScript shims.

Run the following command to build the WebAssembly package:

wasm-pack build --target web

You can then use any web server to host the root folder of this project and navigate to http://localhost:[PORT]/www to run the application.

The supplied Makefile contains the rules to build the project and to run static analysis tools.

Team


Konrad Bochnia

Michał Jakubek

Michał Węgrzyn

This project was created as our engineer's thesis.

Built with

The MPEG-1 decoder was strongly inspired by the JSMpeg and PL_MPEG.

Notable crates used by this project:

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments

jpeg-mpeg-visualizer's Projects

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.