🎥 Make videos programmatically with React
`@remotion/media`: Upgrade Mediabunny to 1.34.4, register AC3 decoder
Jonny Burger35e20b6ba16d
diff --git a/bun.lock b/bun.lockindex fdaea9ed43..0c69127074 100644--- a/bun.lock+++ b/bun.lock@@ -1599,7 +1599,7 @@"@remotion/media": "workspace:*","@remotion/media-utils": "workspace:*","@remotion/zod-types": "workspace:*",- "mediabunny": "1.34.2",+ "mediabunny": "1.34.4","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",@@ -1923,7 +1923,7 @@"connect": "3.7.0","eslint": "9.19.0","lucide-react": "0.516.0",- "mediabunny": "1.34.2",+ "mediabunny": "1.34.4","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",@@ -2059,7 +2059,7 @@"@remotion/media": "workspace:*","@remotion/three": "workspace:*","@remotion/zod-types": "workspace:*",- "mediabunny": "1.34.2",+ "mediabunny": "1.34.4","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",@@ -2275,7 +2275,6 @@"name": "@remotion/web-renderer","version": "4.0.423","dependencies": {- "@mediabunny/ac3": "catalog:","@remotion/licensing": "workspace:*","mediabunny": "catalog:","remotion": "workspace:*",@@ -2365,8 +2364,8 @@"@aws-sdk/lib-storage": "3.986.0","@aws-sdk/middleware-flexible-checksums": "3.972.5","@aws-sdk/s3-request-presigner": "3.986.0",- "@mediabunny/ac3": "1.34.3",- "@mediabunny/mp3-encoder": "1.34.3",+ "@mediabunny/ac3": "1.34.4",+ "@mediabunny/mp3-encoder": "1.34.4","@react-three/fiber": "9.2.0","@types/bun": "1.3.3","@types/dom-webcodecs": "0.1.11",@@ -2379,7 +2378,7 @@"@vitejs/plugin-react": "4.1.0","@vitest/browser-playwright": "4.0.9","eslint": "9.19.0",- "mediabunny": "1.34.3",+ "mediabunny": "1.34.4","next": "16.1.5","openai": "4.67.1","playwright": "1.55.1",@@ -3304,9 +3303,9 @@"@mdx-js/react": ["@mdx-js/[email protected]", "", { "dependencies": { "@types/mdx": "2.0.5", "@types/react": "19.0.0" }, "peerDependencies": { "react": "19.0.0" } }, "sha512-zQH//gdOmuu7nt2oJR29vFhDv88oGPmVw6BggmrHeMI+xgEkp1B2dX9/bMBSYtK0dyLX/aOmesKS09g222K1/g=="],- "@mediabunny/ac3": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-YpQN7dOQHbA3DX7Qt5DoWLcf8LDIHzO3i5jrl++GoCCbQQykS7L3Ea66oCKZCqlX42kLZhavPOgd0OXGFf+dEQ=="],+ "@mediabunny/ac3": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-x8mt6jbBl5iEIPPrKdhV9Ui3PnSv+jrtRekbWjdh4FYGwlqvLxko1HQgCSg8sCt/5da0A4XsfYI3X/CpL0heCg=="],- "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-be3vYjGKSWRzKMfajGbdej6IjEE7fLHIONbOy9jhUO+57OF8ZCVH3SpG6zEuyZdnsJonEVqnyBkQkchHB2Q+Fg=="],+ "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-k3DiqwSfjsX5WKqNgiGSqF90HPbHQ4qt8vaFRQloVwzIpvV+q5ivXpq0TEFMAzsRJKSKrRPYDiSJu7EdRui09g=="],"@mediafox/core": ["@mediafox/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.23.0", "typescript": ">=5.0.0" } }, "sha512-1j8PKp835RUVzZt1vcymrgZqhaMobfP7SswbTisusvTgIZL8y5n2QFhSCnn7dze+a53VgnWyzkHOYdtVR1Gdew=="],@@ -6218,7 +6217,7 @@"media-typer": ["[email protected]", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="],- "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-Jb0x3jyvadGVpo8aZSn53NZduPbPdbx9foQsAGOmKBz7Hai9B38Kf+7eXbxXFcXoXxcTyNaZeDhoA0agoBQldA=="],+ "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-f1B95A60YoCsZQO/JQYxPDorybEz2Sjasf4RrpwGSMmJW6JVyhI/iJDri9LF6kk5WwUovF8oiTvRNM6xGjWo5w=="],"memfs": ["[email protected]", "", { "dependencies": { "fs-monkey": "1.0.3" } }, "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg=="],@@ -10446,8 +10445,6 @@"template-ai-video/uuid": ["[email protected]", "", { "bin": { "uuid": "dist-node/bin/uuid" } }, "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w=="],- "template-music-visualization/mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-Mr9VhiqH2RRwc3vR6rk8ca/58HhstP+c25PjtZmZvmCw21ibWSNqpinvBREfJmY+hpNGnG9dUmbJ4WqLMDWO0g=="],-"template-next-app/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],"template-next-app/@typescript-eslint/eslint-plugin": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/type-utils": "8.46.0", "@typescript-eslint/utils": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.46.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hA8gxBq4ukonVXPy0OKhiaUh/68D0E88GSmtC1iAEnGaieuDi38LhS7jdCHRLi6ErJBNDGCzvh5EnzdPwUc0DA=="],@@ -10526,8 +10523,6 @@"template-recorder/lucide-react": ["[email protected]", "", { "peerDependencies": { "react": "19.0.0" } }, "sha512-aybBJzLHcw1CIn3rUcRkztB37dsJATtpffLNX+0/w+ws2p21nYIlOwX/B5fqxq8F/BjqVemnJX8chKwRidvROg=="],- "template-recorder/mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-Mr9VhiqH2RRwc3vR6rk8ca/58HhstP+c25PjtZmZvmCw21ibWSNqpinvBREfJmY+hpNGnG9dUmbJ4WqLMDWO0g=="],-"template-recorder/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "3.3.11", "picocolors": "1.1.1", "source-map-js": "1.2.1" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],"template-recorder/prettier-plugin-organize-imports": ["[email protected]", "", { "peerDependencies": { "prettier": "3.6.0", "typescript": "5.8.2" } }, "sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg=="],@@ -10546,8 +10541,6 @@"template-still/p-limit": ["[email protected]", "", { "dependencies": { "yocto-queue": "0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="],- "template-three/mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-Mr9VhiqH2RRwc3vR6rk8ca/58HhstP+c25PjtZmZvmCw21ibWSNqpinvBREfJmY+hpNGnG9dUmbJ4WqLMDWO0g=="],-"template-tts-azure/tsx": ["[email protected]", "", { "dependencies": { "esbuild": "0.25.0", "get-tsconfig": "4.8.1" }, "optionalDependencies": { "fsevents": "2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ=="],"template-tts-google/@types/express": ["@types/[email protected]", "", { "dependencies": { "@types/body-parser": "1.19.1", "@types/express-serve-static-core": "4.17.35", "@types/qs": "6.9.7", "@types/serve-static": "1.13.10" } }, "sha512-6bSZTPaTIACxn48l50SR+axgrqm6qXFIxrdAKaG6PaJk3+zuUr35hBlgT7vOmJcum+OEaIBLtHV/qloEAFITeA=="],@@ -13432,8 +13425,6 @@"teeny-request/https-proxy-agent/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],- "template-music-visualization/mediabunny/@types/dom-webcodecs": ["@types/[email protected]", "", {}, "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ=="],-"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/utils": "8.46.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hy+lvYV1lZpVs2jRaEYvgCblZxUoJiPyCemwbQZ+NGulWkQRy0HRPYAoef/CNSzaLt+MLvMptZsHXHlkEilaeg=="],@@ -13644,8 +13635,6 @@"template-recorder/lucide-react/react": ["[email protected]", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="],- "template-recorder/mediabunny/@types/dom-webcodecs": ["@types/[email protected]", "", {}, "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ=="],-"template-recorder/tailwindcss/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "3.3.11", "picocolors": "1.1.1", "source-map-js": "1.2.1" } }, "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ=="],"template-recorder/tailwindcss/resolve": ["[email protected]", "", { "dependencies": { "is-core-module": "2.15.1", "path-parse": "1.0.7", "supports-preserve-symlinks-flag": "1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw=="],@@ -13682,8 +13671,6 @@"template-still/p-limit/yocto-queue": ["[email protected]", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="],- "template-three/mediabunny/@types/dom-webcodecs": ["@types/[email protected]", "", {}, "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ=="],-"template-tts-google/@types/express/@types/serve-static": ["@types/[email protected]", "", { "dependencies": { "@types/mime": "1.3.2", "@types/node": "20.12.14" } }, "sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ=="],"template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],diff --git a/package.json b/package.jsonindex c4b50a24d2..0b5bdaeb4a 100644--- a/package.json+++ b/package.json@@ -101,9 +101,9 @@"@types/node": "20.12.14","@types/web": "0.0.166","@types/bun": "1.3.3",- "mediabunny": "1.34.3",- "@mediabunny/mp3-encoder": "1.34.3",- "@mediabunny/ac3": "1.34.3",+ "mediabunny": "1.34.4",+ "@mediabunny/mp3-encoder": "1.34.4",+ "@mediabunny/ac3": "1.34.4","next": "16.1.5","three": "0.178.0","sharp": "0.34.5",diff --git a/packages/cli/src/extra-packages.ts b/packages/cli/src/extra-packages.tsindex 6d0e839a15..66b29897bd 100644--- a/packages/cli/src/extra-packages.ts+++ b/packages/cli/src/extra-packages.ts@@ -1,6 +1,6 @@export const EXTRA_PACKAGES: Record<string, string> = {zod: '3.22.3',- mediabunny: '1.34.3',+ mediabunny: '1.34.4',};export const EXTRA_PACKAGES_DOCS: Record<string, string> = {diff --git a/packages/docs/docs/mediabunny/version.mdx b/packages/docs/docs/mediabunny/version.mdxindex 9862f36bb5..3cf1ef15c5 100644--- a/packages/docs/docs/mediabunny/version.mdx+++ b/packages/docs/docs/mediabunny/version.mdx@@ -10,7 +10,7 @@ The following package of Remotion is using [Mediabunny](https://mediabunny.dev):- [`@remotion/media`](/docs/media)- [`@remotion/media-utils`](/docs/media-utils)-The current version of Remotion uses version [`1.34.3`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.34.3) of Mediabunny.+The current version of Remotion uses version [`1.34.4`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.34.4) of Mediabunny.If you use Mediabunny as a direct dependency in your project, you can install it with the correct version using:@@ -25,7 +25,7 @@ Note that only from 4.0.355, Mediabunny is not bundled in with Remotion but load| Remotion Version | Mediabunny Version || ---------------- | ------------------ |-| 4.0.424 | 1.34.3 |+| 4.0.424 | 1.34.4 || 4.0.423 | 1.34.2 || 4.0.408 | 1.29.0 || 4.0.399 | 1.27.3 |diff --git a/packages/media/bundle.ts b/packages/media/bundle.tsindex e8e1604e13..1e3c593af1 100644--- a/packages/media/bundle.ts+++ b/packages/media/bundle.ts@@ -17,6 +17,7 @@ const output = await build({'react/jsx-dev-runtime','react-dom','mediabunny',+ '@mediabunny/ac3',],});diff --git a/packages/media/src/index.ts b/packages/media/src/index.tsindex 6bc908ec34..71f3c206b2 100644--- a/packages/media/src/index.ts+++ b/packages/media/src/index.ts@@ -1,3 +1,4 @@+import {registerAc3Decoder} from '@mediabunny/ac3';import {Audio} from './audio/audio';import {Video} from './video/video';/**@@ -15,3 +16,5 @@ export {AudioProps, FallbackHtml5AudioProps} from './audio/props';export {MediaErrorAction} from './on-error';export {FallbackOffthreadVideoProps, VideoProps} from './video/props';export {Audio, Video};++registerAc3Decoder();diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.tsindex b21576ded0..407bf1bdc1 100644--- a/packages/studio-shared/src/package-info.ts+++ b/packages/studio-shared/src/package-info.ts@@ -102,7 +102,7 @@ export const extraPackages: ExtraPackage[] = [},{name: 'mediabunny',- version: '1.34.3',+ version: '1.34.4',description: 'Multimedia library used by Remotion',docsUrl: 'https://www.remotion.dev/docs/mediabunny/version',},diff --git a/packages/template-music-visualization/package.json b/packages/template-music-visualization/package.jsonindex 5f234874d9..ce5c2dedbc 100644--- a/packages/template-music-visualization/package.json+++ b/packages/template-music-visualization/package.json@@ -17,7 +17,7 @@"@remotion/media-utils": "workspace:*","@remotion/google-fonts": "workspace:*","@remotion/zod-types": "workspace:*",- "mediabunny": "1.34.2",+ "mediabunny": "1.34.4","react": "19.2.3","react-dom": "19.2.3","remotion": "workspace:*",diff --git a/packages/template-recorder/package.json b/packages/template-recorder/package.jsonindex 5dcc2134a2..385524e190 100644--- a/packages/template-recorder/package.json+++ b/packages/template-recorder/package.json@@ -39,7 +39,7 @@"connect": "3.7.0","eslint": "9.19.0","lucide-react": "0.516.0",- "mediabunny": "1.34.2",+ "mediabunny": "1.34.4","react": "19.2.3","react-dom": "19.2.3","tailwind-merge": "1.14.0",diff --git a/packages/template-three/package.json b/packages/template-three/package.jsonindex 15921ba08e..ea493d67c9 100644--- a/packages/template-three/package.json+++ b/packages/template-three/package.json@@ -21,7 +21,7 @@"remotion": "workspace:*","three": "0.178.0","zod": "3.22.3",- "mediabunny": "1.34.2"+ "mediabunny": "1.34.4"},"devDependencies": {"@remotion/eslint-config-flat": "workspace:*",diff --git a/packages/web-renderer/bundle.ts b/packages/web-renderer/bundle.tsindex de96a11f74..ed054fb537 100644--- a/packages/web-renderer/bundle.ts+++ b/packages/web-renderer/bundle.ts@@ -5,6 +5,6 @@ await buildPackage({cjs: 'do-nothing',esm: 'build',},- external: ['remotion', 'react', 'react-dom', 'mediabunny', '@mediabunny/ac3'],+ external: ['remotion', 'react', 'react-dom', 'mediabunny'],entrypoints: [{path: 'src/index.ts', target: 'browser'}],});diff --git a/packages/web-renderer/package.json b/packages/web-renderer/package.jsonindex 00c5f4b2c3..f70f19f288 100644--- a/packages/web-renderer/package.json+++ b/packages/web-renderer/package.json@@ -21,8 +21,7 @@"dependencies": {"@remotion/licensing": "workspace:*","remotion": "workspace:*",- "mediabunny": "catalog:",- "@mediabunny/ac3": "catalog:"+ "mediabunny": "catalog:"},"devDependencies": {"@react-three/fiber": "catalog:",