Skip to content

A tiny h264 decoder, for node and browser

Notifications You must be signed in to change notification settings

sonycamera/tinyh264

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 complete NALs (access units) as Uint8Array, the output result is a yuv420 buffer as Uint8Array.

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.

About

A tiny h264 decoder, for node and browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.3%
  • C++ 9.7%
  • Other 1.0%