UNPKG

@ffmpeg/ffmpeg

Version:
37 lines (35 loc) 880 B
require('regenerator-runtime/runtime'); const createFFmpeg = require('./createFFmpeg'); const { fetchFile } = require('./node'); module.exports = { /* * Create ffmpeg instance. * Each ffmpeg instance owns an isolated MEMFS and works * independently. * * For example: * * ``` * const ffmpeg = createFFmpeg({ * log: true, * logger: () => {}, * progress: () => {}, * corePath: '', * }) * ``` * * For the usage of these four arguments, check config.js * */ createFFmpeg, /* * Helper function for fetching files from various resource. * Sometimes the video/audio file you want to process may located * in a remote URL and somewhere in your local file system. * * This helper function helps you to fetch to file and return an * Uint8Array variable for ffmpeg.wasm to consume. * */ fetchFile, };