Skip to content

πŸŽ₯ Make videos programmatically with React

good

JonnyBurger6cb9265af87d
diff --git a/.claude/commands/update-chrome-binaries-test-region.md b/.claude/commands/update-chrome-binaries-test-region.md
index f3cdb6159e..5259fcd8bc 100644
--- a/.claude/commands/update-chrome-binaries-test-region.md
+++ b/.claude/commands/update-chrome-binaries-test-region.md
@@ -4,4 +4,10 @@
- The `eval` and the `bun` command must run in the same shell invocation (chain with `&&`), since the env vars do not persist across `Bash` tool calls.
- Verify the output prints a `LayerArn` and `Version` for each of the 5 layers and a final JSON dump with `eu-central-1` populated.
- Update `packages/lambda/src/shared/hosted-layers.ts` with the new versions for `eu-central-1` only (fonts, chromium, emoji-apple, emoji-google, cjk). The other regions are intentionally left on their old versions during the test phase.
+- Update Chrome version references throughout the codebase. Ask the user for both the Chrome version (e.g. `149.0.7790.0`) and the corresponding Playwright revision (look it up in `https://github.com/microsoft/playwright/blob/main/packages/playwright-core/browsers.json` if the user does not provide it β€” match by `browserVersion`). Files to update:
+ - `packages/renderer/src/browser/get-chrome-download-url.ts`: `TESTED_VERSION` constant, `PLAYWRIGHT_VERSION` constant, and the trailing `// <version>` comment on the `PLAYWRIGHT_VERSION` line. Also update the two hard-coded `https://remotion.media/chromium-headless-shell-amazon-linux-{arm64,x64}-<version>.zip` URLs β€” but **first** verify the new binaries exist by running `curl -sI` against the new URLs (and the templated `chromium-headless-shell-linux-{arm64,x64}-<version>.zip?clearcache` URLs that follow `TESTED_VERSION`). Only proceed when all return HTTP 200; otherwise ask the user to upload the missing builds to `remotion.media` first.
+ - `packages/lambda/src/admin/make-layer-public.ts`: the `Chromium <version>, compiled from source.` license string passed to `PublishLayerVersionCommand`.
+ - `packages/docs/docs/lambda/runtime.mdx`: prepend a new row to the "Chrome" version table for the next Remotion release. Determine the next version with `cat packages/core/package.json | grep '"version"'` and increment the patch.
+ - `packages/docs/docs/miscellaneous/chrome-headless-shell.mdx`: prepend a new row to the version table, and update the example version string in the "Version tracking" section.
+ - `packages/docs/docs/renderer/ensure-browser.mdx`: update both `version: '<old>'` occurrences in the example code blocks.
- Do not proceed to publishing all regions until the test region has been verified end-to-end.
diff --git a/packages/docs/docs/lambda/runtime.mdx b/packages/docs/docs/lambda/runtime.mdx
index 463a6c1629..9f09ecc309 100644
--- a/packages/docs/docs/lambda/runtime.mdx
+++ b/packages/docs/docs/lambda/runtime.mdx
@@ -63,6 +63,7 @@ The browser was compiled including the proprietary codecs, so you can include MP
| Remotion version | Chrome version |
| ---------------- | -------------- |
+| From 4.0.452 | 149.0.7790.0 |
| From 4.0.415 | 144.0.7559.20 |
| From 4.0.274 | 133.0.6943.141 |
| From 4.0.245 | 123.0.6312.86 |
diff --git a/packages/docs/docs/miscellaneous/chrome-headless-shell.mdx b/packages/docs/docs/miscellaneous/chrome-headless-shell.mdx
index e766c83c0b..29ce0464b1 100644
--- a/packages/docs/docs/miscellaneous/chrome-headless-shell.mdx
+++ b/packages/docs/docs/miscellaneous/chrome-headless-shell.mdx
@@ -82,7 +82,7 @@ node_modules/.remotion/chrome-headless-shell/VERSION
node_modules/.remotion/chrome-for-testing/VERSION
```
-The file contains the Chrome version string, e.g. `144.0.7559.20`.
+The file contains the Chrome version string, e.g. `149.0.7790.0`.
If the `VERSION` file is missing (e.g. when upgrading from an older version of Remotion) or does not match the expected version, Remotion will delete the existing browser and download the correct version.
@@ -138,6 +138,7 @@ Remotion will download a well-tested Chrome version:
| Remotion version | Chrome version |
| ---------------- | --------------------------------- |
+| From 4.0.452 | 149.0.7790.0 |
| From 4.0.414 | 144.0.7559.97 |
| From 4.0.315 | 134.0.6998.35 (skipped on Lambda) |
| From 4.0.274 | 133.0.6943.141 |
diff --git a/packages/docs/docs/renderer/ensure-browser.mdx b/packages/docs/docs/renderer/ensure-browser.mdx
index 9a394068de..26d2261040 100644
--- a/packages/docs/docs/renderer/ensure-browser.mdx
+++ b/packages/docs/docs/renderer/ensure-browser.mdx
@@ -23,7 +23,7 @@ await ensureBrowser({
console.log('Downloading browser');
return {
- version: '144.0.7559.20',
+ version: '149.0.7790.0',
onProgress: ({percent}) => {
console.log(`${Math.round(percent * 100)}% downloaded`);
},
@@ -67,7 +67,7 @@ const onBrowserDownload: OnBrowserDownload = () => {
return {
// Pass `null` to use Remotion's recommendation.
- version: '144.0.7559.20',
+ version: '149.0.7790.0',
onProgress,
};
};
diff --git a/packages/lambda/src/admin/make-layer-public.ts b/packages/lambda/src/admin/make-layer-public.ts
index e8089db0ed..cedeff9194 100644
--- a/packages/lambda/src/admin/make-layer-public.ts
+++ b/packages/lambda/src/admin/make-layer-public.ts
@@ -86,7 +86,7 @@ const makeLayerPublic = async () => {
LayerName: layerName,
LicenseInfo:
layer === 'chromium'
- ? 'Chromium 144.0.7559.20, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
+ ? 'Chromium 149.0.7790.0, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
: layer === 'emoji-apple'
? 'Apple Emojis (https://github.com/samuelngs/apple-emoji-linux). For educational purposes only - Apple is a trademark of Apple Inc., registered in the U.S. and other countries.'
: layer === 'emoji-google'
diff --git a/packages/renderer/src/browser/get-chrome-download-url.ts b/packages/renderer/src/browser/get-chrome-download-url.ts
index 9a7110ab0b..ca44c0f0f9 100644
--- a/packages/renderer/src/browser/get-chrome-download-url.ts
+++ b/packages/renderer/src/browser/get-chrome-download-url.ts
@@ -4,10 +4,10 @@ import type {LogLevel} from '../log-level';
import {Log} from '../logger';
import type {ChromeMode} from '../options/chrome-mode';
-export const TESTED_VERSION = '144.0.7559.20';
+export const TESTED_VERSION = '149.0.7790.0';
// https://github.com/microsoft/playwright/blame/e76ca6cba40c26bf22c19cf37398d2b9da9ed465/packages/playwright-core/browsers.json
// packages/playwright-core/browsers.json
-const PLAYWRIGHT_VERSION = '1207'; // 144.0.7559.20
+const PLAYWRIGHT_VERSION = '1421'; // 149.0.7790.0
export type Platform =
| 'linux64'
@@ -108,7 +108,7 @@ export function getChromeDownloadUrl({
// Amazon Linux 2023 on arm64 needs a special build.
// This binary is compatible with older glibc (no 2.35 requirement).
if (isAmazonLinux2023() && chromeMode === 'headless-shell' && !version) {
- return 'https://remotion.media/chromium-headless-shell-amazon-linux-arm64-144.0.7559.20.zip';
+ return 'https://remotion.media/chromium-headless-shell-amazon-linux-arm64-149.0.7790.0.zip';
}
if (chromeMode === 'chrome-for-testing') {
@@ -132,7 +132,7 @@ export function getChromeDownloadUrl({
// Amazon Linux 2023 needs a special build.
// This binary is compatible with older glibc (no 2.35 requirement).
if (isAmazonLinux2023() && platform === 'linux64' && !version) {
- return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-144.0.7559.20.zip`;
+ return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0.zip`;
}
if (platform === 'linux64' && version === null) {