UNPKG

webcodecs-encoder

Version:

A TypeScript library for browser environments to encode video (H.264/AVC, VP9, VP8) and audio (AAC, Opus) using the WebCodecs API and mux them into MP4 or WebM containers with real-time streaming support. New function-first API design.

19 lines (15 loc) 422 B
#!/usr/bin/env node import { execSync } from 'child_process'; import { createRequire } from 'module'; const require = createRequire(import.meta.url); try { require.resolve('patch-package'); } catch (err) { console.log('patch-package not installed, skipping patches.'); process.exit(0); } try { execSync('patch-package', { stdio: 'inherit' }); } catch (err) { console.error('Failed to apply patches:', err); }