Decompress using LZO in the browser using Ffmpeg
lzo-wasm
is a WebAssembly version of the the LZO implementation in FFMpeg's libavutil library.
lzo-wasm
works in the browser. For Node.js, use lzo-decompress instead.
This software uses code of FFmpeg licensed under the LGPLv3 and its source can be downloaded here.
import LZO from 'lzo-wasm';
const decompressed = await LZO.decompress(input, length);
Run build.sh
.
Scripts:
build.sh
- clones the FFmpeg repo and builds from source using Dockerbuild-lzo-with-docker.sh
- builds from source using Dockerbuild-lzo.sh
- builds if Emscripten is available
- In
wasm/
, runpython3 -m http.server 8080
- In your browser, open
http://localhost:8080/main.html
- Click
Choose File
and select they.lzo
LZO-compressed file - Check your web console for the decompressed data