🎥 Make videos programmatically with React
render flow
Jonny Burgera992205efb44
diff --git a/packages/cli/src/log.ts b/packages/cli/src/log.tsindex a4d1fa6f45..4825fa06fd 100644--- a/packages/cli/src/log.ts+++ b/packages/cli/src/log.ts@@ -9,14 +9,10 @@ export const INDENT_TOKEN = '│';export const Log = {verbose: (...args: Parameters<typeof console.log>) => {- if (- RenderInternals.isEqualOrBelowLogLevel(- ConfigInternals.Logging.getLogLevel(),- 'verbose'- )- ) {- return console.log(...args.map((a) => chalk.blueBright(a)));- }+ Log.verboseAdvanced(+ {indent: false, logLevel: ConfigInternals.Logging.getLogLevel()},+ ...args+ );},verboseAdvanced: (options: {indent: boolean; logLevel: LogLevel},@@ -31,14 +27,10 @@ export const Log = {}},info: (...args: Parameters<typeof console.log>) => {- if (- RenderInternals.isEqualOrBelowLogLevel(- ConfigInternals.Logging.getLogLevel(),- 'info'- )- ) {- return console.log(...args);- }+ Log.infoAdvanced(+ {indent: false, logLevel: ConfigInternals.Logging.getLogLevel()},+ ...args+ );},infoAdvanced: (options: {indent: boolean; logLevel: LogLevel},@@ -53,13 +45,21 @@ export const Log = {}},warn: (...args: Parameters<typeof console.log>) => {- if (- RenderInternals.isEqualOrBelowLogLevel(- ConfigInternals.Logging.getLogLevel(),- 'warn'- )- ) {- return console.warn(...args.map((a) => chalk.yellow(a)));+ Log.warnAdvanced(+ {indent: false, logLevel: ConfigInternals.Logging.getLogLevel()},+ ...args+ );+ },+ warnAdvanced: (+ options: {indent: boolean; logLevel: LogLevel},+ ...args: Parameters<typeof console.log>+ ) => {+ if (RenderInternals.isEqualOrBelowLogLevel(options.logLevel, 'warn')) {+ return console.warn(+ ...[options.indent ? chalk.yellow(INDENT_TOKEN) : null, ...args].filter(+ truthy+ )+ );}},error: (...args: Parameters<typeof console.log>) => {diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.tsnew file mode 100644index 0000000000..7598521137--- /dev/null+++ b/packages/cli/src/render-flows/render.ts@@ -0,0 +1,421 @@+import type {+ Browser,+ BrowserExecutable,+ ChromiumOptions,+ FfmpegExecutable,+ FrameRange,+ ImageFormat,+ LogLevel,+ RenderMediaOnDownload,+ StitchingState,+} from '@remotion/renderer';+import {+ getCompositions,+ openBrowser,+ renderFrames,+ RenderInternals,+ renderMedia,+} from '@remotion/renderer';+import fs from 'fs';+import os from 'os';+import path from 'path';+import {chalk} from '../chalk';+import {+ getAndValidateAbsoluteOutputFile,+ getFinalCodec,+ validateFfmepgCanUseCodec,+} from '../get-cli-options';+import {getCompositionWithDimensionOverride} from '../get-composition-with-dimension-override';+import {getOutputFilename} from '../get-filename';+import {getRenderMediaOptions} from '../get-render-media-options';+import {getImageFormat} from '../image-formats';+import {Log} from '../log';+import type {DownloadProgress} from '../progress-bar';+import {+ createOverwriteableCliOutput,+ makeRenderingAndStitchingProgress,+} from '../progress-bar';+import {bundleOnCliOrTakeServeUrl} from '../setup-cache';+import type {RenderStep} from '../step';+import {truthy} from '../truthy';+import {getUserPassedOutputLocation} from '../user-passed-output-location';+export const renderCompFlow = async ({+ remotionRoot,+ fullEntryPoint,+ ffmpegExecutable,+ ffprobeExecutable,+ indentOutput,+ logLevel,+ browserExecutable,+ browser,+ chromiumOptions,+ scale,+ shouldOutputImageSequence,+ publicDir,+ inputProps,+ envVariables,+ puppeteerTimeout,+ port,+ height,+ width,+ remainingArgs,+ compositionIdFromUi,+ entryPointReason,+ overwrite,+ quiet,+ concurrency,+ frameRange,+ everyNthFrame,+ configFileImageFormat,+ quality,+}: {+ remotionRoot: string;+ fullEntryPoint: string;+ entryPointReason: string;+ browserExecutable: BrowserExecutable;+ chromiumOptions: ChromiumOptions;+ ffmpegExecutable: FfmpegExecutable;+ ffprobeExecutable: FfmpegExecutable;+ logLevel: LogLevel;+ browser: Browser;+ scale: number;+ indentOutput: boolean;+ shouldOutputImageSequence: boolean;+ publicDir: string | null;+ inputProps: object;+ envVariables: Record<string, string>;+ puppeteerTimeout: number;+ port: number | null;+ height: number | null;+ width: number | null;+ remainingArgs: string[];+ compositionIdFromUi: string | null;+ overwrite: boolean;+ quiet: boolean;+ concurrency: number | null;+ frameRange: FrameRange | null;+ everyNthFrame: number;+ configFileImageFormat: ImageFormat | undefined;+ quality: number | undefined;+}) => {+ const downloads: DownloadProgress[] = [];+ const downloadMap = RenderInternals.makeDownloadMap();++ const ffmpegVersion = await RenderInternals.getFfmpegVersion({+ ffmpegExecutable,+ remotionRoot,+ });+ Log.verboseAdvanced(+ {indent: indentOutput, logLevel},+ 'FFMPEG Version:',+ ffmpegVersion ? ffmpegVersion.join('.') : 'Built from source'+ );+ Log.verboseAdvanced(+ {indent: indentOutput, logLevel},+ 'Browser executable: ',+ browserExecutable+ );++ Log.verboseAdvanced(+ {indent: indentOutput, logLevel},+ 'Asset dirs',+ downloadMap.assetDir+ );++ const browserInstance = openBrowser(browser, {+ browserExecutable,+ shouldDumpIo: RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose'),+ chromiumOptions,+ forceDeviceScaleFactor: scale,+ });++ const steps: RenderStep[] = [+ RenderInternals.isServeUrl(fullEntryPoint) ? null : ('bundling' as const),+ 'rendering' as const,+ shouldOutputImageSequence ? null : ('stitching' as const),+ ].filter(truthy);++ const {urlOrBundle, cleanup: cleanupBundle} = await bundleOnCliOrTakeServeUrl(+ {+ fullPath: fullEntryPoint,+ remotionRoot,+ steps,+ publicDir,+ // TODO: Implement onProgress+ onProgress: () => undefined,+ indentOutput,+ logLevel,+ }+ );++ const onDownload: RenderMediaOnDownload = (src) => {+ const id = Math.random();+ const download: DownloadProgress = {+ id,+ name: src,+ progress: 0,+ downloaded: 0,+ totalBytes: null,+ };+ downloads.push(download);+ updateRenderProgress();+ return ({percent, downloaded, totalSize}) => {+ download.progress = percent;+ download.totalBytes = totalSize;+ download.downloaded = downloaded;+ updateRenderProgress();+ };+ };++ const puppeteerInstance = await browserInstance;++ const comps = await getCompositions(urlOrBundle, {+ inputProps,+ puppeteerInstance,+ envVariables,+ timeoutInMilliseconds: puppeteerTimeout,+ chromiumOptions,+ browserExecutable,+ downloadMap,+ port,+ });++ const {compositionId, config, reason, argsAfterComposition} =+ await getCompositionWithDimensionOverride({+ validCompositions: comps,+ height,+ width,+ args: remainingArgs,+ compositionIdFromUi,+ });++ // TODO: Should use codec from UI if explicitly specified+ const {codec, reason: codecReason} = getFinalCodec({+ downloadName: null,+ outName: getUserPassedOutputLocation(argsAfterComposition),+ });++ validateFfmepgCanUseCodec(codec, remotionRoot);++ RenderInternals.validateEvenDimensionsWithCodec({+ width: config.width,+ height: config.height,+ codec,+ scale,+ });++ // TODO: Should use output location from UI if explicitly specified+ const relativeOutputLocation = getOutputFilename({+ codec,+ imageSequence: shouldOutputImageSequence,+ compositionName: compositionId,+ defaultExtension: RenderInternals.getFileExtensionFromCodec(codec, 'final'),+ args: argsAfterComposition,+ });++ Log.infoAdvanced(+ {indent: indentOutput, logLevel},+ chalk.gray(+ `Entry point = ${fullEntryPoint} (${entryPointReason}), Composition = ${compositionId} (${reason}), Codec = ${codec} (${codecReason}), Output = ${relativeOutputLocation}`+ )+ );++ const absoluteOutputFile = getAndValidateAbsoluteOutputFile(+ relativeOutputLocation,+ overwrite+ );++ const outputDir = shouldOutputImageSequence+ ? absoluteOutputFile+ : await fs.promises.mkdtemp(path.join(os.tmpdir(), 'react-motion-render'));++ Log.verboseAdvanced(+ {indent: indentOutput, logLevel},+ 'Output dir',+ outputDir+ );++ const renderProgress = createOverwriteableCliOutput({+ quiet,+ indent: indentOutput,+ });++ const realFrameRange = RenderInternals.getRealFrameRange(+ config.durationInFrames,+ frameRange+ );+ const totalFrames: number[] = RenderInternals.getFramesToRender(+ realFrameRange,+ everyNthFrame+ );+ let encodedFrames = 0;+ let renderedFrames = 0;+ let encodedDoneIn: number | null = null;+ let renderedDoneIn: number | null = null;+ let stitchStage: StitchingState = 'encoding';++ const updateRenderProgress = () => {+ if (totalFrames.length === 0) {+ throw new Error('totalFrames should not be 0');+ }++ const {output} = makeRenderingAndStitchingProgress({+ rendering: {+ frames: renderedFrames,+ totalFrames: totalFrames.length,+ concurrency: RenderInternals.getActualConcurrency(concurrency),+ doneIn: renderedDoneIn,+ steps,+ },+ stitching: shouldOutputImageSequence+ ? null+ : {+ doneIn: encodedDoneIn,+ frames: encodedFrames,+ stage: stitchStage,+ steps,+ totalFrames: totalFrames.length,+ codec,+ },+ downloads,+ bundling: {+ message: 'Bundled',+ progress: 1,+ },+ });+ return renderProgress.update(output);+ };++ const imageFormat = getImageFormat(+ shouldOutputImageSequence ? undefined : codec,+ configFileImageFormat+ );++ if (shouldOutputImageSequence) {+ fs.mkdirSync(absoluteOutputFile, {+ recursive: true,+ });+ if (imageFormat === 'none') {+ throw new Error(+ `Cannot render an image sequence with a codec that renders no images. codec = ${codec}, imageFormat = ${imageFormat}`+ );+ }++ await renderFrames({+ config,+ imageFormat,+ inputProps,+ onFrameUpdate: (rendered) => {+ renderedFrames = rendered;+ updateRenderProgress();+ },+ onStart: () => undefined,+ onDownload: (src: string) => {+ if (src.startsWith('data:')) {+ Log.infoAdvanced(+ {indent: indentOutput, logLevel},++ '\nWriting Data URL to file: ',+ src.substring(0, 30) + '...'+ );+ } else {+ Log.infoAdvanced(+ {indent: indentOutput, logLevel},+ '\nDownloading asset... ',+ src+ );+ }+ },+ outputDir,+ serveUrl: urlOrBundle,+ dumpBrowserLogs: RenderInternals.isEqualOrBelowLogLevel(+ logLevel,+ 'verbose'+ ),+ everyNthFrame,+ envVariables,+ frameRange,+ concurrency,+ puppeteerInstance,+ quality,+ timeoutInMilliseconds: puppeteerTimeout,+ chromiumOptions,+ scale,+ ffmpegExecutable,+ ffprobeExecutable,+ browserExecutable,+ port,+ downloadMap,+ });++ updateRenderProgress();+ Log.infoAdvanced(+ {indent: indentOutput, logLevel},+ chalk.cyan(`▶ ${absoluteOutputFile}`)+ );+ }++ const options = await getRenderMediaOptions({+ config,+ outputLocation: absoluteOutputFile,+ serveUrl: urlOrBundle,+ codec,+ remotionRoot,+ });++ await renderMedia({+ ...options,+ onProgress: (update) => {+ encodedDoneIn = update.encodedDoneIn;+ encodedFrames = update.encodedFrames;+ renderedDoneIn = update.renderedDoneIn;+ stitchStage = update.stitchStage;+ renderedFrames = update.renderedFrames;+ updateRenderProgress();+ },+ puppeteerInstance,+ onDownload,+ downloadMap,+ onSlowestFrames: (slowestFrames) => {+ Log.verboseAdvanced({indent: indentOutput, logLevel});+ Log.verboseAdvanced({indent: indentOutput, logLevel}, `Slowest frames:`);+ slowestFrames.forEach(({frame, time}) => {+ Log.verboseAdvanced(+ {indent: indentOutput, logLevel},+ `Frame ${frame} (${time.toFixed(3)}ms)`+ );+ });+ },+ });++ Log.infoAdvanced(+ {indent: indentOutput, logLevel},+ chalk.cyan(`▶ ${absoluteOutputFile}`)+ );++ try {+ await cleanupBundle();+ await RenderInternals.cleanDownloadMap(downloadMap);++ Log.verboseAdvanced(+ {indent: indentOutput, logLevel},+ 'Cleaned up',+ downloadMap.assetDir+ );+ } catch (err) {+ Log.warnAdvanced(+ {indent: indentOutput, logLevel},+ 'Could not clean up directory.'+ );+ Log.warnAdvanced({indent: indentOutput, logLevel}, err);+ Log.warnAdvanced(+ {indent: indentOutput, logLevel},+ 'Do you have minimum required Node.js version?'+ );+ }++ // TODO: This will not indent+ if (RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose')) {+ RenderInternals.perf.logPerf();+ }+};diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex cb467d09a0..d8a2135491 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -1,43 +1,13 @@-import type {RenderMediaOnDownload, StitchingState} from '@remotion/renderer';-import {- getCompositions,- openBrowser,- renderFrames,- RenderInternals,- renderMedia,-} from '@remotion/renderer';-import fs from 'fs';-import os from 'os';-import path from 'path';// eslint-disable-next-line no-restricted-imports-import {Internals} from 'remotion';-import {chalk} from './chalk';import {ConfigInternals} from './config';import {convertEntryPointToServeUrl} from './convert-entry-point-to-serve-url';import {findEntryPoint} from './entry-point';-import {- getAndValidateAbsoluteOutputFile,- getCliOptions,- getFinalCodec,- validateFfmepgCanUseCodec,-} from './get-cli-options';-import {getCompositionWithDimensionOverride} from './get-composition-with-dimension-override';-import {getOutputFilename} from './get-filename';-import {getRenderMediaOptions} from './get-render-media-options';-import {getImageFormat} from './image-formats';+import {getCliOptions} from './get-cli-options';import {Log} from './log';import {parsedCli, quietFlagProvided} from './parse-command-line';-import type {DownloadProgress} from './progress-bar';-import {- createOverwriteableCliOutput,- makeRenderingAndStitchingProgress,-} from './progress-bar';-import {bundleOnCliOrTakeServeUrl} from './setup-cache';-import type {RenderStep} from './step';-import {getUserPassedOutputLocation} from './user-passed-output-location';+import {renderCompFlow} from './render-flows/render';export const render = async (remotionRoot: string, args: string[]) => {- const startTime = Date.now();const {file,remainingArgs,@@ -53,9 +23,7 @@ export const render = async (remotionRoot: string, args: string[]) => {process.exit(1);}- const fullPath = convertEntryPointToServeUrl(file);-- const downloadMap = RenderInternals.makeDownloadMap();+ const fullEntryPoint = convertEntryPointToServeUrl(file);if (parsedCli.frame) {Log.error(@@ -64,8 +32,6 @@ export const render = async (remotionRoot: string, args: string[]) => {process.exit(1);}- Log.verbose('Asset dirs', downloadMap.assetDir);-const {concurrency,frameRange,@@ -93,307 +59,34 @@ export const render = async (remotionRoot: string, args: string[]) => {remotionRoot,});- const ffmpegVersion = await RenderInternals.getFfmpegVersion({+ await renderCompFlow({ffmpegExecutable,+ ffprobeExecutable,+ fullEntryPoint,remotionRoot,- });- Log.verbose(- 'FFMPEG Version:',- ffmpegVersion ? ffmpegVersion.join('.') : 'Built from source'- );- Log.verbose('Browser executable: ', browserExecutable);-- const browserInstance = openBrowser(browser, {browserExecutable,- shouldDumpIo: RenderInternals.isEqualOrBelowLogLevel(- ConfigInternals.Logging.getLogLevel(),- 'verbose'- ),+ indentOutput: false,+ logLevel: ConfigInternals.Logging.getLogLevel(),+ browser,chromiumOptions,- forceDeviceScaleFactor: scale,- });-- const steps: RenderStep[] = [- RenderInternals.isServeUrl(fullPath) ? null : ('bundling' as const),- 'rendering' as const,- shouldOutputImageSequence ? null : ('stitching' as const),- ].filter(Internals.truthy);-- const {urlOrBundle, cleanup: cleanupBundle} = await bundleOnCliOrTakeServeUrl(- {- fullPath,- remotionRoot,- steps,- publicDir,- onProgress: () => undefined,- indentOutput: false,- logLevel: ConfigInternals.Logging.getLogLevel(),- }- );-- const onDownload: RenderMediaOnDownload = (src) => {- const id = Math.random();- const download: DownloadProgress = {- id,- name: src,- progress: 0,- downloaded: 0,- totalBytes: null,- };- downloads.push(download);- updateRenderProgress();- return ({percent, downloaded, totalSize}) => {- download.progress = percent;- download.totalBytes = totalSize;- download.downloaded = downloaded;- updateRenderProgress();- };- };-- const puppeteerInstance = await browserInstance;-- const comps = await getCompositions(urlOrBundle, {- inputProps,- puppeteerInstance,+ scale,+ shouldOutputImageSequence,+ publicDir,envVariables,- timeoutInMilliseconds: puppeteerTimeout,- chromiumOptions,- browserExecutable,- downloadMap,+ inputProps,+ puppeteerTimeout,port,- });-- const {compositionId, config, reason, argsAfterComposition} =- await getCompositionWithDimensionOverride({- validCompositions: comps,- height,- width,- args: remainingArgs,- compositionIdFromUi: null,- });-- const {codec, reason: codecReason} = getFinalCodec({- downloadName: null,- outName: getUserPassedOutputLocation(argsAfterComposition),- });- validateFfmepgCanUseCodec(codec, remotionRoot);-- RenderInternals.validateEvenDimensionsWithCodec({- width: config.width,- height: config.height,- codec,- scale,- });-- const relativeOutputLocation = getOutputFilename({- codec,- imageSequence: shouldOutputImageSequence,- compositionName: compositionId,- defaultExtension: RenderInternals.getFileExtensionFromCodec(codec, 'final'),- args: argsAfterComposition,- });-- Log.info(- chalk.gray(- `Entry point = ${file} (${entryPointReason}), Composition = ${compositionId} (${reason}), Codec = ${codec} (${codecReason}), Output = ${relativeOutputLocation}`- )- );-- const absoluteOutputFile = getAndValidateAbsoluteOutputFile(- relativeOutputLocation,- overwrite- );-- const outputDir = shouldOutputImageSequence- ? absoluteOutputFile- : await fs.promises.mkdtemp(path.join(os.tmpdir(), 'react-motion-render'));-- Log.verbose('Output dir', outputDir);-- const renderProgress = createOverwriteableCliOutput({+ height,+ width,+ remainingArgs,+ compositionIdFromUi: null,+ entryPointReason,+ overwrite,quiet: quietFlagProvided(),- indent: false,- });- const realFrameRange = RenderInternals.getRealFrameRange(- config.durationInFrames,- frameRange- );- const totalFrames: number[] = RenderInternals.getFramesToRender(- realFrameRange,- everyNthFrame- );- let encodedFrames = 0;- let renderedFrames = 0;- let encodedDoneIn: number | null = null;- let renderedDoneIn: number | null = null;- let stitchStage: StitchingState = 'encoding';- const downloads: DownloadProgress[] = [];-- const updateRenderProgress = () => {- if (totalFrames.length === 0) {- throw new Error('totalFrames should not be 0');- }-- const {output} = makeRenderingAndStitchingProgress({- rendering: {- frames: renderedFrames,- totalFrames: totalFrames.length,- concurrency: RenderInternals.getActualConcurrency(concurrency),- doneIn: renderedDoneIn,- steps,- },- stitching: shouldOutputImageSequence- ? null- : {- doneIn: encodedDoneIn,- frames: encodedFrames,- stage: stitchStage,- steps,- totalFrames: totalFrames.length,- codec,- },- downloads,- bundling: {- message: 'Bundled',- progress: 1,- },- });- return renderProgress.update(output);- };-- const imageFormat = getImageFormat(- shouldOutputImageSequence ? undefined : codec,- configFileImageFormat- );-- if (shouldOutputImageSequence) {- fs.mkdirSync(absoluteOutputFile, {- recursive: true,- });- if (imageFormat === 'none') {- Log.error(- 'Cannot render an image sequence with a codec that renders no images.'- );- Log.error(`codec = ${codec}, imageFormat = ${imageFormat}`);- process.exit(1);- }-- await renderFrames({- config,- imageFormat,- inputProps,- onFrameUpdate: (rendered) => {- renderedFrames = rendered;- updateRenderProgress();- },- onStart: () => undefined,- onDownload: (src: string) => {- if (src.startsWith('data:')) {- Log.info(- '\nWriting Data URL to file: ',- src.substring(0, 30) + '...'- );- } else {- Log.info('\nDownloading asset... ', src);- }- },- outputDir,- serveUrl: urlOrBundle,- dumpBrowserLogs: RenderInternals.isEqualOrBelowLogLevel(- ConfigInternals.Logging.getLogLevel(),- 'verbose'- ),- everyNthFrame,- envVariables,- frameRange,- concurrency,- puppeteerInstance,- quality,- timeoutInMilliseconds: puppeteerTimeout,- chromiumOptions,- scale,- ffmpegExecutable,- ffprobeExecutable,- browserExecutable,- port,- downloadMap,- });- renderedDoneIn = Date.now() - startTime;-- updateRenderProgress();- Log.info();- Log.info();- Log.info(chalk.green('\nYour image sequence is ready!'));- Log.info(chalk.cyan(`▶ ${absoluteOutputFile}`));-- return;- }-- const options = await getRenderMediaOptions({- config,- outputLocation: absoluteOutputFile,- serveUrl: urlOrBundle,- codec,- remotionRoot,- });-- await renderMedia({- ...options,- onProgress: (update) => {- encodedDoneIn = update.encodedDoneIn;- encodedFrames = update.encodedFrames;- renderedDoneIn = update.renderedDoneIn;- stitchStage = update.stitchStage;- renderedFrames = update.renderedFrames;- updateRenderProgress();- },- puppeteerInstance,- onDownload,- downloadMap,- onSlowestFrames: (slowestFrames) => {- Log.verbose();- Log.verbose(`Slowest frames:`);- slowestFrames.forEach(({frame, time}) => {- Log.verbose(`Frame ${frame} (${time.toFixed(3)}ms)`);- });- },+ concurrency,+ everyNthFrame,+ frameRange,+ configFileImageFormat,+ quality,});-- Log.info();- Log.info();-- const seconds = Math.round((Date.now() - startTime) / 1000);- Log.info(- [- '- Total render time:',- seconds,- seconds === 1 ? 'second' : 'seconds',- ].join(' ')- );- Log.info('-', 'Output can be found at:');- Log.info(chalk.cyan(`▶ ${absoluteOutputFile}`));-- try {- await cleanupBundle();- await RenderInternals.cleanDownloadMap(downloadMap);-- Log.verbose('Cleaned up', downloadMap.assetDir);- } catch (err) {- Log.warn('Could not clean up directory.');- Log.warn(err);- Log.warn('Do you have minimum required Node.js version?');- }-- Log.info(- chalk.green(`\nYour ${codec === 'gif' ? 'GIF' : 'video'} is ready!`)- );-- if (- RenderInternals.isEqualOrBelowLogLevel(- ConfigInternals.Logging.getLogLevel(),- 'verbose'- )- ) {- RenderInternals.perf.logPerf();- }};diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.tsindex ef7eac3d87..919d383db2 100644--- a/packages/cli/src/still.ts+++ b/packages/cli/src/still.ts@@ -21,7 +21,7 @@ export const still = async (remotionRoot: string, args: string[]) => {process.exit(1);}- const fullPath = convertEntryPointToServeUrl(file);+ const fullEntryPoint = convertEntryPointToServeUrl(file);if (parsedCli.frames) {Log.error(@@ -58,7 +58,7 @@ export const still = async (remotionRoot: string, args: string[]) => {await renderStillFlow({remotionRoot,entryPointReason,- fullEntryPoint: fullPath,+ fullEntryPoint,remainingArgs,browser,browserExecutable,