Code Monkey home page Code Monkey logo

betamax's People

Contributors

vegetableman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

betamax's Issues

Support WebP

The support for WebP is easy to do but the resulting animation had visual artefacts. So, support for it had to dropped. Find a workaround.

Optimize packing

The current packing is meant to run in a slow, brute force manner and considering we are dealing with large @2x files, it slows down generation of the packed image tremendously.

Dig deeper on packing algorithms to optimise this process while retaining the compact size of the final result.

Differing sizes of identical frames due to encoding

Differing size of two identical frames out of Mediarecorder blob due to the video encoding process. It's amazing how compression works on the fly.

Frame captured around 2.644 seconds (size: 236KB):

2644

Frame captured at 8.562 seconds (size: 183KB):

8562

Handle visually similar images.

MediaRecorder is the right option for recording frames but due to compression applied by video codecs during the recording, even visually identical frames will differ in this data and end up being marked as dissimilar and packed separately โ€” increasing the size of the packed image. Refer #2.

There are three ways to go about it:

  • Fix the diffing so that it takes in to account visual similarity.
  • Add a mechanism to detect visually similar matches during packing similar to matchTemplate.
  • Find a workaround so that we don't end up with dissimilar images in the first place through mediarecorder.

Remove pyodide

Pyodide has been incredibly helpful and this is super low on the list of things to do, simply because it's too complex. But the matter of fact is, python is slow and the latest version of pyodide is 3-5 times slower than python. So, we quickly run in to limitations with this environment.

Figma is a great example of the possibilities of running native code through webassembly.
https://www.figma.com/blog/webassembly-cut-figmas-load-time-by-3x/

We can go with C, Rust, Zig. whichever is most compatible with the scientific stack.

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.