remotion
Version:
Render videos in React
120 lines • 4.72 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Config = void 0;
const browser_executable_1 = require("./browser-executable");
const codec_1 = require("./codec");
const concurrency_1 = require("./concurrency");
const crf_1 = require("./crf");
const env_file_1 = require("./env-file");
const frame_range_1 = require("./frame-range");
const image_format_1 = require("./image-format");
const image_sequence_1 = require("./image-sequence");
const log_1 = require("./log");
const override_webpack_1 = require("./override-webpack");
const overwrite_1 = require("./overwrite");
const pixel_format_1 = require("./pixel-format");
const preview_server_1 = require("./preview-server");
const quality_1 = require("./quality");
const webpack_caching_1 = require("./webpack-caching");
exports.Config = {
Bundling: {
/**
* Pass in a function which takes the current Webpack config
* and return a modified Webpack configuration.
* Docs: http://remotion.dev/docs/webpack
*/
overrideWebpackConfig: override_webpack_1.overrideWebpackConfig,
/**
* Whether Webpack bundles should be cached to make
* subsequent renders faster. Default: true
*/
setCachingEnabled: webpack_caching_1.setWebpackCaching,
/**
* Define on which port Remotion should start it's HTTP servers during preview and rendering.
* By default, Remotion will try to find a free port.
* If you specify a port, but it's not available, Remotion will throw an error.
*/
setPort: preview_server_1.setPort,
},
Log: {
/**
* Set the log level.
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
* Default value: 'info'
*
* Set this to 'verbose' to get browser logs and other IO.
*/
setLevel: log_1.setLogLevel,
},
Puppeteer: {
/**
* Specify executable path for the browser to use.
* Default: null, which will make Remotion find or download a version of said browser.
*/
setBrowserExecutable: browser_executable_1.setBrowserExecutable,
},
Rendering: {
/**
* Set a custom location for a .env file.
* Default: `.env`
*/
setDotEnvLocation: env_file_1.setDotEnvLocation,
/**
* Sets how many Puppeteer instances will work on rendering your video in parallel.
* Default: `null`, meaning half of the threads available on your CPU.
*/
setConcurrency: concurrency_1.setConcurrency,
/**
* Set the JPEG quality for the frames.
* Must be between 0 and 100.
* Must be between 0 and 100.
* Default: 80
*/
setQuality: quality_1.setQuality,
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
* PNG is slower, but supports transparency.
*/
setImageFormat: image_format_1.setImageFormat,
/**
* Render only a subset of a video.
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
* Pass in a single number `20` to only render a single frame as an image.
* The frame count starts at 0.
*/
setFrameRange: frame_range_1.setFrameRange,
},
Output: {
/**
* If the video file already exists, should Remotion overwrite
* the output? Default: true
*/
setOverwriteOutput: overwrite_1.setOverwriteOutput,
/**
* Sets the pixel format in FFMPEG.
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
* You can override this using the `--pixel-format` Cli flag.
*/
setPixelFormat: pixel_format_1.setPixelFormat,
/**
* @deprecated Use setCodec() and setImageSequence() instead.
* Specify what kind of output you, either `mp4` or `png-sequence`.
*/
setOutputFormat: codec_1.setOutputFormat,
/**
* Specify the codec for stitching the frames into a video.
* Can be `h264` (default), `h265`, `vp8` or `vp9`
*/
setCodec: codec_1.setCodec,
/**
* Set the Constant Rate Factor to pass to FFMPEG.
* Lower values mean better quality, but be aware that the ranges of
* possible values greatly differs between codecs.
*/
setCrf: crf_1.setCrf,
/**
* Set to true if don't want a video but an image sequence as the output.
*/
setImageSequence: image_sequence_1.setImageSequence,
},
};
//# sourceMappingURL=index.js.map