remotion 3.3.52 → 3.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CompositionManager.js +4 -14
- package/dist/Sequence.d.ts +0 -1
- package/dist/Sequence.js +1 -1
- package/dist/audio/Audio.d.ts +2 -2
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/config.d.ts +250 -244
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +2 -6
- package/dist/internals.d.ts +4 -1
- package/dist/series/index.js +2 -5
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cancel-render.d.ts +0 -1
- package/dist/cancel-render.js +0 -43
package/dist/config.d.ts
CHANGED
|
@@ -3,26 +3,74 @@
|
|
|
3
3
|
* For the moment the type definitions are going to stay here
|
|
4
4
|
*/
|
|
5
5
|
declare type Concurrency = number | null;
|
|
6
|
+
import type { Configuration } from 'webpack';
|
|
7
|
+
declare type WebpackConfiguration = Configuration;
|
|
8
|
+
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
6
9
|
declare type BrowserExecutable = string | null;
|
|
7
10
|
declare type FrameRange = number | [number, number];
|
|
8
11
|
declare type FfmpegExecutable = string | null;
|
|
9
12
|
declare type Loop = number | null;
|
|
10
13
|
declare type CodecOrUndefined = 'h264' | 'h265' | 'vp8' | 'vp9' | 'mp3' | 'aac' | 'wav' | 'prores' | 'h264-mkv' | 'gif' | undefined;
|
|
11
14
|
declare type Crf = number | undefined;
|
|
12
|
-
declare type FlatConfig =
|
|
15
|
+
declare type FlatConfig = ObjectConfig['Bundling'] & ObjectConfig['Log'] & ObjectConfig['Preview'] & ObjectConfig['Puppeteer'] & ObjectConfig['Output'] & ObjectConfig['Rendering'] & {
|
|
13
16
|
/**
|
|
14
17
|
* Set the audio codec to use for the output video.
|
|
15
18
|
* See the Encoding guide in the docs for defaults and available options.
|
|
16
19
|
*/
|
|
17
20
|
setAudioCodec: (codec: 'pcm-16' | 'aac' | 'mp3' | 'opus') => void;
|
|
18
21
|
};
|
|
19
|
-
declare
|
|
20
|
-
|
|
22
|
+
declare type ObjectConfig = {
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated New flat config format: You can now replace `Config.Preview.` with `Config.`
|
|
25
|
+
*/
|
|
26
|
+
readonly Preview: {
|
|
27
|
+
/**
|
|
28
|
+
* Change the maximum amount of tracks that are shown in the timeline.
|
|
29
|
+
* @param maxTracks The maximum amount of timeline tracks that you would like to show.
|
|
30
|
+
* @default 15
|
|
31
|
+
*/
|
|
32
|
+
readonly setMaxTimelineTracks: (maxTracks: number) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Enable Keyboard shortcuts in the Remotion Preview.
|
|
35
|
+
* @param enabled Boolean whether to enable the keyboard shortcuts
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Set number of shared audio tags. https://www.remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property
|
|
41
|
+
* @param numberOfAudioTags
|
|
42
|
+
* @default 0
|
|
43
|
+
*/
|
|
44
|
+
readonly setNumberOfSharedAudioTags: (numberOfAudioTags: number) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Enable Webpack polling instead of file system listeners for hot reloading in the preview.
|
|
47
|
+
* This is useful if you are using a remote directory or a virtual machine.
|
|
48
|
+
* @param interval
|
|
49
|
+
* @default null
|
|
50
|
+
*/
|
|
51
|
+
readonly setWebpackPollingInMilliseconds: (interval: number | null) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Whether Remotion should open a browser when starting the Preview.
|
|
54
|
+
* @param should
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
readonly setShouldOpenBrowser: (should: boolean) => void;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated New flat config format: You can now replace `Config.Bundling.` with `Config.`
|
|
61
|
+
*/
|
|
62
|
+
readonly Bundling: {
|
|
21
63
|
/**
|
|
22
64
|
* Specify the entry point so you don't have to specify it in the
|
|
23
65
|
* CLI command
|
|
24
66
|
*/
|
|
25
67
|
readonly setEntryPoint: (src: string) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Pass in a function which takes the current Webpack config
|
|
70
|
+
* and return a modified Webpack configuration.
|
|
71
|
+
* Docs: http://remotion.dev/docs/webpack
|
|
72
|
+
*/
|
|
73
|
+
readonly overrideWebpackConfig: (fn: WebpackOverrideFn) => void;
|
|
26
74
|
/**
|
|
27
75
|
* Whether Webpack bundles should be cached to make
|
|
28
76
|
* subsequent renders faster. Default: true
|
|
@@ -40,246 +88,204 @@ declare global {
|
|
|
40
88
|
* You can set an absolute path or a relative path that will be resolved from the closest package.json location.
|
|
41
89
|
*/
|
|
42
90
|
readonly setPublicDir: (publicDir: string | null) => void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
readonly setCrf: (newCrf: Crf) => void;
|
|
243
|
-
/**
|
|
244
|
-
* Set to true if don't want a video but an image sequence as the output.
|
|
245
|
-
*/
|
|
246
|
-
readonly setImageSequence: (newImageSequence: boolean) => void;
|
|
247
|
-
/**
|
|
248
|
-
* Overrides the height of a composition
|
|
249
|
-
*/
|
|
250
|
-
readonly overrideHeight: (newHeight: number) => void;
|
|
251
|
-
/**
|
|
252
|
-
* Overrides the width of a composition
|
|
253
|
-
*/
|
|
254
|
-
readonly overrideWidth: (newWidth: number) => void;
|
|
255
|
-
/**
|
|
256
|
-
* Set the ProRes profile.
|
|
257
|
-
* This method is only valid if the codec has been set to 'prores'.
|
|
258
|
-
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
259
|
-
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
260
|
-
*/
|
|
261
|
-
readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
|
|
262
|
-
/**
|
|
263
|
-
* Override the arguments that Remotion passes to FFMPEG.
|
|
264
|
-
* Consult https://remotion.dev/docs/renderer/render-media#ffmpegoverride before using this feature.
|
|
265
|
-
*/
|
|
266
|
-
readonly overrideFfmpegCommand: (command: (info: {
|
|
267
|
-
type: 'pre-stitcher' | 'stitcher';
|
|
268
|
-
args: string[];
|
|
269
|
-
}) => string[]) => void;
|
|
270
|
-
/**
|
|
271
|
-
* Set a target audio bitrate to be passed to FFMPEG.
|
|
272
|
-
*/
|
|
273
|
-
readonly setAudioBitrate: (bitrate: string | null) => void;
|
|
274
|
-
/**
|
|
275
|
-
* Set a target video bitrate to be passed to FFMPEG.
|
|
276
|
-
* Mutually exclusive with setCrf().
|
|
277
|
-
*/
|
|
278
|
-
readonly setVideoBitrate: (bitrate: string | null) => void;
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
export declare type ConfigType = RemotionConfigObject & FlatConfig;
|
|
283
|
-
export type { Concurrency };
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated New flat config format: You can now replace `Config.Log.` with `Config.`
|
|
94
|
+
*/
|
|
95
|
+
readonly Log: {
|
|
96
|
+
/**
|
|
97
|
+
* Set the log level.
|
|
98
|
+
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
|
|
99
|
+
* Default value: 'info'
|
|
100
|
+
*
|
|
101
|
+
* Set this to 'verbose' to get browser logs and other IO.
|
|
102
|
+
*/
|
|
103
|
+
readonly setLevel: (newLogLevel: 'verbose' | 'info' | 'warn' | 'error') => void;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated New flat config format: You can now replace `Config.Puppeteer.` with `Config.`
|
|
107
|
+
*/
|
|
108
|
+
readonly Puppeteer: {
|
|
109
|
+
/**
|
|
110
|
+
* Specify executable path for the browser to use.
|
|
111
|
+
* Default: null, which will make Remotion find or download a version of said browser.
|
|
112
|
+
*/
|
|
113
|
+
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
116
|
+
* Default: `30000`
|
|
117
|
+
*/
|
|
118
|
+
readonly setDelayRenderTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated Renamed to `setDelayRenderTimeoutInMilliseconds`.
|
|
121
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
122
|
+
* Default: `30000`
|
|
123
|
+
*/
|
|
124
|
+
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
125
|
+
/**
|
|
126
|
+
* Setting deciding whether to disable CORS and other Chrome security features.
|
|
127
|
+
* Default: false
|
|
128
|
+
*/
|
|
129
|
+
readonly setChromiumDisableWebSecurity: (should: boolean) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
|
|
132
|
+
* Default: false
|
|
133
|
+
*/
|
|
134
|
+
readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
|
|
135
|
+
/**
|
|
136
|
+
* If false, will open an actual browser during rendering to observe progress.
|
|
137
|
+
* Default: true
|
|
138
|
+
*/
|
|
139
|
+
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
140
|
+
/**
|
|
141
|
+
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
142
|
+
* Default: 'swangle' in Lambda, null elsewhere.
|
|
143
|
+
*/
|
|
144
|
+
readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader') => void;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated New flat config format: You can now replace `Config.Rendering.` with `Config.`
|
|
148
|
+
*/
|
|
149
|
+
readonly Rendering: {
|
|
150
|
+
/**
|
|
151
|
+
* Set a custom location for a .env file.
|
|
152
|
+
* Default: `.env`
|
|
153
|
+
*/
|
|
154
|
+
readonly setDotEnvLocation: (file: string) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Sets how many Puppeteer instances will work on rendering your video in parallel.
|
|
157
|
+
* Default: `null`, meaning half of the threads available on your CPU.
|
|
158
|
+
*/
|
|
159
|
+
readonly setConcurrency: (newConcurrency: Concurrency) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Set the JPEG quality for the frames.
|
|
162
|
+
* Must be between 0 and 100.
|
|
163
|
+
* Must be between 0 and 100.
|
|
164
|
+
* Default: 80
|
|
165
|
+
*/
|
|
166
|
+
readonly setQuality: (q: number | undefined) => void;
|
|
167
|
+
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
168
|
+
* PNG is slower, but supports transparency.
|
|
169
|
+
*/
|
|
170
|
+
readonly setImageFormat: (format: 'png' | 'jpeg' | 'none') => void;
|
|
171
|
+
/**
|
|
172
|
+
* Render only a subset of a video.
|
|
173
|
+
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
174
|
+
* Pass in a single number `20` to only render a single frame as an image.
|
|
175
|
+
* The frame count starts at 0.
|
|
176
|
+
*/
|
|
177
|
+
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
|
|
178
|
+
/**
|
|
179
|
+
* Specify local ffmpeg executable.
|
|
180
|
+
* Default: null, which will use ffmpeg available in PATH.
|
|
181
|
+
*/
|
|
182
|
+
readonly setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
183
|
+
/**
|
|
184
|
+
* Specify local ffprobe executable.
|
|
185
|
+
* Default: null, which will use ffprobe available in PATH.
|
|
186
|
+
*/
|
|
187
|
+
readonly setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
|
|
188
|
+
/**
|
|
189
|
+
* Scales the output dimensions by a factor.
|
|
190
|
+
* Default: 1.
|
|
191
|
+
*/
|
|
192
|
+
readonly setScale: (newScale: number) => void;
|
|
193
|
+
/**
|
|
194
|
+
* Specify which frames should be picked for rendering a GIF
|
|
195
|
+
* Default: 1, which means every frame
|
|
196
|
+
* https://remotion.dev/docs/render-as-gif
|
|
197
|
+
*/
|
|
198
|
+
readonly setEveryNthFrame: (frame: number) => void;
|
|
199
|
+
/**
|
|
200
|
+
* Specify the number of Loop a GIF should have.
|
|
201
|
+
* Default: null (means GIF will loop infinite)
|
|
202
|
+
*/
|
|
203
|
+
readonly setNumberOfGifLoops: (newLoop: Loop) => void;
|
|
204
|
+
/**
|
|
205
|
+
* Disable audio output.
|
|
206
|
+
* Default: false
|
|
207
|
+
*/
|
|
208
|
+
readonly setMuted: (muted: boolean) => void;
|
|
209
|
+
/**
|
|
210
|
+
* Don't render an audio track if it would be silent.
|
|
211
|
+
* Default: true
|
|
212
|
+
*/
|
|
213
|
+
readonly setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* @deprecated New flat config format: You can now replace `Config.Output.` with `Config.`
|
|
217
|
+
*/
|
|
218
|
+
readonly Output: {
|
|
219
|
+
/**
|
|
220
|
+
* Set the output file location string. Default: `out/{composition}.{codec}`
|
|
221
|
+
*/
|
|
222
|
+
readonly setOutputLocation: (newOutputLocation: string) => void;
|
|
223
|
+
/**
|
|
224
|
+
* If the video file already exists, should Remotion overwrite
|
|
225
|
+
* the output? Default: true
|
|
226
|
+
*/
|
|
227
|
+
readonly setOverwriteOutput: (newOverwrite: boolean) => void;
|
|
228
|
+
/**
|
|
229
|
+
* Sets the pixel format in FFMPEG.
|
|
230
|
+
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
|
|
231
|
+
* You can override this using the `--pixel-format` Cli flag.
|
|
232
|
+
*/
|
|
233
|
+
readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated Use setCodec() and setImageSequence() instead.
|
|
236
|
+
* Specify what kind of output you, either `mp4` or `png-sequence`.
|
|
237
|
+
*/
|
|
238
|
+
readonly setOutputFormat: (newLegacyFormat: 'mp4' | 'png-sequence') => void;
|
|
239
|
+
/**
|
|
240
|
+
* Specify the codec for stitching the frames into a video.
|
|
241
|
+
* Can be `h264` (default), `h265`, `vp8` or `vp9`
|
|
242
|
+
*/
|
|
243
|
+
readonly setCodec: (newCodec: CodecOrUndefined) => void;
|
|
244
|
+
/**
|
|
245
|
+
* Set the Constant Rate Factor to pass to FFMPEG.
|
|
246
|
+
* Lower values mean better quality, but be aware that the ranges of
|
|
247
|
+
* possible values greatly differs between codecs.
|
|
248
|
+
*/
|
|
249
|
+
readonly setCrf: (newCrf: Crf) => void;
|
|
250
|
+
/**
|
|
251
|
+
* Set to true if don't want a video but an image sequence as the output.
|
|
252
|
+
*/
|
|
253
|
+
readonly setImageSequence: (newImageSequence: boolean) => void;
|
|
254
|
+
/**
|
|
255
|
+
* Overrides the height of a composition
|
|
256
|
+
*/
|
|
257
|
+
readonly overrideHeight: (newHeight: number) => void;
|
|
258
|
+
/**
|
|
259
|
+
* Overrides the width of a composition
|
|
260
|
+
*/
|
|
261
|
+
readonly overrideWidth: (newWidth: number) => void;
|
|
262
|
+
/**
|
|
263
|
+
* Set the ProRes profile.
|
|
264
|
+
* This method is only valid if the codec has been set to 'prores'.
|
|
265
|
+
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
266
|
+
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
267
|
+
*/
|
|
268
|
+
readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
|
|
269
|
+
/**
|
|
270
|
+
* Override the arguments that Remotion passes to FFMPEG.
|
|
271
|
+
* Consult https://remotion.dev/docs/renderer/render-media#ffmpegoverride before using this feature.
|
|
272
|
+
*/
|
|
273
|
+
readonly overrideFfmpegCommand: (command: (info: {
|
|
274
|
+
type: 'pre-stitcher' | 'stitcher';
|
|
275
|
+
args: string[];
|
|
276
|
+
}) => string[]) => void;
|
|
277
|
+
/**
|
|
278
|
+
* Set a target audio bitrate to be passed to FFMPEG.
|
|
279
|
+
*/
|
|
280
|
+
readonly setAudioBitrate: (bitrate: string | null) => void;
|
|
281
|
+
/**
|
|
282
|
+
* Set a target video bitrate to be passed to FFMPEG.
|
|
283
|
+
* Mutually exclusive with setCrf().
|
|
284
|
+
*/
|
|
285
|
+
readonly setVideoBitrate: (bitrate: string | null) => void;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
export declare type ConfigType = ObjectConfig & FlatConfig;
|
|
289
|
+
export type { Concurrency, WebpackConfiguration, WebpackOverrideFn };
|
|
284
290
|
export declare const Config: ConfigType;
|
|
285
291
|
export declare const enableLegacyRemotionConfig: () => void;
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
1
|
+
export declare const VERSION = "3.3.54";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically generated on publish
|
|
2
|
-
export const VERSION = '3.3.
|
|
2
|
+
export const VERSION = '3.3.54';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type { ClipRegion } from './NativeLayers';
|
|
|
5
5
|
declare global {
|
|
6
6
|
interface Window {
|
|
7
7
|
ready: boolean;
|
|
8
|
-
remotion_cancelledError: string | undefined;
|
|
9
8
|
getStaticCompositions: () => TCompMetadata[];
|
|
10
9
|
setBundleMode: (bundleMode: BundleState) => void;
|
|
11
10
|
remotion_staticBase: string;
|
|
@@ -48,12 +47,11 @@ export declare type BundleState = {
|
|
|
48
47
|
};
|
|
49
48
|
export * from './AbsoluteFill';
|
|
50
49
|
export * from './audio';
|
|
51
|
-
export { cancelRender } from './cancel-render';
|
|
52
50
|
export * from './Composition';
|
|
53
51
|
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
|
|
54
52
|
export { Config, ConfigType } from './config';
|
|
55
53
|
export { getInputProps } from './config/input-props';
|
|
56
|
-
export
|
|
54
|
+
export * from './delay-render';
|
|
57
55
|
export * from './easing';
|
|
58
56
|
export * from './Folder';
|
|
59
57
|
export * from './freeze';
|
|
@@ -89,4 +87,3 @@ export declare const Experimental: {
|
|
|
89
87
|
Null: import("react").FC<{}>;
|
|
90
88
|
useIsPlayer: () => boolean;
|
|
91
89
|
};
|
|
92
|
-
export declare type WebpackOverrideFn = "The 'WebpackOverrideFn' has been moved to '@remotion/bundler'. Update your imports and install '@remotion/bundler' if necessary.";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Experimental = exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.random = exports.prefetch = exports.Loop = exports.interpolateColors = exports.getStaticFiles = exports.
|
|
17
|
+
exports.Experimental = exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.random = exports.prefetch = exports.Loop = exports.interpolateColors = exports.getStaticFiles = exports.getInputProps = exports.Config = void 0;
|
|
18
18
|
require("./asset-types");
|
|
19
19
|
const Clipper_1 = require("./Clipper");
|
|
20
20
|
const is_player_1 = require("./is-player");
|
|
@@ -23,16 +23,12 @@ const Null_1 = require("./Null");
|
|
|
23
23
|
(0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
|
|
24
24
|
__exportStar(require("./AbsoluteFill"), exports);
|
|
25
25
|
__exportStar(require("./audio"), exports);
|
|
26
|
-
var cancel_render_1 = require("./cancel-render");
|
|
27
|
-
Object.defineProperty(exports, "cancelRender", { enumerable: true, get: function () { return cancel_render_1.cancelRender; } });
|
|
28
26
|
__exportStar(require("./Composition"), exports);
|
|
29
27
|
var config_1 = require("./config");
|
|
30
28
|
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
31
29
|
var input_props_1 = require("./config/input-props");
|
|
32
30
|
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_1.getInputProps; } });
|
|
33
|
-
|
|
34
|
-
Object.defineProperty(exports, "continueRender", { enumerable: true, get: function () { return delay_render_1.continueRender; } });
|
|
35
|
-
Object.defineProperty(exports, "delayRender", { enumerable: true, get: function () { return delay_render_1.delayRender; } });
|
|
31
|
+
__exportStar(require("./delay-render"), exports);
|
|
36
32
|
__exportStar(require("./easing"), exports);
|
|
37
33
|
__exportStar(require("./Folder"), exports);
|
|
38
34
|
__exportStar(require("./freeze"), exports);
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Configuration } from 'webpack';
|
|
1
2
|
import type { CompProps } from './Composition';
|
|
2
3
|
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
3
4
|
import * as CSSUtils from './default-css';
|
|
@@ -94,4 +95,6 @@ export declare const Internals: {
|
|
|
94
95
|
useIsPlayer: () => boolean;
|
|
95
96
|
useRemotionEnvironment: () => RemotionEnvironment;
|
|
96
97
|
};
|
|
97
|
-
|
|
98
|
+
declare type WebpackConfiguration = Configuration;
|
|
99
|
+
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
100
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|