UNPKG

@calipsa/video-utils

Version:
24 lines 565 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const options = { mp4: { f: 'mpegts', vcodec: 'libx264', pix_fmt: 'yuv420p', tune: 'zerolatency', preset: 'ultrafast', movflags: 'faststart', }, wmv: { f: 'avi', vcodec: 'wmv2', // buffer: true, }, }; exports.default = (format) => { if (!(format in options)) { throw new Error(`Invalid format: ${format}`); } return options[format]; }; //# sourceMappingURL=getFfmpegOptions.js.map