Compresses a video file to the specified format.
Automatically selects the fastest available engine:
ffmpeg
const { blob, ratio } = await compressVideo(file, { format: 'mp4', bitrate: '1M' }); Copy
const { blob, ratio } = await compressVideo(file, { format: 'mp4', bitrate: '1M' });
Compresses a video file to the specified format.
Automatically selects the fastest available engine:
ffmpegbinary via child_process