Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tidepool-org/lzo-wasm
LZO decompression in the browser using FFmpeg
https://github.com/tidepool-org/lzo-wasm
avutil browser lzo wasm
Last synced: 18 days ago
JSON representation
LZO decompression in the browser using FFmpeg
- Host: GitHub
- URL: https://github.com/tidepool-org/lzo-wasm
- Owner: tidepool-org
- License: bsd-2-clause
- Created: 2021-05-06T10:12:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-17T09:33:40.000Z (over 3 years ago)
- Last Synced: 2024-11-14T11:09:57.766Z (about 2 months ago)
- Topics: avutil, browser, lzo, wasm
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lzo-wasm
Decompress using LZO in the browser using Ffmpeg
## Introduction
`lzo-wasm` is a WebAssembly version of the the LZO implementation in [FFMpeg's libavutil](https://github.com/FFmpeg/FFmpeg/tree/master/libavutil) library.
`lzo-wasm` works in the browser. For Node.js, use [lzo-decompress](https://github.com/tidepool-org/lzo-decompress) instead.
This software uses code of [FFmpeg](http://ffmpeg.org) licensed under the [LGPLv3](https://www.gnu.org/licenses/lgpl.html) and its source can be downloaded [here](https://github.com/FFmpeg/FFmpeg/tree/master/libavutil).
## Usage
```js
import LZO from 'lzo-wasm';const decompressed = await LZO.decompress(input, length);
```## Building from source
Run `build.sh`.
Scripts:
- `build.sh` - clones the FFmpeg repo and builds from source using Docker
- `build-lzo-with-docker.sh` - builds from source using Docker
- `build-lzo.sh` - builds if Emscripten is available## Example in browser
- In `wasm/`, run `python3 -m http.server 8080`
- In your browser, open `http://localhost:8080/main.html`
- Click `Choose File` and select the `y.lzo` LZO-compressed file
- Check your web console for the decompressed data