0.0.9 • Published 2 years ago

@sqhead/tinyh264 v0.0.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Tiny H264

This project was forked from h264bsd.

Available on npm as tinyh264 and meant to be used with a builder system like webpack as worker module. See demo folder for an example.

All non-essential operations like color conversions, querying cropping parameters or render to canvas have been removed. All required decoding operations have been moved to C to optimize performance.

Quick tests show an up to 50% performance improvement on chrome, and up to 20% on Firefox.

  • Input is expected to be a picture of NALs (a complete access units or AU) as Uint8Array, the output result is a yuv420 buffer as Uint8Array.
  • Profile must be constrained-baseline or baseline.
  • Only I and P frames are considered supported (so no B-frames).

This project was created for use in Greenfield

Building

Prerequisites

  • Bash

Make sure you have sourced the emscripten environment and run npm install && npm run build.

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago