TinyVideo is a TINY video compressor that also makes your videos TINY. Uses FFMPEG.
- Really simple compressing using glob patterns.
- Simple programmatic usage with a clean API.
- Uses user intalled FFMPEG binaries.
$ npm install -g tinyvideo
Yarn:
$ yarn global add tinyvideo
tinyvideo folder/*.mp4import { CompressResult, VideoCompressor } from 'tinyvideo';
const result = await VideoCompressor.compress(['test/*.mov']);Uses FFMPEG as the backend.
Returns a promise with the CompressResult.
An array of glob patterns.
The amount to compress. The higher the more compression. Defaults to 30.
Whether to overwrite the files being compressed. Defaults to false.
The suffix that gets appended to the filenames of the compressed files. Defaults to _compressed.