Skip to content

🎥 Make videos programmatically with React

fix M2 bug :tada:

Jonny Burgerf8d8f450d6f2
diff --git a/packages/renderer/src/does-have-m2-bug.ts b/packages/renderer/src/does-have-m2-bug.ts
deleted file mode 100644
index 6e77b7eece..0000000000
--- a/packages/renderer/src/does-have-m2-bug.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import {cpus} from 'node:os';
-import type {Codec} from './codec';
-import type {PixelFormat} from './pixel-format';
-
-export const warnAboutM2Bug = (
- codec: Codec | null,
- pixelFormat: PixelFormat | null,
-) => {
- const isM2 = cpus().find((c) => c.model.includes('Apple M2'));
- if (codec === 'prores' && pixelFormat === 'yuv422p10le' && isM2) {
- console.warn();
- console.warn(
- '⚠️ Known issue: Apple M2 CPUs currently suffer from a bug where transparent ProRes videos have flickering. https://github.com/remotion-dev/remotion/issues/1929',
- );
- }
-};
diff --git a/packages/renderer/src/stitch-frames-to-video.ts b/packages/renderer/src/stitch-frames-to-video.ts
index e31d257eaa..bdb84b5702 100644
--- a/packages/renderer/src/stitch-frames-to-video.ts
+++ b/packages/renderer/src/stitch-frames-to-video.ts
@@ -20,7 +20,6 @@ import {codecSupportsMedia} from './codec-supports-media';
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 {generateFfmpegArgs} from './ffmpeg-args';
import type {FfmpegOverrideFn} from './ffmpeg-override';
import {findRemotionRoot} from './find-closest-package-json';
@@ -547,7 +546,6 @@ export const internalStitchFramesToVideo = async (
options: InternalStitchFramesToVideoOptions,
): Promise<Buffer | null> => {
const remotionRoot = findRemotionRoot();
- warnAboutM2Bug(options.codec, options.pixelFormat);
const {task, getLogs} = await innerStitchFramesToVideo(options, remotionRoot);
const happyPath = task.catch(() => {