TinyVideo
TinyVideo is a TINY video compressor that also makes your videos TINY. Uses FFMPEG.
Features
- Really simple compressing using glob patterns.
Install
$ npm install -g tinyvideo
Yarn:
$ yarn global add tinyvideo
Download
Usage
tinyvideo folder/*.mp4
Usage (Programmatic)
; const result = await VideoCompressor;
API
Uses FFMPEG
as the backend.
compress(patterns, options?)
Returns a promise with the CompressResult.
string[]
patterns: An array of glob patterns.
CompressionOptions
(Optional)
options: number
compressionRate: The amount to compress. The higher the more compression. Defaults to 30
.
boolean
overwrite: Whether to overwrite the files being compressed. Defaults to false.
string
suffix: The suffix that gets appended to the filenames of the compressed files. Defaults to _compressed
.