Skip to content

πŸŽ₯ Make videos programmatically with React

`@remotion/renderer`: Update minimum macOS requirement to 15 (#7067)

Copilot1fdba5b6b616
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index 11d9d38055..ea7e6a2ca5 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -21,7 +21,7 @@ If you plan on prompting videos with <svg viewBox="0 0 149 149" fill="none" xmln
## Scaffolding a new project
:::note
-🍎 macOS 13 (Ventura) or later is required. [Older versions are not supported.](https://github.com/remotion-dev/remotion/issues/7027)
+🍎 macOS 15 (Sequoia) or later is required. [Older versions are not supported.](https://github.com/remotion-dev/remotion/issues/7027)
🐧 [Linux distros need at least version 2.35 of Libc.](https://github.com/remotion-dev/remotion/issues/2439)
They also need to [install some additional packages](/docs/miscellaneous/linux-dependencies).
Alpine Linux and nixOS are unsupported.
diff --git a/packages/it-tests/src/rendering/rendering.test.ts b/packages/it-tests/src/rendering/rendering.test.ts
index c97150bbbd..069d42a04f 100644
--- a/packages/it-tests/src/rendering/rendering.test.ts
+++ b/packages/it-tests/src/rendering/rendering.test.ts
@@ -658,6 +658,7 @@ test(
},
{
timeout: 30000,
+ retry: 3,
},
);
diff --git a/packages/it-tests/src/ssr/render-frames.test.ts b/packages/it-tests/src/ssr/render-frames.test.ts
index 54b2c107b9..bc9ce7fef4 100644
--- a/packages/it-tests/src/ssr/render-frames.test.ts
+++ b/packages/it-tests/src/ssr/render-frames.test.ts
@@ -12,60 +12,64 @@ import {
const exampleBuild = path.join(__dirname, '..', '..', '..', 'example', 'build');
-test('Legacy SSR way of rendering videos should still work', async () => {
- const puppeteerInstance = await openBrowser('chrome');
- const compositions = await getCompositions(exampleBuild, {
- puppeteerInstance,
- inputProps: {},
- });
+test(
+ 'Legacy SSR way of rendering videos should still work',
+ async () => {
+ const puppeteerInstance = await openBrowser('chrome');
+ const compositions = await getCompositions(exampleBuild, {
+ puppeteerInstance,
+ inputProps: {},
+ });
- const reactSvg = compositions.find((c) => c.id === '22khz');
+ const reactSvg = compositions.find((c) => c.id === '22khz');
- if (!reactSvg) {
- throw new Error('not found');
- }
+ if (!reactSvg) {
+ throw new Error('not found');
+ }
- const tmpDir = os.tmpdir();
+ const tmpDir = os.tmpdir();
- // We create a temporary directory for storing the frames
- const framesDir = await fs.promises.mkdtemp(
- path.join(os.tmpdir(), 'remotion-'),
- );
+ // We create a temporary directory for storing the frames
+ const framesDir = await fs.promises.mkdtemp(
+ path.join(os.tmpdir(), 'remotion-'),
+ );
- const outPath = path.join(tmpDir, 'out.mp4');
+ const outPath = path.join(tmpDir, 'out.mp4');
- const {assetsInfo} = await renderFrames({
- composition: reactSvg,
- imageFormat: 'jpeg',
- inputProps: {},
- onFrameUpdate: () => undefined,
- serveUrl: exampleBuild,
- concurrency: null,
- frameRange: [0, 10],
- outputDir: framesDir,
- onStart: () => undefined,
- });
- await stitchFramesToVideo({
- assetsInfo,
- force: true,
- fps: reactSvg.fps,
- height: reactSvg.height,
- outputLocation: outPath,
- width: reactSvg.width,
- codec: 'h264',
- metadata: {Author: 'Lunar'},
- });
- expect(fs.existsSync(outPath)).toBe(true);
- const probe = await RenderInternals.callFf({
- bin: 'ffprobe',
- args: [outPath],
- indent: false,
- logLevel: 'info',
- binariesDirectory: null,
- cancelSignal: undefined,
- });
- expect(probe.stderr).toMatch(/Video: h264/);
+ const {assetsInfo} = await renderFrames({
+ composition: reactSvg,
+ imageFormat: 'jpeg',
+ inputProps: {},
+ onFrameUpdate: () => undefined,
+ serveUrl: exampleBuild,
+ concurrency: null,
+ frameRange: [0, 10],
+ outputDir: framesDir,
+ onStart: () => undefined,
+ });
+ await stitchFramesToVideo({
+ assetsInfo,
+ force: true,
+ fps: reactSvg.fps,
+ height: reactSvg.height,
+ outputLocation: outPath,
+ width: reactSvg.width,
+ codec: 'h264',
+ metadata: {Author: 'Lunar'},
+ });
+ expect(fs.existsSync(outPath)).toBe(true);
+ const probe = await RenderInternals.callFf({
+ bin: 'ffprobe',
+ args: [outPath],
+ indent: false,
+ logLevel: 'info',
+ binariesDirectory: null,
+ cancelSignal: undefined,
+ });
+ expect(probe.stderr).toMatch(/Video: h264/);
- RenderInternals.deleteDirectory(framesDir);
- await puppeteerInstance.close({silent: false});
-});
+ RenderInternals.deleteDirectory(framesDir);
+ await puppeteerInstance.close({silent: false});
+ },
+ {retry: 3},
+);
diff --git a/packages/it-tests/src/ssr/render-still.test.ts b/packages/it-tests/src/ssr/render-still.test.ts
index 1cab8d5fb5..3e1ce30d78 100644
--- a/packages/it-tests/src/ssr/render-still.test.ts
+++ b/packages/it-tests/src/ssr/render-still.test.ts
@@ -42,23 +42,27 @@ test('Render video with browser instance open', async () => {
await puppeteerInstance.close({silent: false});
});
-test('Render still with browser instance not open and legacy webpack config', async () => {
- const compositions = await getCompositions(exampleBuild);
+test(
+ 'Render still with browser instance not open and legacy webpack config',
+ async () => {
+ const compositions = await getCompositions(exampleBuild);
- const reactSvg = compositions.find((c) => c.id === 'react-svg');
+ const reactSvg = compositions.find((c) => c.id === 'react-svg');
- if (!reactSvg) {
- throw new Error('not found');
- }
+ if (!reactSvg) {
+ throw new Error('not found');
+ }
- const tmpDir = os.tmpdir();
+ const tmpDir = os.tmpdir();
- const outPath = path.join(tmpDir, 'subdir', 'out.jpg');
+ const outPath = path.join(tmpDir, 'subdir', 'out.jpg');
- await renderStill({
- output: outPath,
- serveUrl: exampleBuild,
- composition: reactSvg,
- });
- expect(existsSync(outPath)).toBe(true);
-});
+ await renderStill({
+ output: outPath,
+ serveUrl: exampleBuild,
+ composition: reactSvg,
+ });
+ expect(existsSync(outPath)).toBe(true);
+ },
+ {retry: 3},
+);
diff --git a/packages/renderer/src/check-version-requirements.ts b/packages/renderer/src/check-version-requirements.ts
index cc516d8f6a..ea4d234b4e 100644
--- a/packages/renderer/src/check-version-requirements.ts
+++ b/packages/renderer/src/check-version-requirements.ts
@@ -97,27 +97,24 @@ const checkBunVersion = () => {
}
};
-// Darwin kernel major version 22 = macOS 13 (Ventura)
-const MIN_DARWIN_VERSION = 22;
-const MIN_MACOS_DISPLAY_VERSION = '13 (Ventura)';
+// Darwin kernel major version 24 = macOS 15 (Sequoia)
+const MIN_DARWIN_VERSION = 24;
+const MIN_MACOS_DISPLAY_VERSION = '15 (Sequoia)';
const checkMacOSVersion = (logLevel: LogLevel, indent: boolean) => {
if (process.platform !== 'darwin') {
return;
}
- const darwinRelease = os.release();
- const majorVersion = Number(darwinRelease.split('.')[0]);
- if (Number.isNaN(majorVersion)) {
+ const majorVersion = Number(os.release().split('.')[0]);
+ if (Number.isNaN(majorVersion) || majorVersion >= MIN_DARWIN_VERSION) {
return;
}
- if (majorVersion < MIN_DARWIN_VERSION) {
- Log.warn(
- {logLevel, indent},
- `Your macOS version is older than macOS ${MIN_MACOS_DISPLAY_VERSION}. Some features such as rendering may not work.`,
- );
- }
+ Log.warn(
+ {logLevel, indent},
+ `Your macOS version is older than macOS ${MIN_MACOS_DISPLAY_VERSION}. Some features such as rendering may not work.`,
+ );
};
export const checkRuntimeVersion = (logLevel: LogLevel, indent: boolean) => {
diff --git a/packages/renderer/src/print-useful-error-message.ts b/packages/renderer/src/print-useful-error-message.ts
index d95e238008..9a32b21ebe 100644
--- a/packages/renderer/src/print-useful-error-message.ts
+++ b/packages/renderer/src/print-useful-error-message.ts
@@ -170,7 +170,7 @@ export const printUsefulErrorMessage = (
if (err.message.includes('AVCaptureDeviceTypeContinuityCamera')) {
Log.info(
{indent, logLevel},
- 'πŸ’‘ Remotion requires macOS 13 (Ventura) or later.',
+ 'πŸ’‘ Remotion requires macOS 15 (Sequoia) or later.',
);
Log.info(
{indent, logLevel},