Skip to content

🎥 Make videos programmatically with React

Merge branch 'v4' into render-button

Jonny Burger5c7c1ddbb07d
diff --cc packages/cli/src/benchmark.ts
index 013a8907fe,802e762446..18389ada4d
--- a/packages/cli/src/benchmark.ts
+++ b/packages/cli/src/benchmark.ts
@@@ -6,12 -6,11 +6,13 @@@ import
renderMedia,
} from '@remotion/renderer';
import {chalk} from './chalk';
+ import {registerCleanupJob} from './cleanup-before-quit';
import {ConfigInternals} from './config';
+import {convertEntryPointToServeUrl} from './convert-entry-point-to-serve-url';
import {findEntryPoint} from './entry-point';
-import {getCliOptions, getFinalCodec} from './get-cli-options';
-import {getRenderMediaOptions} from './get-render-media-options';
+import {getCliOptions} from './get-cli-options';
+import {getFinalOutputCodec} from './get-final-output-codec';
+import {getImageFormat} from './image-formats';
import {Log} from './log';
import {makeProgressBar} from './make-progress-bar';
import {parsedCli, quietFlagProvided} from './parse-command-line';
@@@ -184,11 -186,10 +185,13 @@@ export const benchmarkCommand = async
publicDir,
remotionRoot,
steps: ['bundling'],
+ onProgress: () => undefined,
+ indentOutput: false,
+ logLevel: ConfigInternals.Logging.getLogLevel(),
});
+ registerCleanupJob(() => cleanupBundle());
+
const puppeteerInstance = await browserInstance;
const comps = await getCompositions(bundleLocation, {
diff --cc packages/cli/src/compositions.ts
index 3e902de120,f2b653f0ba..563f17a64c
--- a/packages/cli/src/compositions.ts
+++ b/packages/cli/src/compositions.ts
@@@ -1,5 -1,5 +1,6 @@@
import {getCompositions, RenderInternals} from '@remotion/renderer';
+ import {registerCleanupJob} from './cleanup-before-quit';
+import {ConfigInternals} from './config';
import {findEntryPoint} from './entry-point';
import {getCliOptions} from './get-cli-options';
import {loadConfig} from './get-config-file-name';
@@@ -52,11 -53,10 +54,13 @@@ export const listCompositionsCommand =
fullPath: file,
steps: ['bundling'],
publicDir,
+ onProgress: () => undefined,
+ indentOutput: false,
+ logLevel: ConfigInternals.Logging.getLogLevel(),
});
+ registerCleanupJob(() => cleanupBundle());
+
const compositions = await getCompositions(bundled, {
browserExecutable,
ffmpegExecutable,
diff --cc packages/cli/src/setup-cache.ts
index 045e6e6b77,bf3fdde7ae..a1030255c4
--- a/packages/cli/src/setup-cache.ts
+++ b/packages/cli/src/setup-cache.ts
@@@ -29,12 -25,9 +29,12 @@@ export const bundleOnCliOrTakeServeUrl
remotionRoot: string;
steps: RenderStep[];
publicDir: string | null;
+ onProgress: (params: {progress: number; message: string}) => void;
+ indentOutput: boolean;
+ logLevel: LogLevel;
}): Promise<{
urlOrBundle: string;
- cleanup: () => Promise<void>;
+ cleanup: () => void;
}> => {
if (RenderInternals.isServeUrl(fullPath)) {
return {