Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into pr/312

Jonny Burgerd81b0b206ff4
diff --cc packages/cli/src/render.tsx
index 6133e0fa5b,f69debae63..392c3f4a66
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@@ -1,17 -1,10 +1,12 @@@
- import {bundle, cacheExists, clearCache} from '@remotion/bundler';
+ import {bundle, BundlerInternals} from '@remotion/bundler';
import {
- ensureLocalBrowser,
- ffmpegHasFeature,
- getActualConcurrency,
getCompositions,
- getFfmpegVersion,
+ OnStartData,
- openBrowser,
renderFrames,
+ RenderInternals,
stitchFramesToVideo,
- validateFfmpeg,
} from '@remotion/renderer';
+import chalk from 'chalk';
import cliProgress from 'cli-progress';
import fs from 'fs';
import os from 'os';
@@@ -202,9 -203,9 +206,9 @@@ export const render = async () =>
parallelism,
compositionId,
outputDir,
- onStart: ({frameCount: fc}) => {
+ onStart: ({frameCount: fc}: OnStartData) => {
process.stdout.write(
- `📼 (2/${steps}) Rendering frames (${getActualConcurrency(
+ `📼 (2/${steps}) Rendering frames (${RenderInternals.getActualConcurrency(
parallelism
)}x concurrency)...\n`
);