π₯ Make videos programmatically with React
Upgrade Mediabunny to 1.29.0 with .ts support
Jonny Burgerd13a9001c387
diff --git a/bun.lock b/bun.lockindex e78daedfcd..51781cad1d 100644--- a/bun.lock+++ b/bun.lock@@ -2233,7 +2233,7 @@"@aws-sdk/lib-storage": "3.936.0","@aws-sdk/middleware-flexible-checksums": "3.936.0","@aws-sdk/s3-request-presigner": "3.936.0",- "@mediabunny/mp3-encoder": "1.27.3",+ "@mediabunny/mp3-encoder": "1.29.0","@react-three/fiber": "9.2.0","@types/bun": "1.3.3","@types/dom-webcodecs": "0.1.11",@@ -2246,7 +2246,7 @@"@vitejs/plugin-react": "4.1.0","@vitest/browser-playwright": "4.0.9","eslint": "9.19.0",- "mediabunny": "1.27.3",+ "mediabunny": "1.29.0","next": "16.0.10","openai": "4.67.1","playwright": "1.55.1",@@ -3155,7 +3155,7 @@"@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/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-PooSfVayczJFD+N3KDMQmTwPAzcCDN7fKySL1Gn//WKIigWkkxdJui0wCemgb4BiaUY+Bszm8A+kTao1TW7D1w=="],+ "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-CEgaVOG4kxjB5CImqTRLI4QvnE0K++SVegPNFzw1LGijy1UfrRqSLMkuCn+m0B6XzMIxB3SzPHTFcdsLfPVERA=="],"@mediafox/core": ["@mediafox/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.23.0", "typescript": ">=5.0.0" } }, "sha512-1j8PKp835RUVzZt1vcymrgZqhaMobfP7SswbTisusvTgIZL8y5n2QFhSCnn7dze+a53VgnWyzkHOYdtVR1Gdew=="],@@ -5757,7 +5757,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-hlzmgzMznp9DhA5fMJKS5yEAyfCUMxAc+DbSPxD4J1J2cYVl1L+pZLndkt5xLlD5aB5eHEnphHMW14ammMlUXg=="],+ "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-18B8w/rhO/ph/AFsIXvzZg8RaSQZ+ZYfJ99MZlTjDmlgCT58jV3azrnWQ/OSquYDi8q0xmn64mnfTEHgww3+zw=="],"memfs": ["[email protected]", "", { "dependencies": { "fs-monkey": "1.0.3" } }, "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg=="],@@ -9559,6 +9559,8 @@"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-hlzmgzMznp9DhA5fMJKS5yEAyfCUMxAc+DbSPxD4J1J2cYVl1L+pZLndkt5xLlD5aB5eHEnphHMW14ammMlUXg=="],+"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=="],@@ -9647,6 +9649,8 @@"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-hlzmgzMznp9DhA5fMJKS5yEAyfCUMxAc+DbSPxD4J1J2cYVl1L+pZLndkt5xLlD5aB5eHEnphHMW14ammMlUXg=="],+"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=="],@@ -9667,6 +9671,8 @@"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-hlzmgzMznp9DhA5fMJKS5yEAyfCUMxAc+DbSPxD4J1J2cYVl1L+pZLndkt5xLlD5aB5eHEnphHMW14ammMlUXg=="],+"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=="],@@ -11759,6 +11765,8 @@"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=="],@@ -11967,6 +11975,8 @@"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=="],@@ -12003,6 +12013,8 @@"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=="],"terser-webpack-plugin/@swc/core/@swc/core-darwin-arm64": ["@swc/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TIus1/SE/Ud4g84hCnchcagu+LfyndSDy5r5qf64nflojejDidPU9Fp1InzQhQpEgIpntnZID/KFCP5rQnvsIw=="],diff --git a/package.json b/package.jsonindex e4949a8052..d84b2da94b 100644--- a/package.json+++ b/package.json@@ -98,8 +98,8 @@"@types/node": "20.12.14","@types/web": "0.0.166","@types/bun": "1.3.3",- "mediabunny": "1.27.3",- "@mediabunny/mp3-encoder": "1.27.3",+ "mediabunny": "1.29.0",+ "@mediabunny/mp3-encoder": "1.29.0","next": "16.0.10","three": "0.178.0","sharp": "0.34.5",diff --git a/packages/docs/docs/mediabunny/formats.mdx b/packages/docs/docs/mediabunny/formats.mdxindex 76a257f6d9..9e21de5f5c 100644--- a/packages/docs/docs/mediabunny/formats.mdx+++ b/packages/docs/docs/mediabunny/formats.mdx@@ -24,6 +24,7 @@ Mediabunny's compatibility data is mirrored on this page.- WAVE (`.wav`)- ADTS (`.aac`)- FLAC (`.flac`)+- MPEG Transport Stream (`.ts`)## Video codecs@@ -65,32 +66,32 @@ This means that during rendering of Remotion videos server-side, HEVC videos canNot all codecs can be used with all containers. The following table specifies the supported codec-container combinations:-| | .mp4 | .mov | .mkv | .webm | .ogg | .mp3 | .wav | .aac | .flac |-| :-----------: | :--: | :--: | :--: | :---: | :--: | :--: | :--: | :--: | :---: |-| `'avc'` | β | β | β | | | | | | |-| `'hevc'` | β | β | β | | | | | | |-| `'vp8'` | β | β | β | β | | | | | |-| `'vp9'` | β | β | β | β | | | | | |-| `'av1'` | β | β | β | β | | | | | |-| `'aac'` | β | β | β | | | | | β | |-| `'opus'` | β | β | β | β | β | | | | |-| `'mp3'` | β | β | β | | | β | | | |-| `'vorbis'` | β | β | β | β | β | | | | |-| `'flac'` | β | β | β | | | | | | β |-| `'pcm-u8'` | | β | β | | | | β | | |-| `'pcm-s8'` | | β | | | | | | | |-| `'pcm-s16'` | β | β | β | | | | β | | |-| `'pcm-s16be'` | β | β | β | | | | | | |-| `'pcm-s24'` | β | β | β | | | | β | | |-| `'pcm-s24be'` | β | β | β | | | | | | |-| `'pcm-s32'` | β | β | β | | | | β | | |-| `'pcm-s32be'` | β | β | β | | | | | | |-| `'pcm-f32'` | β | β | β | | | | β | | |-| `'pcm-f32be'` | β | β | | | | | | | |-| `'pcm-f64'` | β | β | β | | | | | | |-| `'pcm-f64be'` | β | β | | | | | | | |-| `'ulaw'` | | β | | | | | β | | |-| `'alaw'` | | β | | | | | β | | |+| | .mp4 | .mov | .mkv | .webm | .ogg | .mp3 | .wav | .aac | .flac | .ts |+| :-----------: | :--: | :--: | :--: | :---: | :--: | :--: | :--: | :--: | :---: | :--: |+| `'avc'` | β | β | β | | | | | | | β |+| `'hevc'` | β | β | β | | | | | | | β |+| `'vp8'` | β | β | β | β | | | | | | β |+| `'vp9'` | β | β | β | β | | | | | | β |+| `'av1'` | β | β | β | β | | | | | | β |+| `'aac'` | β | β | β | | | | | β | | β |+| `'opus'` | β | β | β | β | β | | | | | β |+| `'mp3'` | β | β | β | | | β | | | | β |+| `'vorbis'` | β | β | β | β | β | | | | | β |+| `'flac'` | β | β | β | | | | | | β | β |+| `'pcm-u8'` | | β | β | | | | β | | | |+| `'pcm-s8'` | | β | | | | | | | | |+| `'pcm-s16'` | β | β | β | | | | β | | | |+| `'pcm-s16be'` | β | β | β | | | | | | | |+| `'pcm-s24'` | β | β | β | | | | β | | | |+| `'pcm-s24be'` | β | β | β | | | | | | | |+| `'pcm-s32'` | β | β | β | | | | β | | | |+| `'pcm-s32be'` | β | β | β | | | | | | | |+| `'pcm-f32'` | β | β | β | | | | β | | | |+| `'pcm-f32be'` | β | β | | | | | | | | |+| `'pcm-f64'` | β | β | β | | | | | | | |+| `'pcm-f64be'` | β | β | | | | | | | | |+| `'ulaw'` | | β | | | | | β | | | |+| `'alaw'` | | β | | | | | β | | | |## CORSdiff --git a/packages/docs/docs/mediabunny/index.mdx b/packages/docs/docs/mediabunny/index.mdxindex c557421b02..2daba91bd5 100644--- a/packages/docs/docs/mediabunny/index.mdx+++ b/packages/docs/docs/mediabunny/index.mdx@@ -23,7 +23,7 @@ Here are some notable ones:**Features exclusive to Media Parser**:-- `.ts`, `.m3u8`, and `.avi` container support+- `.m3u8` and `.avi` container support- Foreign file probing**Features exclusive to Mediabunny**:diff --git a/packages/docs/docs/mediabunny/version.mdx b/packages/docs/docs/mediabunny/version.mdxindex c3b6a7a5ad..698ccb803c 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.27.3`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.27.3) of Mediabunny.+The current version of Remotion uses version [`1.29.0`](https://github.com/Vanilagy/mediabunny/releases/tag/v1.29.0) of Mediabunny.If you use Mediabunny as a direct dependency in your project, you can use this version number to not have two versions of Mediabunny installed.@@ -21,6 +21,7 @@ Note that only from 4.0.355, Mediabunny is not bundled in with Remotion but load| Remotion Version | Mediabunny Version || ---------------- | ------------------ |+| 4.0.408 | 1.29.0 || 4.0.399 | 1.27.3 || 4.0.394 | 1.27.2 || 4.0.393 | 1.27.0 |