@remotion/studio 4.0.80 → 4.0.82

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.
Files changed (34) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/LICENSE.md +45 -0
  3. package/package.json +50 -50
  4. package/tsconfig.tsbuildinfo +1 -0
  5. package/dist/command.d.ts +0 -2
  6. package/dist/command.js +0 -157
  7. package/dist/components/Timeline/TimelineEyeToggler.d.ts +0 -0
  8. package/dist/components/Timeline/TimelineEyeToggler.js +0 -1
  9. package/dist/components/Timeline/timeline-state-reducer.d.ts +0 -19
  10. package/dist/components/Timeline/timeline-state-reducer.js +0 -47
  11. package/dist/preview-server/can-update-default-props.d.ts +0 -1
  12. package/dist/preview-server/can-update-default-props.js +0 -9
  13. package/dist/preview-server/routes.d.ts +0 -20
  14. package/dist/preview-server/routes.js +0 -277
  15. package/dist/preview-server/update-default-props.d.ts +0 -3
  16. package/dist/preview-server/update-default-props.js +0 -34
  17. package/dist/render-queue/copy-still-to-clipboard.d.ts +0 -1
  18. package/dist/render-queue/copy-still-to-clipboard.js +0 -8
  19. package/dist/render-queue/get-default-video-contexts.d.ts +0 -14
  20. package/dist/render-queue/get-default-video-contexts.js +0 -29
  21. package/dist/render-queue/job.d.ts +0 -191
  22. package/dist/render-queue/job.js +0 -2
  23. package/dist/render-queue/make-retry-payload.d.ts +0 -2
  24. package/dist/render-queue/make-retry-payload.js +0 -136
  25. package/dist/render-queue/open-directory-in-finder.d.ts +0 -1
  26. package/dist/render-queue/open-directory-in-finder.js +0 -49
  27. package/dist/render-queue/process-still.d.ts +0 -8
  28. package/dist/render-queue/process-still.js +0 -49
  29. package/dist/render-queue/process-video.d.ts +0 -10
  30. package/dist/render-queue/process-video.js +0 -70
  31. package/dist/render-queue/queue.d.ts +0 -11
  32. package/dist/render-queue/queue.js +0 -221
  33. package/dist/symbolications.d.ts +0 -1
  34. package/dist/symbolications.js +0 -11
