@calipsa/video-utils
Version:
Video utilities
24 lines • 565 B
JavaScript
;
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