remotion 3.3.52 → 3.3.53
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/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/AbsoluteFill.d.ts +0 -6
- package/dist/AbsoluteFill.js +0 -28
- package/dist/CanUseRemotionHooks.d.ts +0 -5
- package/dist/CanUseRemotionHooks.js +0 -10
- package/dist/Clipper.d.ts +0 -7
- package/dist/Clipper.js +0 -24
- package/dist/Composition.d.ts +0 -23
- package/dist/Composition.js +0 -113
- package/dist/CompositionManager.d.ts +0 -82
- package/dist/CompositionManager.js +0 -164
- package/dist/Folder.d.ts +0 -15
- package/dist/Folder.js +0 -33
- package/dist/IFrame.d.ts +0 -2
- package/dist/IFrame.js +0 -24
- package/dist/Img.d.ts +0 -2
- package/dist/Img.js +0 -52
- package/dist/NativeLayers.d.ts +0 -13
- package/dist/NativeLayers.js +0 -29
- package/dist/Null.d.ts +0 -2
- package/dist/Null.js +0 -25
- package/dist/RemotionRoot.d.ts +0 -5
- package/dist/RemotionRoot.js +0 -73
- package/dist/Sequence.d.ts +0 -29
- package/dist/Sequence.js +0 -131
- package/dist/Still.d.ts +0 -2
- package/dist/Still.js +0 -9
- package/dist/absolute-src.d.ts +0 -1
- package/dist/absolute-src.js +0 -7
- package/dist/asset-types.d.ts +0 -50
- package/dist/asset-types.js +0 -1
- package/dist/audio/Audio.d.ts +0 -8
- package/dist/audio/Audio.js +0 -52
- package/dist/audio/AudioForDevelopment.d.ts +0 -11
- package/dist/audio/AudioForDevelopment.js +0 -94
- package/dist/audio/AudioForRendering.d.ts +0 -10
- package/dist/audio/AudioForRendering.js +0 -111
- package/dist/audio/index.d.ts +0 -2
- package/dist/audio/index.js +0 -18
- package/dist/audio/props.d.ts +0 -12
- package/dist/audio/props.js +0 -2
- package/dist/audio/shared-audio-tags.d.ts +0 -37
- package/dist/audio/shared-audio-tags.js +0 -222
- package/dist/audio/use-audio-frame.d.ts +0 -6
- package/dist/audio/use-audio-frame.js +0 -23
- package/dist/bezier.d.ts +0 -1
- package/dist/bezier.js +0 -114
- package/dist/cancel-render.d.ts +0 -1
- package/dist/cancel-render.js +0 -43
- package/dist/config/input-props.d.ts +0 -1
- package/dist/config/input-props.js +0 -31
- package/dist/config.d.ts +0 -285
- package/dist/config.js +0 -21
- package/dist/default-css.d.ts +0 -3
- package/dist/default-css.js +0 -49
- package/dist/delay-render.d.ts +0 -14
- package/dist/delay-render.js +0 -77
- package/dist/easing.d.ts +0 -19
- package/dist/easing.js +0 -77
- package/dist/freeze.d.ts +0 -7
- package/dist/freeze.js +0 -34
- package/dist/get-asset-file-name.d.ts +0 -1
- package/dist/get-asset-file-name.js +0 -14
- package/dist/get-environment.d.ts +0 -3
- package/dist/get-environment.js +0 -34
- package/dist/get-preview-dom-element.d.ts +0 -1
- package/dist/get-preview-dom-element.js +0 -7
- package/dist/get-static-files.d.ts +0 -17
- package/dist/get-static-files.js +0 -31
- package/dist/get-timeline-clip-name.d.ts +0 -1
- package/dist/get-timeline-clip-name.js +0 -25
- package/dist/index.d.ts +0 -92
- package/dist/index.js +0 -73
- package/dist/internals.d.ts +0 -97
- package/dist/internals.js +0 -99
- package/dist/interpolate-colors.d.ts +0 -5
- package/dist/interpolate-colors.js +0 -401
- package/dist/interpolate.d.ts +0 -18
- package/dist/interpolate.js +0 -123
- package/dist/is-approximately-the-same.d.ts +0 -1
- package/dist/is-approximately-the-same.js +0 -8
- package/dist/is-player.d.ts +0 -3
- package/dist/is-player.js +0 -14
- package/dist/loading-indicator.d.ts +0 -2
- package/dist/loading-indicator.js +0 -35
- package/dist/loop/index.d.ts +0 -9
- package/dist/loop/index.js +0 -29
- package/dist/multiple-versions-warning.d.ts +0 -1
- package/dist/multiple-versions-warning.js +0 -32
- package/dist/nonce.d.ts +0 -7
- package/dist/nonce.js +0 -17
- package/dist/play-and-handle-not-allowed-error.d.ts +0 -2
- package/dist/play-and-handle-not-allowed-error.js +0 -44
- package/dist/portal-node.d.ts +0 -1
- package/dist/portal-node.js +0 -23
- package/dist/prefetch-state.d.ts +0 -8
- package/dist/prefetch-state.js +0 -27
- package/dist/prefetch.d.ts +0 -9
- package/dist/prefetch.js +0 -108
- package/dist/random.d.ts +0 -7
- package/dist/random.js +0 -41
- package/dist/register-root.d.ts +0 -4
- package/dist/register-root.js +0 -33
- package/dist/series/flatten-children.d.ts +0 -2
- package/dist/series/flatten-children.js +0 -19
- package/dist/series/index.d.ts +0 -13
- package/dist/series/index.js +0 -60
- package/dist/setup-env-variables.d.ts +0 -2
- package/dist/setup-env-variables.js +0 -36
- package/dist/spring/index.d.ts +0 -27
- package/dist/spring/index.js +0 -51
- package/dist/spring/measure-spring.d.ts +0 -8
- package/dist/spring/measure-spring.js +0 -64
- package/dist/spring/spring-utils.d.ts +0 -21
- package/dist/spring/spring-utils.js +0 -103
- package/dist/static-file.d.ts +0 -5
- package/dist/static-file.js +0 -33
- package/dist/timeline-position-state.d.ts +0 -29
- package/dist/timeline-position-state.js +0 -41
- package/dist/truthy.d.ts +0 -3
- package/dist/truthy.js +0 -7
- package/dist/use-current-frame.d.ts +0 -6
- package/dist/use-current-frame.js +0 -28
- package/dist/use-lazy-component.d.ts +0 -7
- package/dist/use-lazy-component.js +0 -49
- package/dist/use-media-in-timeline.d.ts +0 -10
- package/dist/use-media-in-timeline.js +0 -129
- package/dist/use-media-playback.d.ts +0 -10
- package/dist/use-media-playback.js +0 -77
- package/dist/use-media-tag-volume.d.ts +0 -2
- package/dist/use-media-tag-volume.js +0 -31
- package/dist/use-sync-volume-with-media-tag.d.ts +0 -10
- package/dist/use-sync-volume-with-media-tag.js +0 -21
- package/dist/use-unsafe-video-config.d.ts +0 -2
- package/dist/use-unsafe-video-config.js +0 -27
- package/dist/use-video-config.d.ts +0 -7
- package/dist/use-video-config.js +0 -29
- package/dist/use-video.d.ts +0 -12
- package/dist/use-video.js +0 -28
- package/dist/validate-media-props.d.ts +0 -4
- package/dist/validate-media-props.js +0 -24
- package/dist/validate-start-from-props.d.ts +0 -1
- package/dist/validate-start-from-props.js +0 -31
- package/dist/validation/validate-composition-id.d.ts +0 -3
- package/dist/validation/validate-composition-id.js +0 -13
- package/dist/validation/validate-dimensions.d.ts +0 -1
- package/dist/validation/validate-dimensions.js +0 -21
- package/dist/validation/validate-duration-in-frames.d.ts +0 -1
- package/dist/validation/validate-duration-in-frames.js +0 -15
- package/dist/validation/validate-folder-name.d.ts +0 -3
- package/dist/validation/validate-folder-name.js +0 -19
- package/dist/validation/validate-fps.d.ts +0 -1
- package/dist/validation/validate-fps.js +0 -21
- package/dist/validation/validate-offthreadvideo-image-format.d.ts +0 -1
- package/dist/validation/validate-offthreadvideo-image-format.js +0 -15
- package/dist/validation/validation-spring-duration.d.ts +0 -1
- package/dist/validation/validation-spring-duration.js +0 -21
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -5
- package/dist/video/OffthreadVideo.d.ts +0 -3
- package/dist/video/OffthreadVideo.js +0 -33
- package/dist/video/OffthreadVideoForRendering.d.ts +0 -3
- package/dist/video/OffthreadVideoForRendering.js +0 -104
- package/dist/video/Video.d.ts +0 -8
- package/dist/video/Video.js +0 -50
- package/dist/video/VideoForDevelopment.d.ts +0 -11
- package/dist/video/VideoForDevelopment.js +0 -113
- package/dist/video/VideoForRendering.d.ts +0 -10
- package/dist/video/VideoForRendering.js +0 -203
- package/dist/video/duration-state.d.ts +0 -17
- package/dist/video/duration-state.js +0 -34
- package/dist/video/get-current-time.d.ts +0 -13
- package/dist/video/get-current-time.js +0 -31
- package/dist/video/index.d.ts +0 -3
- package/dist/video/index.js +0 -7
- package/dist/video/props.d.ts +0 -25
- package/dist/video/props.js +0 -2
- package/dist/video/video-fragment.d.ts +0 -12
- package/dist/video/video-fragment.js +0 -60
- package/dist/video-config.d.ts +0 -8
- package/dist/video-config.js +0 -2
- package/dist/volume-position-state.d.ts +0 -19
- package/dist/volume-position-state.js +0 -32
- package/dist/volume-prop.d.ts +0 -7
- package/dist/volume-prop.js +0 -24
- package/dist/warn-about-non-seekable-media.d.ts +0 -1
- package/dist/warn-about-non-seekable-media.js +0 -34
- package/dist/wrap-remotion-context.d.ts +0 -18
- package/dist/wrap-remotion-context.js +0 -73
package/dist/config.d.ts
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The configuration has moved to @remotion/cli.
|
|
3
|
-
* For the moment the type definitions are going to stay here
|
|
4
|
-
*/
|
|
5
|
-
declare type Concurrency = number | null;
|
|
6
|
-
declare type BrowserExecutable = string | null;
|
|
7
|
-
declare type FrameRange = number | [number, number];
|
|
8
|
-
declare type FfmpegExecutable = string | null;
|
|
9
|
-
declare type Loop = number | null;
|
|
10
|
-
declare type CodecOrUndefined = 'h264' | 'h265' | 'vp8' | 'vp9' | 'mp3' | 'aac' | 'wav' | 'prores' | 'h264-mkv' | 'gif' | undefined;
|
|
11
|
-
declare type Crf = number | undefined;
|
|
12
|
-
declare type FlatConfig = RemotionConfigObject['Bundling'] & RemotionConfigObject['Log'] & RemotionConfigObject['Preview'] & RemotionConfigObject['Puppeteer'] & RemotionConfigObject['Output'] & RemotionConfigObject['Rendering'] & {
|
|
13
|
-
/**
|
|
14
|
-
* Set the audio codec to use for the output video.
|
|
15
|
-
* See the Encoding guide in the docs for defaults and available options.
|
|
16
|
-
*/
|
|
17
|
-
setAudioCodec: (codec: 'pcm-16' | 'aac' | 'mp3' | 'opus') => void;
|
|
18
|
-
};
|
|
19
|
-
declare global {
|
|
20
|
-
interface RemotionBundlingOptions {
|
|
21
|
-
/**
|
|
22
|
-
* Specify the entry point so you don't have to specify it in the
|
|
23
|
-
* CLI command
|
|
24
|
-
*/
|
|
25
|
-
readonly setEntryPoint: (src: string) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Whether Webpack bundles should be cached to make
|
|
28
|
-
* subsequent renders faster. Default: true
|
|
29
|
-
*/
|
|
30
|
-
readonly setCachingEnabled: (flag: boolean) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Define on which port Remotion should start it's HTTP servers during preview and rendering.
|
|
33
|
-
* By default, Remotion will try to find a free port.
|
|
34
|
-
* If you specify a port, but it's not available, Remotion will throw an error.
|
|
35
|
-
*/
|
|
36
|
-
readonly setPort: (port: number | undefined) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Define the location of the public/ directory.
|
|
39
|
-
* By default it is a folder named "public" inside the current working directory.
|
|
40
|
-
* You can set an absolute path or a relative path that will be resolved from the closest package.json location.
|
|
41
|
-
*/
|
|
42
|
-
readonly setPublicDir: (publicDir: string | null) => void;
|
|
43
|
-
}
|
|
44
|
-
interface RemotionConfigObject {
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated New flat config format: You can now replace `Config.Preview.` with `Config.`
|
|
47
|
-
*/
|
|
48
|
-
readonly Preview: {
|
|
49
|
-
/**
|
|
50
|
-
* Change the maximum amount of tracks that are shown in the timeline.
|
|
51
|
-
* @param maxTracks The maximum amount of timeline tracks that you would like to show.
|
|
52
|
-
* @default 15
|
|
53
|
-
*/
|
|
54
|
-
readonly setMaxTimelineTracks: (maxTracks: number) => void;
|
|
55
|
-
/**
|
|
56
|
-
* Enable Keyboard shortcuts in the Remotion Preview.
|
|
57
|
-
* @param enabled Boolean whether to enable the keyboard shortcuts
|
|
58
|
-
* @default true
|
|
59
|
-
*/
|
|
60
|
-
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
|
|
61
|
-
/**
|
|
62
|
-
* Set number of shared audio tags. https://www.remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property
|
|
63
|
-
* @param numberOfAudioTags
|
|
64
|
-
* @default 0
|
|
65
|
-
*/
|
|
66
|
-
readonly setNumberOfSharedAudioTags: (numberOfAudioTags: number) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Enable Webpack polling instead of file system listeners for hot reloading in the preview.
|
|
69
|
-
* This is useful if you are using a remote directory or a virtual machine.
|
|
70
|
-
* @param interval
|
|
71
|
-
* @default null
|
|
72
|
-
*/
|
|
73
|
-
readonly setWebpackPollingInMilliseconds: (interval: number | null) => void;
|
|
74
|
-
/**
|
|
75
|
-
* Whether Remotion should open a browser when starting the Preview.
|
|
76
|
-
* @param should
|
|
77
|
-
* @default true
|
|
78
|
-
*/
|
|
79
|
-
readonly setShouldOpenBrowser: (should: boolean) => void;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated New flat config format: You can now replace `Config.Bundling.` with `Config.`
|
|
83
|
-
*/
|
|
84
|
-
readonly Bundling: RemotionBundlingOptions;
|
|
85
|
-
/**
|
|
86
|
-
* @deprecated New flat config format: You can now replace `Config.Log.` with `Config.`
|
|
87
|
-
*/
|
|
88
|
-
readonly Log: {
|
|
89
|
-
/**
|
|
90
|
-
* Set the log level.
|
|
91
|
-
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
|
|
92
|
-
* Default value: 'info'
|
|
93
|
-
*
|
|
94
|
-
* Set this to 'verbose' to get browser logs and other IO.
|
|
95
|
-
*/
|
|
96
|
-
readonly setLevel: (newLogLevel: 'verbose' | 'info' | 'warn' | 'error') => void;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* @deprecated New flat config format: You can now replace `Config.Puppeteer.` with `Config.`
|
|
100
|
-
*/
|
|
101
|
-
readonly Puppeteer: {
|
|
102
|
-
/**
|
|
103
|
-
* Specify executable path for the browser to use.
|
|
104
|
-
* Default: null, which will make Remotion find or download a version of said browser.
|
|
105
|
-
*/
|
|
106
|
-
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
|
|
107
|
-
/**
|
|
108
|
-
* Set how many milliseconds a frame may take to render before it times out.
|
|
109
|
-
* Default: `30000`
|
|
110
|
-
*/
|
|
111
|
-
readonly setDelayRenderTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated Renamed to `setDelayRenderTimeoutInMilliseconds`.
|
|
114
|
-
* Set how many milliseconds a frame may take to render before it times out.
|
|
115
|
-
* Default: `30000`
|
|
116
|
-
*/
|
|
117
|
-
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
118
|
-
/**
|
|
119
|
-
* Setting deciding whether to disable CORS and other Chrome security features.
|
|
120
|
-
* Default: false
|
|
121
|
-
*/
|
|
122
|
-
readonly setChromiumDisableWebSecurity: (should: boolean) => void;
|
|
123
|
-
/**
|
|
124
|
-
* Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
|
|
125
|
-
* Default: false
|
|
126
|
-
*/
|
|
127
|
-
readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
|
|
128
|
-
/**
|
|
129
|
-
* If false, will open an actual browser during rendering to observe progress.
|
|
130
|
-
* Default: true
|
|
131
|
-
*/
|
|
132
|
-
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
133
|
-
/**
|
|
134
|
-
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
135
|
-
* Default: 'swangle' in Lambda, null elsewhere.
|
|
136
|
-
*/
|
|
137
|
-
readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader') => void;
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* @deprecated New flat config format: You can now replace `Config.Rendering.` with `Config.`
|
|
141
|
-
*/
|
|
142
|
-
readonly Rendering: {
|
|
143
|
-
/**
|
|
144
|
-
* Set a custom location for a .env file.
|
|
145
|
-
* Default: `.env`
|
|
146
|
-
*/
|
|
147
|
-
readonly setDotEnvLocation: (file: string) => void;
|
|
148
|
-
/**
|
|
149
|
-
* Sets how many Puppeteer instances will work on rendering your video in parallel.
|
|
150
|
-
* Default: `null`, meaning half of the threads available on your CPU.
|
|
151
|
-
*/
|
|
152
|
-
readonly setConcurrency: (newConcurrency: Concurrency) => void;
|
|
153
|
-
/**
|
|
154
|
-
* Set the JPEG quality for the frames.
|
|
155
|
-
* Must be between 0 and 100.
|
|
156
|
-
* Must be between 0 and 100.
|
|
157
|
-
* Default: 80
|
|
158
|
-
*/
|
|
159
|
-
readonly setQuality: (q: number | undefined) => void;
|
|
160
|
-
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
161
|
-
* PNG is slower, but supports transparency.
|
|
162
|
-
*/
|
|
163
|
-
readonly setImageFormat: (format: 'png' | 'jpeg' | 'none') => void;
|
|
164
|
-
/**
|
|
165
|
-
* Render only a subset of a video.
|
|
166
|
-
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
167
|
-
* Pass in a single number `20` to only render a single frame as an image.
|
|
168
|
-
* The frame count starts at 0.
|
|
169
|
-
*/
|
|
170
|
-
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
|
|
171
|
-
/**
|
|
172
|
-
* Specify local ffmpeg executable.
|
|
173
|
-
* Default: null, which will use ffmpeg available in PATH.
|
|
174
|
-
*/
|
|
175
|
-
readonly setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
176
|
-
/**
|
|
177
|
-
* Specify local ffprobe executable.
|
|
178
|
-
* Default: null, which will use ffprobe available in PATH.
|
|
179
|
-
*/
|
|
180
|
-
readonly setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
|
|
181
|
-
/**
|
|
182
|
-
* Scales the output dimensions by a factor.
|
|
183
|
-
* Default: 1.
|
|
184
|
-
*/
|
|
185
|
-
readonly setScale: (newScale: number) => void;
|
|
186
|
-
/**
|
|
187
|
-
* Specify which frames should be picked for rendering a GIF
|
|
188
|
-
* Default: 1, which means every frame
|
|
189
|
-
* https://remotion.dev/docs/render-as-gif
|
|
190
|
-
*/
|
|
191
|
-
readonly setEveryNthFrame: (frame: number) => void;
|
|
192
|
-
/**
|
|
193
|
-
* Specify the number of Loop a GIF should have.
|
|
194
|
-
* Default: null (means GIF will loop infinite)
|
|
195
|
-
*/
|
|
196
|
-
readonly setNumberOfGifLoops: (newLoop: Loop) => void;
|
|
197
|
-
/**
|
|
198
|
-
* Disable audio output.
|
|
199
|
-
* Default: false
|
|
200
|
-
*/
|
|
201
|
-
readonly setMuted: (muted: boolean) => void;
|
|
202
|
-
/**
|
|
203
|
-
* Don't render an audio track if it would be silent.
|
|
204
|
-
* Default: true
|
|
205
|
-
*/
|
|
206
|
-
readonly setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* @deprecated New flat config format: You can now replace `Config.Output.` with `Config.`
|
|
210
|
-
*/
|
|
211
|
-
readonly Output: {
|
|
212
|
-
/**
|
|
213
|
-
* Set the output file location string. Default: `out/{composition}.{codec}`
|
|
214
|
-
*/
|
|
215
|
-
readonly setOutputLocation: (newOutputLocation: string) => void;
|
|
216
|
-
/**
|
|
217
|
-
* If the video file already exists, should Remotion overwrite
|
|
218
|
-
* the output? Default: true
|
|
219
|
-
*/
|
|
220
|
-
readonly setOverwriteOutput: (newOverwrite: boolean) => void;
|
|
221
|
-
/**
|
|
222
|
-
* Sets the pixel format in FFMPEG.
|
|
223
|
-
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
|
|
224
|
-
* You can override this using the `--pixel-format` Cli flag.
|
|
225
|
-
*/
|
|
226
|
-
readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated Use setCodec() and setImageSequence() instead.
|
|
229
|
-
* Specify what kind of output you, either `mp4` or `png-sequence`.
|
|
230
|
-
*/
|
|
231
|
-
readonly setOutputFormat: (newLegacyFormat: 'mp4' | 'png-sequence') => void;
|
|
232
|
-
/**
|
|
233
|
-
* Specify the codec for stitching the frames into a video.
|
|
234
|
-
* Can be `h264` (default), `h265`, `vp8` or `vp9`
|
|
235
|
-
*/
|
|
236
|
-
readonly setCodec: (newCodec: CodecOrUndefined) => void;
|
|
237
|
-
/**
|
|
238
|
-
* Set the Constant Rate Factor to pass to FFMPEG.
|
|
239
|
-
* Lower values mean better quality, but be aware that the ranges of
|
|
240
|
-
* possible values greatly differs between codecs.
|
|
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 };
|
|
284
|
-
export declare const Config: ConfigType;
|
|
285
|
-
export declare const enableLegacyRemotionConfig: () => void;
|
package/dist/config.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* The configuration has moved to @remotion/cli.
|
|
4
|
-
* For the moment the type definitions are going to stay here
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.enableLegacyRemotionConfig = exports.Config = void 0;
|
|
8
|
-
const conf = {};
|
|
9
|
-
let enabled = false;
|
|
10
|
-
exports.Config = new Proxy(conf, {
|
|
11
|
-
get(target, prop, receiver) {
|
|
12
|
-
if (!enabled) {
|
|
13
|
-
throw new Error('To use the Remotion config file, you need to have @remotion/cli installed.\n- Make sure that all versions of Remotion are the same.\n- Make sure that @remotion/cli is installed.\n- Make sure Config is imported from "@remotion/cli", not "remotion".');
|
|
14
|
-
}
|
|
15
|
-
return Reflect.get(target, prop, receiver);
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
const enableLegacyRemotionConfig = () => {
|
|
19
|
-
enabled = true;
|
|
20
|
-
};
|
|
21
|
-
exports.enableLegacyRemotionConfig = enableLegacyRemotionConfig;
|
package/dist/default-css.d.ts
DELETED
package/dist/default-css.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeDefaultCSS = exports.OFFTHREAD_VIDEO_CLASS_NAME = exports.injectCSS = void 0;
|
|
4
|
-
const injected = {};
|
|
5
|
-
const injectCSS = (css) => {
|
|
6
|
-
// Skip in node
|
|
7
|
-
if (typeof document === 'undefined') {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (injected[css]) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
const head = document.head || document.getElementsByTagName('head')[0];
|
|
14
|
-
const style = document.createElement('style');
|
|
15
|
-
style.appendChild(document.createTextNode(css));
|
|
16
|
-
head.prepend(style);
|
|
17
|
-
injected[css] = true;
|
|
18
|
-
};
|
|
19
|
-
exports.injectCSS = injectCSS;
|
|
20
|
-
exports.OFFTHREAD_VIDEO_CLASS_NAME = '__remotion_offthreadvideo';
|
|
21
|
-
const makeDefaultCSS = (scope, backgroundColor) => {
|
|
22
|
-
if (!scope) {
|
|
23
|
-
return `
|
|
24
|
-
* {
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
}
|
|
27
|
-
body {
|
|
28
|
-
margin: 0;
|
|
29
|
-
background-color: ${backgroundColor};
|
|
30
|
-
}
|
|
31
|
-
.${exports.OFFTHREAD_VIDEO_CLASS_NAME} {
|
|
32
|
-
object-fit: contain;
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
return `
|
|
37
|
-
${scope} * {
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
}
|
|
40
|
-
${scope} *:-webkit-full-screen {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
}
|
|
44
|
-
${scope} .${exports.OFFTHREAD_VIDEO_CLASS_NAME} {
|
|
45
|
-
object-fit: contain;
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
};
|
|
49
|
-
exports.makeDefaultCSS = makeDefaultCSS;
|
package/dist/delay-render.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
2
|
-
/**
|
|
3
|
-
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
4
|
-
* @param label _optional_ A label to identify the call in case it does time out.
|
|
5
|
-
* @returns {number} An identifier to be passed to continueRender().
|
|
6
|
-
* @link https://www.remotion.dev/docs/delay-render
|
|
7
|
-
*/
|
|
8
|
-
export declare const delayRender: (label?: string) => number;
|
|
9
|
-
/**
|
|
10
|
-
* Unblock a render that has been blocked by delayRender()
|
|
11
|
-
* @param handle The return value of delayRender().
|
|
12
|
-
* @link https://www.remotion.dev/docs/continue-render
|
|
13
|
-
*/
|
|
14
|
-
export declare const continueRender: (handle: number) => void;
|
package/dist/delay-render.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.continueRender = exports.delayRender = exports.DELAY_RENDER_CALLSTACK_TOKEN = void 0;
|
|
4
|
-
const get_environment_1 = require("./get-environment");
|
|
5
|
-
const truthy_1 = require("./truthy");
|
|
6
|
-
if (typeof window !== 'undefined') {
|
|
7
|
-
window.ready = false;
|
|
8
|
-
}
|
|
9
|
-
let handles = [];
|
|
10
|
-
const timeouts = {};
|
|
11
|
-
exports.DELAY_RENDER_CALLSTACK_TOKEN = 'The delayRender was called:';
|
|
12
|
-
const defaultTimeout = 30000;
|
|
13
|
-
/**
|
|
14
|
-
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
15
|
-
* @param label _optional_ A label to identify the call in case it does time out.
|
|
16
|
-
* @returns {number} An identifier to be passed to continueRender().
|
|
17
|
-
* @link https://www.remotion.dev/docs/delay-render
|
|
18
|
-
*/
|
|
19
|
-
const delayRender = (label) => {
|
|
20
|
-
var _a, _b, _c;
|
|
21
|
-
if (typeof label !== 'string' && typeof label !== 'undefined') {
|
|
22
|
-
throw new Error('The label parameter of delayRender() must be a string or undefined, got: ' +
|
|
23
|
-
JSON.stringify(label));
|
|
24
|
-
}
|
|
25
|
-
const handle = Math.random();
|
|
26
|
-
handles.push(handle);
|
|
27
|
-
const called = (_b = (_a = Error().stack) === null || _a === void 0 ? void 0 : _a.replace(/^Error/g, '')) !== null && _b !== void 0 ? _b : '';
|
|
28
|
-
if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
|
|
29
|
-
const timeoutToUse = typeof window === 'undefined'
|
|
30
|
-
? defaultTimeout
|
|
31
|
-
: ((_c = window.remotion_puppeteerTimeout) !== null && _c !== void 0 ? _c : defaultTimeout) - 2000;
|
|
32
|
-
timeouts[handle] = setTimeout(() => {
|
|
33
|
-
const message = [
|
|
34
|
-
`A delayRender()`,
|
|
35
|
-
label ? `"${label}"` : null,
|
|
36
|
-
`was called but not cleared after ${timeoutToUse}ms. See https://remotion.dev/docs/timeout for help.`,
|
|
37
|
-
exports.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
38
|
-
called,
|
|
39
|
-
]
|
|
40
|
-
.filter(truthy_1.truthy)
|
|
41
|
-
.join(' ');
|
|
42
|
-
throw new Error(message);
|
|
43
|
-
}, timeoutToUse);
|
|
44
|
-
}
|
|
45
|
-
if (typeof window !== 'undefined') {
|
|
46
|
-
window.ready = false;
|
|
47
|
-
}
|
|
48
|
-
return handle;
|
|
49
|
-
};
|
|
50
|
-
exports.delayRender = delayRender;
|
|
51
|
-
/**
|
|
52
|
-
* Unblock a render that has been blocked by delayRender()
|
|
53
|
-
* @param handle The return value of delayRender().
|
|
54
|
-
* @link https://www.remotion.dev/docs/continue-render
|
|
55
|
-
*/
|
|
56
|
-
const continueRender = (handle) => {
|
|
57
|
-
if (typeof handle === 'undefined') {
|
|
58
|
-
throw new TypeError('The continueRender() method must be called with a parameter that is the return value of delayRender(). No value was passed.');
|
|
59
|
-
}
|
|
60
|
-
if (typeof handle !== 'number') {
|
|
61
|
-
throw new TypeError('The parameter passed into continueRender() must be the return value of delayRender() which is a number. Got: ' +
|
|
62
|
-
JSON.stringify(handle));
|
|
63
|
-
}
|
|
64
|
-
handles = handles.filter((h) => {
|
|
65
|
-
if (h === handle) {
|
|
66
|
-
if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
|
|
67
|
-
clearTimeout(timeouts[handle]);
|
|
68
|
-
}
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
return true;
|
|
72
|
-
});
|
|
73
|
-
if (handles.length === 0 && typeof window !== 'undefined') {
|
|
74
|
-
window.ready = true;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
exports.continueRender = continueRender;
|
package/dist/easing.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare class Easing {
|
|
2
|
-
static step0(n: number): number;
|
|
3
|
-
static step1(n: number): number;
|
|
4
|
-
static linear(t: number): number;
|
|
5
|
-
static ease(t: number): number;
|
|
6
|
-
static quad(t: number): number;
|
|
7
|
-
static cubic(t: number): number;
|
|
8
|
-
static poly(n: number): (t: number) => number;
|
|
9
|
-
static sin(t: number): number;
|
|
10
|
-
static circle(t: number): number;
|
|
11
|
-
static exp(t: number): number;
|
|
12
|
-
static elastic(bounciness?: number): (t: number) => number;
|
|
13
|
-
static back(s?: number): (t: number) => number;
|
|
14
|
-
static bounce(t: number): number;
|
|
15
|
-
static bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
|
|
16
|
-
static in(easing: (t: number) => number): (t: number) => number;
|
|
17
|
-
static out(easing: (t: number) => number): (t: number) => number;
|
|
18
|
-
static inOut(easing: (t: number) => number): (t: number) => number;
|
|
19
|
-
}
|
package/dist/easing.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Taken from https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/Animated/src/Easing.js
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Easing = void 0;
|
|
5
|
-
const bezier_1 = require("./bezier");
|
|
6
|
-
class Easing {
|
|
7
|
-
static step0(n) {
|
|
8
|
-
return n > 0 ? 1 : 0;
|
|
9
|
-
}
|
|
10
|
-
static step1(n) {
|
|
11
|
-
return n >= 1 ? 1 : 0;
|
|
12
|
-
}
|
|
13
|
-
static linear(t) {
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
static ease(t) {
|
|
17
|
-
return Easing.bezier(0.42, 0, 1, 1)(t);
|
|
18
|
-
}
|
|
19
|
-
static quad(t) {
|
|
20
|
-
return t * t;
|
|
21
|
-
}
|
|
22
|
-
static cubic(t) {
|
|
23
|
-
return t * t * t;
|
|
24
|
-
}
|
|
25
|
-
static poly(n) {
|
|
26
|
-
return (t) => t ** n;
|
|
27
|
-
}
|
|
28
|
-
static sin(t) {
|
|
29
|
-
return 1 - Math.cos((t * Math.PI) / 2);
|
|
30
|
-
}
|
|
31
|
-
static circle(t) {
|
|
32
|
-
return 1 - Math.sqrt(1 - t * t);
|
|
33
|
-
}
|
|
34
|
-
static exp(t) {
|
|
35
|
-
return 2 ** (10 * (t - 1));
|
|
36
|
-
}
|
|
37
|
-
static elastic(bounciness = 1) {
|
|
38
|
-
const p = bounciness * Math.PI;
|
|
39
|
-
return (t) => 1 - Math.cos((t * Math.PI) / 2) ** 3 * Math.cos(t * p);
|
|
40
|
-
}
|
|
41
|
-
static back(s = 1.70158) {
|
|
42
|
-
return (t) => t * t * ((s + 1) * t - s);
|
|
43
|
-
}
|
|
44
|
-
static bounce(t) {
|
|
45
|
-
if (t < 1 / 2.75) {
|
|
46
|
-
return 7.5625 * t * t;
|
|
47
|
-
}
|
|
48
|
-
if (t < 2 / 2.75) {
|
|
49
|
-
const t2_ = t - 1.5 / 2.75;
|
|
50
|
-
return 7.5625 * t2_ * t2_ + 0.75;
|
|
51
|
-
}
|
|
52
|
-
if (t < 2.5 / 2.75) {
|
|
53
|
-
const t2_ = t - 2.25 / 2.75;
|
|
54
|
-
return 7.5625 * t2_ * t2_ + 0.9375;
|
|
55
|
-
}
|
|
56
|
-
const t2 = t - 2.625 / 2.75;
|
|
57
|
-
return 7.5625 * t2 * t2 + 0.984375;
|
|
58
|
-
}
|
|
59
|
-
static bezier(x1, y1, x2, y2) {
|
|
60
|
-
return (0, bezier_1.bezier)(x1, y1, x2, y2);
|
|
61
|
-
}
|
|
62
|
-
static in(easing) {
|
|
63
|
-
return easing;
|
|
64
|
-
}
|
|
65
|
-
static out(easing) {
|
|
66
|
-
return (t) => 1 - easing(1 - t);
|
|
67
|
-
}
|
|
68
|
-
static inOut(easing) {
|
|
69
|
-
return (t) => {
|
|
70
|
-
if (t < 0.5) {
|
|
71
|
-
return easing(t * 2) / 2;
|
|
72
|
-
}
|
|
73
|
-
return 1 - easing((1 - t) * 2) / 2;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.Easing = Easing;
|
package/dist/freeze.d.ts
DELETED
package/dist/freeze.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Freeze = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const Sequence_1 = require("./Sequence");
|
|
7
|
-
const timeline_position_state_1 = require("./timeline-position-state");
|
|
8
|
-
const Freeze = ({ frame, children }) => {
|
|
9
|
-
if (typeof frame === 'undefined') {
|
|
10
|
-
throw new Error(`The <Freeze /> component requires a 'frame' prop, but none was passed.`);
|
|
11
|
-
}
|
|
12
|
-
if (typeof frame !== 'number') {
|
|
13
|
-
throw new Error(`The 'frame' prop of <Freeze /> must be a number, but is of type ${typeof frame}`);
|
|
14
|
-
}
|
|
15
|
-
if (Number.isNaN(frame)) {
|
|
16
|
-
throw new Error(`The 'frame' prop of <Freeze /> must be a real number, but it is NaN.`);
|
|
17
|
-
}
|
|
18
|
-
if (!Number.isFinite(frame)) {
|
|
19
|
-
throw new Error(`The 'frame' prop of <Freeze /> must be a finite number, but it is ${frame}.`);
|
|
20
|
-
}
|
|
21
|
-
const context = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
|
|
22
|
-
const value = (0, react_1.useMemo)(() => {
|
|
23
|
-
return {
|
|
24
|
-
...context,
|
|
25
|
-
playing: false,
|
|
26
|
-
imperativePlaying: {
|
|
27
|
-
current: false,
|
|
28
|
-
},
|
|
29
|
-
frame,
|
|
30
|
-
};
|
|
31
|
-
}, [context, frame]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(Sequence_1.SequenceContext.Provider, { value: null, children: children }) }));
|
|
33
|
-
};
|
|
34
|
-
exports.Freeze = Freeze;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getAssetDisplayName: (filename: string) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAssetDisplayName = void 0;
|
|
4
|
-
const getAssetDisplayName = (filename) => {
|
|
5
|
-
if (/data:|blob:/.test(filename.substring(0, 5))) {
|
|
6
|
-
return 'Data URL';
|
|
7
|
-
}
|
|
8
|
-
const splitted = filename
|
|
9
|
-
.split('/')
|
|
10
|
-
.map((s) => s.split('\\'))
|
|
11
|
-
.flat(1);
|
|
12
|
-
return splitted[splitted.length - 1];
|
|
13
|
-
};
|
|
14
|
-
exports.getAssetDisplayName = getAssetDisplayName;
|
package/dist/get-environment.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useRemotionEnvironment = exports.getRemotionEnvironment = void 0;
|
|
4
|
-
const is_player_1 = require("./is-player");
|
|
5
|
-
const getRemotionEnvironment = () => {
|
|
6
|
-
if (process.env.NODE_ENV === 'production') {
|
|
7
|
-
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
8
|
-
return 'player-production';
|
|
9
|
-
}
|
|
10
|
-
return 'rendering';
|
|
11
|
-
}
|
|
12
|
-
// The Vitest framework sets NODE_ENV as test.
|
|
13
|
-
// Right now we don't need to treat it in a special
|
|
14
|
-
// way which is good - defaulting to `rendering`.
|
|
15
|
-
if (process.env.NODE_ENV === 'test') {
|
|
16
|
-
return 'rendering';
|
|
17
|
-
}
|
|
18
|
-
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
19
|
-
return 'player-development';
|
|
20
|
-
}
|
|
21
|
-
return 'preview';
|
|
22
|
-
};
|
|
23
|
-
exports.getRemotionEnvironment = getRemotionEnvironment;
|
|
24
|
-
const useRemotionEnvironment = () => {
|
|
25
|
-
const isPlayer = (0, is_player_1.useIsPlayer)();
|
|
26
|
-
if (isPlayer) {
|
|
27
|
-
if (process.env.NODE_ENV === 'production') {
|
|
28
|
-
return 'player-production';
|
|
29
|
-
}
|
|
30
|
-
return 'player-development';
|
|
31
|
-
}
|
|
32
|
-
return (0, exports.getRemotionEnvironment)();
|
|
33
|
-
};
|
|
34
|
-
exports.useRemotionEnvironment = useRemotionEnvironment;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getPreviewDomElement: () => HTMLElement | null;
|