Compress videos to web-optimized MP4 (H.264) and WebM (VP9).
npm install -g vcpvcp <input> [output-basename]vcp hero.mov # → hero-compressed.mp4, hero-compressed.webm
vcp demo.mp4 output # → output-compressed.mp4, output-compressed.webm| Format | Codec | Audio | CRF |
|---|---|---|---|
| MP4 | H.264 | AAC 128k | 23 |
| WebM | VP9 | Opus 96k | 30 |
Videos are scaled down to a max of 1920x1080 while preserving aspect ratio. Videos smaller than that are left at their original resolution.
MIT