@@ -1,191 +0,0 @@
1
- import type { AudioCodec, Codec, ColorSpace, LogLevel, makeCancelSignal, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat, X264Preset } from '@remotion/renderer';
2
- import type { EnumPath } from '../../editor/components/RenderModal/SchemaEditor/extract-enum-json-paths';
3
- import type { AggregateRenderProgress } from '../../progress-types';
4
- import type { RequiredChromiumOptions } from '../../required-chromium-options';
5
- import type { PackageManager } from '../get-package-manager';
6
- type BaseRenderProgress = {
7
- message: string;
8
- value: number;
9
- };
10
- type RenderJobDynamicStatus = {
11
- status: 'done';
12
- progress: BaseRenderProgress & AggregateRenderProgress;
13
- } | {
14
- status: 'running';
15
- progress: BaseRenderProgress & AggregateRenderProgress;
16
- } | {
17
- status: 'idle';
18
- } | {
19
- status: 'failed';
20
- error: {
21
- message: string;
22
- stack: string | undefined;
23
- };
24
- };
25
- export type JobProgressCallback = (options: BaseRenderProgress & AggregateRenderProgress) => void;
26
- type RenderJobDynamicFields = ({
27
- type: 'still';
28
- imageFormat: StillImageFormat;
29
- jpegQuality: number;
30
- frame: number;
31
- scale: number;
32
- offthreadVideoCacheSizeInBytes: number | null;
33
- } & RenderJobDynamicStatus) | ({
34
- type: 'sequence';
35
- imageFormat: VideoImageFormat;
36
- jpegQuality: number | null;
37
- scale: number;
38
- concurrency: number;
39
- startFrame: number;
40
- endFrame: number;
41
- offthreadVideoCacheSizeInBytes: number | null;
42
- } & RenderJobDynamicStatus) | ({
43
- type: 'video';
44
- imageFormat: VideoImageFormat;
45
- jpegQuality: number | null;
46
- scale: number;
47
- codec: Codec;
48
- audioCodec: AudioCodec;
49
- concurrency: number;
50
- crf: number | null;
51
- startFrame: number;
52
- endFrame: number;
53
- muted: boolean;
54
- enforceAudioTrack: boolean;
55
- proResProfile: ProResProfile | null;
56
- x264Preset: X264Preset | null;
57
- pixelFormat: PixelFormat;
58
- audioBitrate: string | null;
59
- videoBitrate: string | null;
60
- encodingBufferSize: string | null;
61
- encodingMaxRate: string | null;
62
- everyNthFrame: number;
63
- numberOfGifLoops: number | null;
64
- disallowParallelEncoding: boolean;
65
- offthreadVideoCacheSizeInBytes: number | null;
66
- colorSpace: ColorSpace;
67
- } & RenderJobDynamicStatus);
68
- export type RenderJob = {
69
- startedAt: number;
70
- compositionId: string;
71
- id: string;
72
- outName: string;
73
- deletedOutputLocation: boolean;
74
- logLevel: LogLevel;
75
- delayRenderTimeout: number;
76
- cancelToken: ReturnType<typeof makeCancelSignal>;
77
- chromiumOptions: RequiredChromiumOptions;
78
- envVariables: Record<string, string>;
79
- serializedInputPropsWithCustomSchema: string;
80
- multiProcessOnLinux: boolean;
81
- } & RenderJobDynamicFields;
82
- export type RenderJobWithCleanup = RenderJob & {
83
- cleanup: (() => void)[];
84
- };
85
- type AddRenderRequestDynamicFields = {
86
- type: 'still';
87
- imageFormat: StillImageFormat;
88
- jpegQuality: number;
89
- frame: number;
90
- scale: number;
91
- logLevel: LogLevel;
92
- } | {
93
- type: 'sequence';
94
- imageFormat: VideoImageFormat;
95
- jpegQuality: number | null;
96
- scale: number;
97
- logLevel: LogLevel;
98
- concurrency: number;
99
- startFrame: number;
100
- endFrame: number;
101
- disallowParallelEncoding: boolean;
102
- } | {
103
- type: 'video';
104
- codec: Codec;
105
- audioCodec: AudioCodec;
106
- imageFormat: VideoImageFormat;
107
- jpegQuality: number | null;
108
- scale: number;
109
- logLevel: LogLevel;
110
- concurrency: number;
111
- crf: number | null;
112
- startFrame: number;
113
- endFrame: number;
114
- muted: boolean;
115
- enforceAudioTrack: boolean;
116
- proResProfile: ProResProfile | null;
117
- x264Preset: X264Preset | null;
118
- pixelFormat: PixelFormat;
119
- audioBitrate: string | null;
120
- videoBitrate: string | null;
121
- encodingBufferSize: string | null;
122
- encodingMaxRate: string | null;
123
- everyNthFrame: number;
124
- numberOfGifLoops: number | null;
125
- disallowParallelEncoding: boolean;
126
- colorSpace: ColorSpace;
127
- };
128
- export type CancelRenderRequest = {
129
- jobId: string;
130
- };
131
- export type CancelRenderResponse = {};
132
- export type AddRenderRequest = {
133
- compositionId: string;
134
- outName: string;
135
- chromiumOptions: RequiredChromiumOptions;
136
- delayRenderTimeout: number;
137
- envVariables: Record<string, string>;
138
- serializedInputPropsWithCustomSchema: string;
139
- offthreadVideoCacheSizeInBytes: number | null;
140
- multiProcessOnLinux: boolean;
141
- } & AddRenderRequestDynamicFields;
142
- export type RemoveRenderRequest = {
143
- jobId: string;
144
- };
145
- export type OpenInFileExplorerRequest = {
146
- directory: string;
147
- };
148
- export type CopyStillToClipboardRequest = {
149
- outName: string;
150
- };
151
- export type SubscribeToFileExistenceRequest = {
152
- file: string;
153
- clientId: string;
154
- };
155
- export type SubscribeToFileExistenceResponse = {
156
- exists: boolean;
157
- };
158
- export type UnsubscribeFromFileExistenceRequest = {
159
- file: string;
160
- clientId: string;
161
- };
162
- export type UpdateDefaultPropsRequest = {
163
- compositionId: string;
164
- defaultProps: string;
165
- enumPaths: EnumPath[];
166
- };
167
- export type UpdateDefaultPropsResponse = {
168
- success: true;
169
- } | {
170
- success: false;
171
- reason: string;
172
- stack: string;
173
- };
174
- export type CanUpdateDefaultPropsRequest = {
175
- compositionId: string;
176
- };
177
- export type CanUpdateDefaultPropsResponse = {
178
- canUpdate: true;
179
- } | {
180
- canUpdate: false;
181
- reason: string;
182
- };
183
- export type UpdateAvailableRequest = {};
184
- export type UpdateAvailableResponse = {
185
- currentVersion: string;
186
- latestVersion: string;
187
- updateAvailable: boolean;
188
- timedOut: boolean;
189
- packageManager: PackageManager | 'unknown';
190
- };
191
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import type { RenderJob } from './job';
2
- export declare const makeRetryPayload: (job: RenderJob) => RenderModalState;
@@ -1,136 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeRetryPayload = void 0;
4
- const no_react_1 = require("remotion/no-react");
5
- const makeRetryPayload = (job) => {
6
- var _a, _b, _c, _d, _e;
7
- const defaults = window.remotion_renderDefaults;
8
- if (!defaults) {
9
- throw new Error('defaults not set');
10
- }
11
- if (job.type === 'still') {
12
- return {
13
- type: 'render',
14
- compositionId: job.compositionId,
15
- initialFrame: job.frame,
16
- initialStillImageFormat: job.imageFormat,
17
- initialVideoImageFormat: defaults.videoImageFormat,
18
- initialJpegQuality: (_a = job.jpegQuality) !== null && _a !== void 0 ? _a : defaults.jpegQuality,
19
- initialScale: job.scale,
20
- initialLogLevel: job.logLevel,
21
- initialConcurrency: defaults.concurrency,
22
- maxConcurrency: defaults.maxConcurrency,
23
- minConcurrency: defaults.minConcurrency,
24
- initialMuted: defaults.muted,
25
- initialEnforceAudioTrack: defaults.enforceAudioTrack,
26
- initialProResProfile: defaults.proResProfile,
27
- initialx264Preset: defaults.x264Preset,
28
- initialPixelFormat: defaults.pixelFormat,
29
- initialAudioBitrate: defaults.audioBitrate,
30
- initialVideoBitrate: defaults.videoBitrate,
31
- initialEveryNthFrame: defaults.everyNthFrame,
32
- initialNumberOfGifLoops: defaults.numberOfGifLoops,
33
- initialDelayRenderTimeout: job.delayRenderTimeout,
34
- defaultConfigurationAudioCodec: defaults.audioCodec,
35
- initialEnvVariables: job.envVariables,
36
- initialDisableWebSecurity: job.chromiumOptions.disableWebSecurity,
37
- initialOpenGlRenderer: job.chromiumOptions.gl,
38
- initialHeadless: job.chromiumOptions.headless,
39
- initialIgnoreCertificateErrors: job.chromiumOptions.ignoreCertificateErrors,
40
- defaultProps: no_react_1.NoReactInternals.deserializeJSONWithCustomFields(job.serializedInputPropsWithCustomSchema),
41
- inFrameMark: null,
42
- outFrameMark: null,
43
- initialOffthreadVideoCacheSizeInBytes: job.offthreadVideoCacheSizeInBytes,
44
- initialColorSpace: defaults.colorSpace,
45
- initialMultiProcessOnLinux: job.multiProcessOnLinux,
46
- defaultConfigurationVideoCodec: defaults.codec,
47
- initialEncodingBufferSize: defaults.encodingBufferSize,
48
- initialEncodingMaxRate: defaults.encodingMaxRate,
49
- initialUserAgent: job.chromiumOptions.userAgent,
50
- };
51
- }
52
- if (job.type === 'sequence') {
53
- return {
54
- type: 'render',
55
- initialFrame: 0,
56
- compositionId: job.compositionId,
57
- initialVideoImageFormat: defaults.videoImageFormat,
58
- initialJpegQuality: (_b = job.jpegQuality) !== null && _b !== void 0 ? _b : defaults.jpegQuality,
59
- initialScale: job.scale,
60
- initialLogLevel: job.logLevel,
61
- initialConcurrency: defaults.concurrency,
62
- maxConcurrency: defaults.maxConcurrency,
63
- minConcurrency: defaults.minConcurrency,
64
- initialMuted: defaults.muted,
65
- initialEnforceAudioTrack: defaults.enforceAudioTrack,
66
- initialProResProfile: defaults.proResProfile,
67
- initialx264Preset: defaults.x264Preset,
68
- initialPixelFormat: defaults.pixelFormat,
69
- initialAudioBitrate: defaults.audioBitrate,
70
- initialVideoBitrate: defaults.videoBitrate,
71
- initialEveryNthFrame: defaults.everyNthFrame,
72
- initialNumberOfGifLoops: defaults.numberOfGifLoops,
73
- initialDelayRenderTimeout: job.delayRenderTimeout,
74
- initialEnvVariables: job.envVariables,
75
- initialDisableWebSecurity: job.chromiumOptions.disableWebSecurity,
76
- initialOpenGlRenderer: job.chromiumOptions.gl,
77
- initialHeadless: job.chromiumOptions.headless,
78
- initialIgnoreCertificateErrors: job.chromiumOptions.ignoreCertificateErrors,
79
- defaultProps: no_react_1.NoReactInternals.deserializeJSONWithCustomFields(job.serializedInputPropsWithCustomSchema),
80
- initialStillImageFormat: defaults.stillImageFormat,
81
- inFrameMark: job.startFrame,
82
- outFrameMark: job.endFrame,
83
- initialOffthreadVideoCacheSizeInBytes: job.offthreadVideoCacheSizeInBytes,
84
- initialColorSpace: defaults.colorSpace,
85
- initialMultiProcessOnLinux: job.multiProcessOnLinux,
86
- defaultConfigurationVideoCodec: defaults.codec,
87
- defaultConfigurationAudioCodec: defaults.audioCodec,
88
- initialEncodingBufferSize: defaults.encodingBufferSize,
89
- initialEncodingMaxRate: defaults.encodingMaxRate,
90
- initialUserAgent: job.chromiumOptions.userAgent,
91
- };
92
- }
93
- if (job.type === 'video') {
94
- return {
95
- type: 'render',
96
- compositionId: job.compositionId,
97
- initialStillImageFormat: defaults.stillImageFormat,
98
- initialVideoImageFormat: job.imageFormat,
99
- initialJpegQuality: (_c = job.jpegQuality) !== null && _c !== void 0 ? _c : defaults.jpegQuality,
100
- initialScale: job.scale,
101
- initialLogLevel: job.logLevel,
102
- initialFrame: 0,
103
- initialConcurrency: job.concurrency,
104
- maxConcurrency: defaults.maxConcurrency,
105
- minConcurrency: defaults.minConcurrency,
106
- initialMuted: job.muted,
107
- initialEnforceAudioTrack: job.enforceAudioTrack,
108
- initialProResProfile: (_d = job.proResProfile) !== null && _d !== void 0 ? _d : defaults.proResProfile,
109
- initialx264Preset: (_e = job.x264Preset) !== null && _e !== void 0 ? _e : defaults.x264Preset,
110
- initialPixelFormat: job.pixelFormat,
111
- initialAudioBitrate: job.audioBitrate,
112
- initialVideoBitrate: job.videoBitrate,
113
- initialEveryNthFrame: job.everyNthFrame,
114
- initialNumberOfGifLoops: job.numberOfGifLoops,
115
- initialDelayRenderTimeout: job.delayRenderTimeout,
116
- initialEnvVariables: job.envVariables,
117
- initialDisableWebSecurity: job.chromiumOptions.disableWebSecurity,
118
- initialOpenGlRenderer: job.chromiumOptions.gl,
119
- initialHeadless: job.chromiumOptions.headless,
120
- initialIgnoreCertificateErrors: job.chromiumOptions.ignoreCertificateErrors,
121
- defaultProps: no_react_1.NoReactInternals.deserializeJSONWithCustomFields(job.serializedInputPropsWithCustomSchema),
122
- inFrameMark: job.startFrame,
123
- outFrameMark: job.endFrame,
124
- initialOffthreadVideoCacheSizeInBytes: job.offthreadVideoCacheSizeInBytes,
125
- initialColorSpace: job.colorSpace,
126
- initialMultiProcessOnLinux: job.multiProcessOnLinux,
127
- defaultConfigurationVideoCodec: job.codec,
128
- defaultConfigurationAudioCodec: job.audioCodec,
129
- initialEncodingBufferSize: job.encodingBufferSize,
130
- initialEncodingMaxRate: job.encodingMaxRate,
131
- initialUserAgent: job.chromiumOptions.userAgent,
132
- };
133
- }
134
- throw new Error(`Job ${JSON.stringify(job)} Not implemented`);
135
- };
136
- exports.makeRetryPayload = makeRetryPayload;
@@ -1 +0,0 @@
1
- export declare const openDirectoryInFinder: (dirToOpen: string, allowedDirectory: string) => Promise<void>;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.openDirectoryInFinder = void 0;
7
- const node_child_process_1 = require("node:child_process");
8
- const node_os_1 = require("node:os");
9
- const node_path_1 = __importDefault(require("node:path"));
10
- const truthy_1 = require("../../truthy");
11
- const openDirectoryInFinder = (dirToOpen, allowedDirectory) => {
12
- const resolved = node_path_1.default.resolve(allowedDirectory, dirToOpen);
13
- const relativeToProcessCwd = node_path_1.default.relative(allowedDirectory, resolved);
14
- if (relativeToProcessCwd.startsWith('..')) {
15
- throw new Error(`Not allowed to open ${relativeToProcessCwd}`);
16
- }
17
- if ((0, node_os_1.platform)() === 'win32') {
18
- return new Promise((resolve, reject) => {
19
- (0, node_child_process_1.exec)(`start ${dirToOpen}`, (error) => {
20
- if (error) {
21
- reject(error);
22
- }
23
- resolve();
24
- });
25
- });
26
- }
27
- const command = (0, node_os_1.platform)() === 'darwin' ? 'open' : 'xdg-open';
28
- const p = (0, node_child_process_1.spawn)(command, [(0, node_os_1.platform)() === 'darwin' ? '-R' : null, dirToOpen].filter(truthy_1.truthy));
29
- const stderrChunks = [];
30
- p.stderr.on('data', (d) => stderrChunks.push(d));
31
- return new Promise((resolve, reject) => {
32
- p.on('exit', (code) => {
33
- if (code === 0) {
34
- resolve();
35
- }
36
- else {
37
- const message = Buffer.concat(stderrChunks).toString('utf-8');
38
- reject(new Error(message));
39
- }
40
- });
41
- p.on('error', (err) => {
42
- p.kill();
43
- if (err) {
44
- reject(err);
45
- }
46
- });
47
- });
48
- };
49
- exports.openDirectoryInFinder = openDirectoryInFinder;
@@ -1,8 +0,0 @@
1
- import type { JobProgressCallback, RenderJob } from './job';
2
- export declare const processStill: ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, }: {
3
- job: RenderJob;
4
- remotionRoot: string;
5
- entryPoint: string;
6
- onProgress: JobProgressCallback;
7
- addCleanupCallback: (cb: () => void) => void;
8
- }) => Promise<void>;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.processStill = void 0;
4
- const preview_server_1 = require("../../config/preview-server");
5
- const convert_entry_point_to_serve_url_1 = require("../../convert-entry-point-to-serve-url");
6
- const get_cli_options_1 = require("../../get-cli-options");
7
- const still_1 = require("../../render-flows/still");
8
- const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, }) => {
9
- if (job.type !== 'still') {
10
- throw new Error('Expected still job');
11
- }
12
- const { publicDir, browserExecutable, browser, puppeteerTimeout } = await (0, get_cli_options_1.getCliOptions)({
13
- isLambda: false,
14
- type: 'still',
15
- remotionRoot,
16
- logLevel: job.logLevel,
17
- });
18
- const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
19
- await (0, still_1.renderStillFlow)({
20
- remotionRoot,
21
- browser,
22
- browserExecutable,
23
- chromiumOptions: job.chromiumOptions,
24
- entryPointReason: 'same as Studio',
25
- envVariables: job.envVariables,
26
- height: null,
27
- fullEntryPoint,
28
- serializedInputPropsWithCustomSchema: job.serializedInputPropsWithCustomSchema,
29
- overwrite: true,
30
- port: (0, preview_server_1.getRendererPortFromConfigFile)(),
31
- publicDir,
32
- puppeteerTimeout,
33
- jpegQuality: job.jpegQuality,
34
- remainingArgs: [],
35
- scale: job.scale,
36
- stillFrame: job.frame,
37
- width: null,
38
- compositionIdFromUi: job.compositionId,
39
- imageFormatFromUi: job.imageFormat,
40
- logLevel: job.logLevel,
41
- onProgress,
42
- indent: true,
43
- addCleanupCallback,
44
- cancelSignal: job.cancelToken.cancelSignal,
45
- outputLocationFromUi: job.outName,
46
- offthreadVideoCacheSizeInBytes: job.offthreadVideoCacheSizeInBytes,
47
- });
48
- };
49
- exports.processStill = processStill;
@@ -1,10 +0,0 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- import type { JobProgressCallback, RenderJob } from './job';
3
- export declare const processVideoJob: ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, logLevel, }: {
4
- job: RenderJob;
5
- remotionRoot: string;
6
- entryPoint: string;
7
- onProgress: JobProgressCallback;
8
- addCleanupCallback: (cb: () => void) => void;
9
- logLevel: LogLevel;
10
- }) => Promise<void>;
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.processVideoJob = void 0;
4
- const preview_server_1 = require("../../config/preview-server");
5
- const convert_entry_point_to_serve_url_1 = require("../../convert-entry-point-to-serve-url");
6
- const get_cli_options_1 = require("../../get-cli-options");
7
- const render_1 = require("../../render-flows/render");
8
- const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, logLevel, }) => {
9
- var _a, _b, _c;
10
- if (job.type !== 'video' && job.type !== 'sequence') {
11
- throw new Error('Expected video job');
12
- }
13
- const { publicDir, browserExecutable, browser, ffmpegOverride } = await (0, get_cli_options_1.getCliOptions)({
14
- isLambda: false,
15
- type: 'still',
16
- remotionRoot,
17
- logLevel,
18
- });
19
- const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
20
- await (0, render_1.renderVideoFlow)({
21
- remotionRoot,
22
- browser,
23
- browserExecutable,
24
- chromiumOptions: job.chromiumOptions,
25
- entryPointReason: 'same as Studio',
26
- envVariables: job.envVariables,
27
- height: null,
28
- fullEntryPoint,
29
- serializedInputPropsWithCustomSchema: job.serializedInputPropsWithCustomSchema,
30
- overwrite: true,
31
- port: (0, preview_server_1.getRendererPortFromConfigFile)(),
32
- publicDir,
33
- puppeteerTimeout: job.delayRenderTimeout,
34
- jpegQuality: (_a = job.jpegQuality) !== null && _a !== void 0 ? _a : undefined,
35
- remainingArgs: [],
36
- scale: job.scale,
37
- width: null,
38
- compositionIdFromUi: job.compositionId,
39
- logLevel: job.logLevel,
40
- onProgress,
41
- indent: true,
42
- concurrency: job.concurrency,
43
- everyNthFrame: job.type === 'video' ? job.everyNthFrame : 1,
44
- frameRange: [job.startFrame, job.endFrame],
45
- quiet: false,
46
- shouldOutputImageSequence: job.type === 'sequence',
47
- addCleanupCallback,
48
- outputLocationFromUI: job.outName,
49
- uiCodec: job.type === 'video' ? job.codec : null,
50
- uiImageFormat: job.imageFormat,
51
- cancelSignal: job.cancelToken.cancelSignal,
52
- crf: job.type === 'video' ? job.crf : null,
53
- ffmpegOverride,
54
- audioBitrate: job.type === 'video' ? job.audioBitrate : null,
55
- muted: job.type === 'video' ? job.muted : true,
56
- enforceAudioTrack: job.type === 'video' ? job.enforceAudioTrack : false,
57
- proResProfile: job.type === 'video' ? (_b = job.proResProfile) !== null && _b !== void 0 ? _b : undefined : undefined,
58
- x264Preset: job.type === 'video' ? (_c = job.x264Preset) !== null && _c !== void 0 ? _c : undefined : undefined,
59
- pixelFormat: job.type === 'video' ? job.pixelFormat : 'yuv420p',
60
- videoBitrate: job.type === 'video' ? job.videoBitrate : null,
61
- encodingBufferSize: job.type === 'video' ? job.encodingBufferSize : null,
62
- encodingMaxRate: job.type === 'video' ? job.encodingMaxRate : null,
63
- numberOfGifLoops: job.type === 'video' ? job.numberOfGifLoops : null,
64
- audioCodec: job.type === 'video' ? job.audioCodec : null,
65
- disallowParallelEncoding: job.type === 'video' ? job.disallowParallelEncoding : false,
66
- offthreadVideoCacheSizeInBytes: job.offthreadVideoCacheSizeInBytes,
67
- colorSpace: job.type === 'video' ? job.colorSpace : 'default',
68
- });
69
- };
70
- exports.processVideoJob = processVideoJob;
@@ -1,11 +0,0 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- import type { RenderJob, RenderJobWithCleanup } from './job';
3
- export declare const getRenderQueue: () => RenderJob[];
4
- export declare const addJob: ({ job, entryPoint, remotionRoot, logLevel, }: {
5
- job: RenderJobWithCleanup;
6
- entryPoint: string;
7
- remotionRoot: string;
8
- logLevel: LogLevel;
9
- }) => void;
10
- export declare const removeJob: (jobId: string) => void;
11
- export declare const cancelJob: (jobId: string) => void;