Socket
Socket
Sign inDemoInstall

@sqhead/tinyh264

Package Overview
Dependencies
0
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sqhead/tinyh264

web assembly h264 decoder


Version published
Weekly downloads
366
increased by16.56%
Maintainers
4
Install size
389 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 16 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc