Comparing version 1.3.0 to 1.4.0-alpha.2777f01c
import { Concurrency } from './concurrency'; | ||
import { WebpackConfiguration, WebpackOverrideFn } from './override-webpack'; | ||
import { PixelFormat } from './pixel-format'; | ||
import { OutputFormat } from './render-mode'; | ||
export declare const Config: { | ||
@@ -19,3 +18,3 @@ readonly Bundling: { | ||
*/ | ||
readonly setConcurrency: (newConcurrency: Concurrency) => void; | ||
readonly setConcurrency: (newConcurrency: number | null) => void; | ||
/** | ||
@@ -42,9 +41,25 @@ * Set the JPEG quality for the frames. | ||
/** | ||
* Specify what kind of output you, want, either 'mp4' or 'png-sequence'. | ||
* Default: 'mp4' | ||
* @deprecated Use setCodec() and setImageSequence() instead. | ||
* Specify what kind of output you, either `mp4` or `png-sequence`. | ||
*/ | ||
readonly setOutputFormat: (newRenderMode: "png-sequence" | "mp4") => void; | ||
readonly setOutputFormat: (newLegacyFormat: "mp4" | "png-sequence") => void; | ||
/** | ||
* Specify the codec for stitching the frames into a video. | ||
* Can be `h264` (default), `h265`, `vp8` or `vp9` | ||
*/ | ||
readonly setCodec: (newCodec: import("./codec").CodecOrUndefined) => void; | ||
/** | ||
* 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. | ||
*/ | ||
readonly setCrf: (newCrf: number | undefined) => void; | ||
/** | ||
* Set to true if don't want a video but an image sequence as the output. | ||
*/ | ||
readonly setImageSequence: (newImageSequence: boolean) => void; | ||
}; | ||
}; | ||
export type { PixelFormat, Concurrency, OutputFormat, WebpackConfiguration, WebpackOverrideFn, }; | ||
export type { Codec } from './codec'; | ||
export type { PixelFormat, Concurrency, WebpackConfiguration, WebpackOverrideFn }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Config = void 0; | ||
const codec_1 = require("./codec"); | ||
const concurrency_1 = require("./concurrency"); | ||
const crf_1 = require("./crf"); | ||
const image_sequence_1 = require("./image-sequence"); | ||
const override_webpack_1 = require("./override-webpack"); | ||
@@ -9,3 +12,2 @@ const overwrite_1 = require("./overwrite"); | ||
const quality_1 = require("./quality"); | ||
const render_mode_1 = require("./render-mode"); | ||
exports.Config = { | ||
@@ -47,8 +49,23 @@ Bundling: { | ||
/** | ||
* Specify what kind of output you, want, either 'mp4' or 'png-sequence'. | ||
* Default: 'mp4' | ||
* @deprecated Use setCodec() and setImageSequence() instead. | ||
* Specify what kind of output you, either `mp4` or `png-sequence`. | ||
*/ | ||
setOutputFormat: render_mode_1.setOutputFormat, | ||
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 |
@@ -1,6 +0,6 @@ | ||
declare const validRenderModes: readonly ["png-sequence", "mp4"]; | ||
declare const validRenderModes: readonly ["png", "mp4", "h264", "h265", "vp8", "vp9"]; | ||
export declare type OutputFormat = typeof validRenderModes[number]; | ||
export declare const getFormat: () => OutputFormat; | ||
export declare const getOutputFormat: () => OutputFormat; | ||
export declare const setOutputFormat: (newRenderMode: OutputFormat) => void; | ||
export {}; | ||
//# sourceMappingURL=render-mode.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.setOutputFormat = exports.getFormat = void 0; | ||
const validRenderModes = ['png-sequence', 'mp4']; | ||
exports.setOutputFormat = exports.getOutputFormat = void 0; | ||
const validRenderModes = ['png', 'mp4', 'h264', 'h265', 'vp8', 'vp9']; | ||
let format = 'mp4'; | ||
const getFormat = () => { | ||
const getOutputFormat = () => { | ||
return format; | ||
}; | ||
exports.getFormat = getFormat; | ||
exports.getOutputFormat = getOutputFormat; | ||
const setOutputFormat = (newRenderMode) => { | ||
@@ -11,0 +11,0 @@ if (!validRenderModes.includes(newRenderMode)) { |
@@ -17,9 +17,19 @@ /// <reference types="react" /> | ||
getPixelFormat: () => "yuv420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le"; | ||
getConcurrency: () => import("./config/concurrency").Concurrency; | ||
getConcurrency: () => number | null; | ||
getShouldOverwrite: () => boolean; | ||
getFormat: () => "png-sequence" | "mp4"; | ||
getOutputCodecOrUndefined: () => import("./config/codec").CodecOrUndefined; | ||
getWebpackOverrideFn: () => WebpackOverrideFn; | ||
getQuality: () => number | undefined; | ||
getShouldOutputImageSequence: () => boolean; | ||
validateSelectedCrf: (crf: number, codec: "h264" | "h265" | "vp8" | "vp9") => void; | ||
getFinalOutputCodec: ({ codec: inputCodec, fileExtension, emitWarning, }: { | ||
codec: import("./config/codec").CodecOrUndefined; | ||
fileExtension: string | null; | ||
emitWarning: boolean; | ||
}) => "h264" | "h265" | "vp8" | "vp9"; | ||
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9"; | ||
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9") => number; | ||
getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9") => number; | ||
}; | ||
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, }; | ||
//# sourceMappingURL=internals.d.ts.map |
@@ -24,3 +24,6 @@ "use strict"; | ||
const CompositionManager_1 = require("./CompositionManager"); | ||
const codec_1 = require("./config/codec"); | ||
const concurrency_1 = require("./config/concurrency"); | ||
const crf_1 = require("./config/crf"); | ||
const image_sequence_1 = require("./config/image-sequence"); | ||
const override_webpack_1 = require("./config/override-webpack"); | ||
@@ -30,3 +33,2 @@ const overwrite_1 = require("./config/overwrite"); | ||
const quality_1 = require("./config/quality"); | ||
const render_mode_1 = require("./config/render-mode"); | ||
const perf = __importStar(require("./perf")); | ||
@@ -53,6 +55,12 @@ const register_root_1 = require("./register-root"); | ||
getShouldOverwrite: overwrite_1.getShouldOverwrite, | ||
getFormat: render_mode_1.getFormat, | ||
getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined, | ||
getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn, | ||
getQuality: quality_1.getQuality, | ||
getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence, | ||
validateSelectedCrf: crf_1.validateSelectedCrf, | ||
getFinalOutputCodec: codec_1.getFinalOutputCodec, | ||
DEFAULT_CODEC: codec_1.DEFAULT_CODEC, | ||
getDefaultCrfForCodec: crf_1.getDefaultCrfForCodec, | ||
getActualCrf: crf_1.getActualCrf, | ||
}; | ||
//# sourceMappingURL=internals.js.map |
{ | ||
"name": "remotion", | ||
"version": "1.3.0", | ||
"version": "1.4.0-alpha.2777f01c", | ||
"description": "Render videos in React", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "eslint 'src' --ext ts,tsx && jest", | ||
"test": "eslint src --ext ts,tsx && jest", | ||
"build": "tsc -d", | ||
@@ -9,0 +9,0 @@ "prerelease": "cp ../../README.md ." |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167555
206
2104
2