Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into v4

Jonny Burger59b13117c1ed
diff --cc packages/renderer/src/render-still.ts
index 97656d426a,0517245f53..13d55b5b59
--- a/packages/renderer/src/render-still.ts
+++ b/packages/renderer/src/render-still.ts
@@@ -103,8 -108,12 +103,12 @@@ const innerRenderStill = async (
component: 'in the `config` object passed to `renderStill()`',
allowFloats: false,
});
- validateNonNullImageFormat(imageFormat);
+ validateStillImageFormat(imageFormat);
- Internals.validateFrame(frame, composition.durationInFrames);
+ Internals.validateFrame({
+ frame,
+ durationInFrames: composition.durationInFrames,
+ allowFloats: false,
+ });
const stillFrame = convertToPositiveFrameIndex({
durationInFrames: composition.durationInFrames,
frame,
diff --cc packages/renderer/src/stitch-frames-to-video.ts
index 1e2413e8de,8a639eca07..22585ed4b4
--- a/packages/renderer/src/stitch-frames-to-video.ts
+++ b/packages/renderer/src/stitch-frames-to-video.ts
@@@ -21,6 -20,9 +21,7 @@@ import {getExecutablePath} from './comp
import {convertNumberOfGifLoopsToFfmpegSyntax} from './convert-number-of-gif-loops-to-ffmpeg';
import {validateQualitySettings} from './crf';
import {deleteDirectory} from './delete-directory';
+ import {warnAboutM2Bug} from './does-have-m2-bug';
-import type {FfmpegExecutable} from './ffmpeg-executable';
-import {getExecutableBinary} from './ffmpeg-flags';
import type {FfmpegOverrideFn} from './ffmpeg-override';
import {findRemotionRoot} from './find-closest-package-json';
import {getCodecName} from './get-codec-name';