Skip to content

🎥 Make videos programmatically with React

v4.0.223

Jonny Burgerd3e12dbd9ce7
diff --git a/packages/ai-improvements/package.json b/packages/ai-improvements/package.json
index 0d563c0193..bdd4772f9a 100644
--- a/packages/ai-improvements/package.json
+++ b/packages/ai-improvements/package.json
@@ -7,5 +7,5 @@
"openai": "4.67.1"
},
"private": true,
- "version": "4.0.222"
+ "version": "4.0.223"
}
diff --git a/packages/animated-emoji/package.json b/packages/animated-emoji/package.json
index 8e83de9b51..a70822c786 100644
--- a/packages/animated-emoji/package.json
+++ b/packages/animated-emoji/package.json
@@ -1,6 +1,6 @@
{
"name": "@remotion/animated-emoji",
- "version": "4.0.222",
+ "version": "4.0.223",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
"module": "dist/esm/index.mjs",
diff --git a/packages/animation-utils/package.json b/packages/animation-utils/package.json
index 41074ff584..d196579bff 100644
--- a/packages/animation-utils/package.json
+++ b/packages/animation-utils/package.json
@@ -7,7 +7,7 @@
"name": "Chetan Karwa",
"email": "[email protected]"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Helpers for animating CSS properties",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/astro-example/package.json b/packages/astro-example/package.json
index 20a24d3d51..9441f977c3 100644
--- a/packages/astro-example/package.json
+++ b/packages/astro-example/package.json
@@ -5,7 +5,7 @@
"name": "@remotion/astro-example",
"private": true,
"type": "module",
- "version": "4.0.222",
+ "version": "4.0.223",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
diff --git a/packages/babel-loader/package.json b/packages/babel-loader/package.json
index 4be412cbff..62ac3c3e10 100644
--- a/packages/babel-loader/package.json
+++ b/packages/babel-loader/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/babel-loader"
},
"name": "@remotion/babel-loader",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Babel loader for Remotion",
"main": "dist/index.js",
"scripts": {
diff --git a/packages/bugs/package.json b/packages/bugs/package.json
index d00c071227..50839b7b96 100644
--- a/packages/bugs/package.json
+++ b/packages/bugs/package.json
@@ -4,5 +4,5 @@
},
"name": "bugs",
"private": true,
- "version": "4.0.222"
+ "version": "4.0.223"
}
diff --git a/packages/bundler/package.json b/packages/bundler/package.json
index 7b70fbb43e..700b967486 100644
--- a/packages/bundler/package.json
+++ b/packages/bundler/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
},
"name": "@remotion/bundler",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Bundle Remotion compositions using Webpack",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/captions/package.json b/packages/captions/package.json
index bbcaf886e7..86004f1384 100644
--- a/packages/captions/package.json
+++ b/packages/captions/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/captions"
},
"name": "@remotion/captions",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Primitives for dealing with captions",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/cli-autocomplete/package.json b/packages/cli-autocomplete/package.json
index 4c57be5a20..594161e430 100644
--- a/packages/cli-autocomplete/package.json
+++ b/packages/cli-autocomplete/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli-autocomplete"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/fig-autocomplete",
"private": true,
"devDependencies": {
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 40820c04ed..15fce4922f 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
},
"name": "@remotion/cli",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Control Remotion features using the `npx remotion` command",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/cloudrun/container/ensure-browser.mjs b/packages/cloudrun/container/ensure-browser.mjs
index e385c892d1..7e5982b235 100644
--- a/packages/cloudrun/container/ensure-browser.mjs
+++ b/packages/cloudrun/container/ensure-browser.mjs
@@ -2887,6 +2887,7 @@ var downloadFileWithoutRetries = ({ onProgress, url, to: toFn }) => {
}, 20000);
};
refreshTimeout();
+ let finishEventSent = false;
readFile(url).then((res) => {
const contentDisposition = res.headers["content-disposition"] ?? null;
const contentType = res.headers["content-type"] ?? null;
@@ -2900,11 +2901,13 @@ var downloadFileWithoutRetries = ({ onProgress, url, to: toFn }) => {
if (rejected) {
return;
}
- onProgress?.({
- downloaded,
- percent: 1,
- totalSize: downloaded
- });
+ if (!finishEventSent) {
+ onProgress?.({
+ downloaded,
+ percent: 1,
+ totalSize: downloaded
+ });
+ }
refreshTimeout();
return resolveAndFlag({ sizeInBytes: downloaded, to });
});
@@ -2915,11 +2918,15 @@ var downloadFileWithoutRetries = ({ onProgress, url, to: toFn }) => {
refreshTimeout();
downloaded += d.length;
refreshTimeout();
+ const percent = totalSize === null ? null : downloaded / totalSize;
onProgress?.({
downloaded,
- percent: totalSize === null ? null : downloaded / totalSize,
+ percent,
totalSize
});
+ if (percent === 1) {
+ finishEventSent = true;
+ }
});
res.on("close", () => {
if (totalSize !== null && downloaded !== totalSize) {
@@ -3164,7 +3171,7 @@ var defaultBrowserDownloadProgress = ({
let lastProgress = 0;
return {
onProgress: (progress) => {
- if (progress.downloadedBytes > lastProgress + 1e7) {
+ if (progress.downloadedBytes > lastProgress + 1e7 || progress.percent === 1) {
lastProgress = progress.downloadedBytes;
Log.info({ indent, logLevel }, `Downloading Chrome Headless Shell - ${toMegabytes(progress.downloadedBytes)}/${toMegabytes(progress.totalSizeInBytes)}`);
}
@@ -3188,7 +3195,8 @@ var getLocalBrowser = () => {
};
// src/ensure-browser.ts
-var internalEnsureBrowser = async ({
+var currentEnsureBrowserOperation = Promise.resolve();
+var internalEnsureBrowserUncapped = async ({
indent,
logLevel,
browserExecutable,
@@ -3202,6 +3210,10 @@ var internalEnsureBrowser = async ({
const newStatus = getBrowserStatus(browserExecutable);
return newStatus;
};
+var internalEnsureBrowser = (options) => {
+ currentEnsureBrowserOperation = currentEnsureBrowserOperation.then(() => internalEnsureBrowserUncapped(options));
+ return currentEnsureBrowserOperation;
+};
var getBrowserStatus = (browserExecutable) => {
if (browserExecutable) {
if (!fs5.existsSync(browserExecutable)) {
diff --git a/packages/cloudrun/container/package.json b/packages/cloudrun/container/package.json
index b7db6971d7..aa170a3a8d 100644
--- a/packages/cloudrun/container/package.json
+++ b/packages/cloudrun/container/package.json
@@ -1,6 +1,6 @@
{
"name": "cloud-run-render",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Render media and stills on GCP Cloud Run",
"main": "dist/index.js",
"scripts": {
diff --git a/packages/cloudrun/package.json b/packages/cloudrun/package.json
index 58083e4596..b9332c1701 100644
--- a/packages/cloudrun/package.json
+++ b/packages/cloudrun/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
},
"name": "@remotion/cloudrun",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Render Remotion videos on Google Cloud Run",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/compositor-darwin-arm64/package.json b/packages/compositor-darwin-arm64/package.json
index d5fe3fcbf6..c7506d87b4 100644
--- a/packages/compositor-darwin-arm64/package.json
+++ b/packages/compositor-darwin-arm64/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-darwin-arm64"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-darwin-arm64",
"os": [
"darwin"
diff --git a/packages/compositor-darwin-x64/package.json b/packages/compositor-darwin-x64/package.json
index cab798f07c..12c8fc7621 100644
--- a/packages/compositor-darwin-x64/package.json
+++ b/packages/compositor-darwin-x64/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-darwin-x64"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-darwin-x64",
"os": [
"darwin"
diff --git a/packages/compositor-linux-arm64-gnu/package.json b/packages/compositor-linux-arm64-gnu/package.json
index 0d855088d5..4a75661290 100644
--- a/packages/compositor-linux-arm64-gnu/package.json
+++ b/packages/compositor-linux-arm64-gnu/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-linux-arm64-gnu"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-linux-arm64-gnu",
"os": [
"linux"
diff --git a/packages/compositor-linux-arm64-musl/package.json b/packages/compositor-linux-arm64-musl/package.json
index 9cca25f2e6..f7451b1db6 100644
--- a/packages/compositor-linux-arm64-musl/package.json
+++ b/packages/compositor-linux-arm64-musl/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-linux-arm64-musl"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-linux-arm64-musl",
"os": [
"linux"
diff --git a/packages/compositor-linux-x64-gnu/package.json b/packages/compositor-linux-x64-gnu/package.json
index a48039ec28..ee8a249cb6 100644
--- a/packages/compositor-linux-x64-gnu/package.json
+++ b/packages/compositor-linux-x64-gnu/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-linux-x64-gnu"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-linux-x64-gnu",
"os": [
"linux"
diff --git a/packages/compositor-linux-x64-musl/package.json b/packages/compositor-linux-x64-musl/package.json
index a4f412aec4..2de2e0f124 100644
--- a/packages/compositor-linux-x64-musl/package.json
+++ b/packages/compositor-linux-x64-musl/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-linux-x64-musl"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-linux-x64-musl",
"os": [
"linux"
diff --git a/packages/compositor-win32-x64-msvc/package.json b/packages/compositor-win32-x64-msvc/package.json
index f1dac797a4..2436063a99 100644
--- a/packages/compositor-win32-x64-msvc/package.json
+++ b/packages/compositor-win32-x64-msvc/package.json
@@ -2,7 +2,7 @@
"repository": {
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/compositor-win32-x64-msvc"
},
- "version": "4.0.222",
+ "version": "4.0.223",
"name": "@remotion/compositor-win32-x64-msvc",
"os": [
"win32"
diff --git a/packages/convert/package.json b/packages/convert/package.json
index 9132535164..dcdb2d55da 100644
--- a/packages/convert/package.json
+++ b/packages/convert/package.json
@@ -1,6 +1,6 @@
{
"name": "@remotion/convert",
- "version": "4.0.222",
+ "version": "4.0.223",
"private": true,
"sideEffects": false,
"type": "module",
diff --git a/packages/core/package.json b/packages/core/package.json
index c85cf449f1..e12c97f756 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
},
"name": "remotion",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Make videos programmatically",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/core/src/version.ts b/packages/core/src/version.ts
index 2ead073b67..12791ead05 100644
--- a/packages/core/src/version.ts
+++ b/packages/core/src/version.ts
@@ -5,4 +5,4 @@
* @see [Documentation](https://remotion.dev/docs/version)
* @returns {string} The current version of the remotion package
*/
-export const VERSION = '4.0.222';
+export const VERSION = '4.0.223';
diff --git a/packages/create-video/package.json b/packages/create-video/package.json
index fd33f62852..2c52452185 100644
--- a/packages/create-video/package.json
+++ b/packages/create-video/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/create-video"
},
"name": "create-video",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Create a new Remotion project",
"main": "dist/index.js",
"bin": {
diff --git a/packages/discord-poster/package.json b/packages/discord-poster/package.json
index 09b0f5ef0b..a1a5733695 100644
--- a/packages/discord-poster/package.json
+++ b/packages/discord-poster/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/discord-poster"
},
"name": "@remotion/discord-poster",
- "version": "4.0.222",
+ "version": "4.0.223",
"license": "SEE LICENSE IN LICENSE.md",
"type": "module",
"scripts": {
diff --git a/packages/docs/package.json b/packages/docs/package.json
index f9258bc941..051ec60d7c 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/docs"
},
"name": "docs",
- "version": "4.0.222",
+ "version": "4.0.223",
"private": true,
"scripts": {
"formatting": "prettier src --check",
diff --git a/packages/docusaurus-plugin/package.json b/packages/docusaurus-plugin/package.json
index 2eae592e64..e439094fd0 100644
--- a/packages/docusaurus-plugin/package.json
+++ b/packages/docusaurus-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@remotion/docusaurus-plugin",
- "version": "4.0.222",
+ "version": "4.0.223",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
diff --git a/packages/enable-scss/package.json b/packages/enable-scss/package.json
index 116d6bff9b..d8c18422e1 100644
--- a/packages/enable-scss/package.json
+++ b/packages/enable-scss/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/enable-scss"
},
"name": "@remotion/enable-scss",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Enable SCSS support in Remotion",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json
index f4fd554c05..eb3cbf34d6 100644
--- a/packages/eslint-config/package.json
+++ b/packages/eslint-config/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-config"
},
"name": "@remotion/eslint-config",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Default configuration for Remotion templates",
"main": "dist/index.js",
"files": [
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json
index 05b7207376..a00b39741e 100644
--- a/packages/eslint-plugin/package.json
+++ b/packages/eslint-plugin/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-plugin"
},
"name": "@remotion/eslint-plugin",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Rules for writing Remotion code",
"scripts": {
"test": "vitest --run"
diff --git a/packages/example-without-zod/package.json b/packages/example-without-zod/package.json
index 2b32e8fd15..68b6d91af9 100644
--- a/packages/example-without-zod/package.json
+++ b/packages/example-without-zod/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/example-without-zod",
"private": true,
- "version": "4.0.222",
+ "version": "4.0.223",
"license": "SEE LICENSE IN LICENSE.md",
"author": "Jonny Burger",
"main": "dist/index.js",
diff --git a/packages/example/package.json b/packages/example/package.json
index b9919e5843..02bd85b07f 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/example",
"private": true,
- "version": "4.0.222",
+ "version": "4.0.223",
"license": "SEE LICENSE IN LICENSE.md",
"author": "Jonny Burger",
"main": "dist/index.js",
diff --git a/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx b/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
index 27e858424b..78f08ddd03 100644
--- a/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
+++ b/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
@@ -1,5 +1,5 @@
import {getVideoMetadata} from '@remotion/media-utils';
-import {CalculateMetadataFunction, OffthreadVideo} from 'remotion';
+import {CalculateMetadataFunction, Loop, OffthreadVideo} from 'remotion';
type Props = {
src: string;
@@ -16,13 +16,29 @@ export const calculateMetadataFn: CalculateMetadataFunction<Props> = async ({
return {
durationInFrames: Math.round(durationInSeconds * fps),
fps,
- width,
+ width: width * 2,
height,
};
};
+export const LoopedOffthreadVideo: React.FC<{
+ durationInFrames: number;
+ src: string;
+ muted?: boolean;
+}> = ({durationInFrames, src}) => {
+ if (durationInFrames <= 0) {
+ throw new Error('durationInFrames must be greater than 0');
+ }
+
+ return (
+ <Loop durationInFrames={durationInFrames}>
+ <OffthreadVideo muted src={src} />
+ </Loop>
+ );
+};
+
export const OffthreadRemoteVideo: React.FC<{
src: string;
}> = ({src}) => {
- return <OffthreadVideo src={src} />;
+ return <LoopedOffthreadVideo durationInFrames={100} src={src} />;
};
diff --git a/packages/fonts/package.json b/packages/fonts/package.json
index 69d362740d..35655a7141 100644
--- a/packages/fonts/package.json
+++ b/packages/fonts/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/fonts"
},
"name": "@remotion/fonts",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Helpers for loading local fonts into Remotion",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/gif/package.json b/packages/gif/package.json
index b8f6ff4bad..045ae5dff2 100644
--- a/packages/gif/package.json
+++ b/packages/gif/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/gif"
},
"name": "@remotion/gif",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Embed GIFs in a Remotion video",
"sideEffects": false,
"bugs": {
diff --git a/packages/google-fonts/package.json b/packages/google-fonts/package.json
index f4b15d6676..0a52d450f2 100644
--- a/packages/google-fonts/package.json
+++ b/packages/google-fonts/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/google-fonts"
},
"name": "@remotion/google-fonts",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Use Google Fonts in Remotion",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.mjs",
diff --git a/packages/install-whisper-cpp/package.json b/packages/install-whisper-cpp/package.json
index bbab56a7e0..6c8fbc33ac 100644
--- a/packages/install-whisper-cpp/package.json
+++ b/packages/install-whisper-cpp/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/install-whisper-cpp"
},
"name": "@remotion/install-whisper-cpp",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Helpers for installing and using Whisper.cpp",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/it-tests/package.json b/packages/it-tests/package.json
index 7c2df4067c..39a7c49c0e 100644
--- a/packages/it-tests/package.json
+++ b/packages/it-tests/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/it-tests"
},
"name": "@remotion/it-tests",
- "version": "4.0.222",
+ "version": "4.0.223",
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"test": "bun test src/rendering --run",
diff --git a/packages/lambda-go-example/package.json b/packages/lambda-go-example/package.json
index 34dc5f8bde..6740f1c331 100644
--- a/packages/lambda-go-example/package.json
+++ b/packages/lambda-go-example/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/lambda-go-example",
"private": true,
- "version": "4.0.222",
+ "version": "4.0.223",
"scripts": {
"lint": "node build.mjs"
}
diff --git a/packages/lambda-go/package.json b/packages/lambda-go/package.json
index dfa7bba089..b5511ad1d4 100644
--- a/packages/lambda-go/package.json
+++ b/packages/lambda-go/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/lambda-go",
"private": true,
- "version": "4.0.222",
+ "version": "4.0.223",
"scripts": {
"lint": "node build.mjs",
"publishprivate": "node publish.mjs"
diff --git a/packages/lambda-go/version.go b/packages/lambda-go/version.go
index d1a3afa661..8b1c56efa9 100644
--- a/packages/lambda-go/version.go
+++ b/packages/lambda-go/version.go
@@ -1,3 +1,3 @@
package lambda_go_sdk;
-const VERSION = "4.0.222"
\ No newline at end of file
+const VERSION = "4.0.223"
\ No newline at end of file
diff --git a/packages/lambda-php-example/composer.json b/packages/lambda-php-example/composer.json
index 7844feb776..36f0b5a63f 100644
--- a/packages/lambda-php-example/composer.json
+++ b/packages/lambda-php-example/composer.json
@@ -19,6 +19,6 @@
],
"require": {
"vlucas/phpdotenv": "^5.5",
- "remotion/lambda": "4.0.222"
+ "remotion/lambda": "4.0.223"
}
}
diff --git a/packages/lambda-php/.phpunit.result.cache b/packages/lambda-php/.phpunit.result.cache
index 4c62433473..483ed39deb 100644
--- a/packages/lambda-php/.phpunit.result.cache
+++ b/packages/lambda-php/.phpunit.result.cache
@@ -1 +1 @@
-{"version":1,"defects":{"Remotion\\LambdaPhp\\Tests\\PHPClientTest::testClient":5},"times":{"Remotion\\LambdaPhp\\Tests\\PHPClientTest::testClient":0.036,"Remotion\\LambdaPhp\\Tests\\PHPRenderProgressTest::testClient":0.018}}
\ No newline at end of file
+{"version":1,"defects":{"Remotion\\LambdaPhp\\Tests\\PHPClientTest::testClient":5},"times":{"Remotion\\LambdaPhp\\Tests\\PHPClientTest::testClient":0.042,"Remotion\\LambdaPhp\\Tests\\PHPRenderProgressTest::testClient":0.019}}
\ No newline at end of file
diff --git a/packages/lambda-php/composer.json b/packages/lambda-php/composer.json
index 72c3d92be6..146aaee056 100644
--- a/packages/lambda-php/composer.json
+++ b/packages/lambda-php/composer.json
@@ -1,7 +1,7 @@
{
"name": "remotion/lambda",
"type": "library",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "A PHP library for working with Remotion Lambda",
"license": "proprietary",
"autoload": {
diff --git a/packages/lambda-php/package.json b/packages/lambda-php/package.json
index 4323c18e78..7a996d9783 100644
--- a/packages/lambda-php/package.json
+++ b/packages/lambda-php/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/lambda-php",
"private": true,
- "version": "4.0.222",
+ "version": "4.0.223",
"scripts": {
"lint": "node build.mjs",
"publishprivate": "node publish.mjs"
diff --git a/packages/lambda-php/src/Semantic.php b/packages/lambda-php/src/Semantic.php
index 22eda7efd2..20595e779d 100644
--- a/packages/lambda-php/src/Semantic.php
+++ b/packages/lambda-php/src/Semantic.php
@@ -4,5 +4,5 @@ namespace Remotion\LambdaPhp;
class Semantic
{
- public const VERSION = "4.0.222";
+ public const VERSION = "4.0.223";
}
\ No newline at end of file
diff --git a/packages/lambda-python/package.json b/packages/lambda-python/package.json
index d161422936..c76ffa72f3 100644
--- a/packages/lambda-python/package.json
+++ b/packages/lambda-python/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/lambda-python",
"private": true,
- "version": "4.0.222",
+ "version": "4.0.223",
"scripts": {
"lint": "node build.mjs",
"publishprivate": "node publish.mjs"
diff --git a/packages/lambda-python/remotion_lambda/version.py b/packages/lambda-python/remotion_lambda/version.py
index 091392082f..74d50e40bf 100644
--- a/packages/lambda-python/remotion_lambda/version.py
+++ b/packages/lambda-python/remotion_lambda/version.py
@@ -1,2 +1,2 @@
# pylint: disable=missing-module-docstring, missing-final-newline
-VERSION = "4.0.222"
\ No newline at end of file
+VERSION = "4.0.223"
\ No newline at end of file
diff --git a/packages/lambda/package.json b/packages/lambda/package.json
index b6010e75bb..5a99145af6 100644
--- a/packages/lambda/package.json
+++ b/packages/lambda/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
},
"name": "@remotion/lambda",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Render Remotion videos on AWS Lambda",
"main": "dist/index.js",
"sideEffects": false,
@@ -13,7 +13,7 @@
"lint": "eslint src --ext ts,tsx",
"test": "vitest src/test/unit --run",
"make": "bun build.ts",
- "prepublishOnly": "bun src/admin/bundle-lambda.ts && bun ensure-version-match.js"
+ "prepublishOnly": "bun build.ts && bun ensure-version-match.js"
},
"author": "Jonny Burger <[email protected]>",
"license": "MIT",
diff --git a/packages/layout-utils/package.json b/packages/layout-utils/package.json
index ec45420805..ca77a79752 100644
--- a/packages/layout-utils/package.json
+++ b/packages/layout-utils/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/layout-utils"
},
"name": "@remotion/layout-utils",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Utilities for working with layouts",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/lottie/package.json b/packages/lottie/package.json
index 7b2d90b83f..e1591fe259 100644
--- a/packages/lottie/package.json
+++ b/packages/lottie/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lottie"
},
"name": "@remotion/lottie",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Include Lottie animations in Remotion",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/media-parser/package.json b/packages/media-parser/package.json
index efc68aa6a9..4f959118ae 100644
--- a/packages/media-parser/package.json
+++ b/packages/media-parser/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-parser"
},
"name": "@remotion/media-parser",
- "version": "4.0.222",
+ "version": "4.0.223",
"main": "dist/index.js",
"sideEffects": false,
"scripts": {
diff --git a/packages/media-utils/package.json b/packages/media-utils/package.json
index 463e702842..0fcfdba593 100644
--- a/packages/media-utils/package.json
+++ b/packages/media-utils/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
},
"name": "@remotion/media-utils",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Utilities for working with media files",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/motion-blur/package.json b/packages/motion-blur/package.json
index 1c234ea812..f86c343f46 100644
--- a/packages/motion-blur/package.json
+++ b/packages/motion-blur/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/motion-blur"
},
"name": "@remotion/motion-blur",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Motion blur effect for Remotion",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/noise/package.json b/packages/noise/package.json
index 9ff0c77559..e8b6b8e001 100644
--- a/packages/noise/package.json
+++ b/packages/noise/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/noise"
},
"name": "@remotion/noise",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Noise generation functions",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/openai-whisper/package.json b/packages/openai-whisper/package.json
index 95e962b5f1..2dde702ba5 100644
--- a/packages/openai-whisper/package.json
+++ b/packages/openai-whisper/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/openai-whisper"
},
"name": "@remotion/openai-whisper",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Work with the output of the OpenAI Whisper API",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/paths/package.json b/packages/paths/package.json
index dc671e0700..eabb3e8db2 100644
--- a/packages/paths/package.json
+++ b/packages/paths/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/paths"
},
"name": "@remotion/paths",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Utilities for working with SVG paths",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/player-example/package.json b/packages/player-example/package.json
index 541f498902..86fddadec5 100644
--- a/packages/player-example/package.json
+++ b/packages/player-example/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/player-example"
},
"name": "@remotion/player-example",
- "version": "4.0.222",
+ "version": "4.0.223",
"private": true,
"author": "Jonny Burger <[email protected]>",
"maintainers": [
diff --git a/packages/player-example/pages/index.tsx b/packages/player-example/pages/index.tsx
index 1cef9def2c..12787156ea 100644
--- a/packages/player-example/pages/index.tsx
+++ b/packages/player-example/pages/index.tsx
@@ -1,11 +1,9 @@
import {Thumbnail} from '@remotion/player';
import React from 'react';
import App from '../src/App';
-import {NativeBufferState} from '../src/BufferState';
import CarSlideshow from '../src/CarSlideshow';
import {FontPicker} from '../src/FontPicker';
import {ThumbnailDemo} from '../src/ThumbnailDemo';
-import {VideoautoplayDemo} from '../src/VideoAutoplay';
function Index() {
return (
@@ -20,8 +18,6 @@ function Index() {
}}
>
<App component={CarSlideshow} durationInFrames={500} />
- <App component={VideoautoplayDemo} durationInFrames={2700} />
- <App component={NativeBufferState} durationInFrames={2700} />
</div>
<h2>Thumbnail</h2>
<Thumbnail
diff --git a/packages/player-example/src/App.tsx b/packages/player-example/src/App.tsx
index aae7e21956..5a19c8b6d5 100644
--- a/packages/player-example/src/App.tsx
+++ b/packages/player-example/src/App.tsx
@@ -633,7 +633,6 @@ const PlayerOnly: React.FC<
playbackRate={playbackRate}
spaceKeyToPlayOrPause={spaceKeyToPlayOrPause}
moveToBeginningWhenEnded={moveToBeginningWhenEnded}
- renderPoster={renderPoster}
initialFrame={30}
showPosterWhenUnplayed={showPosterWhenUnplayed}
showPosterWhenEnded={showPosterWhenEnded}
diff --git a/packages/player-example/src/CarSlideshow.tsx b/packages/player-example/src/CarSlideshow.tsx
index c78b375488..bf55e0914f 100644
--- a/packages/player-example/src/CarSlideshow.tsx
+++ b/packages/player-example/src/CarSlideshow.tsx
@@ -1,91 +1,22 @@
-import {createRef, useCallback, useImperativeHandle, useState} from 'react';
-import {
- Experimental,
- Img,
- Sequence,
- Video,
- interpolate,
- staticFile,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-
-type Props = {
- title: string;
- bgColor: string;
- color: string;
-};
-
-export const playerExampleComp = createRef<{
- triggerError: () => void;
-}>();
-
-const CarSlideshow = ({title, bgColor, color}: Props) => {
- const frame = useCurrentFrame();
- const {width, height, durationInFrames} = useVideoConfig();
- const left = interpolate(frame, [0, durationInFrames], [width, width * -1]);
-
- const [shouldThrowError, setThrowError] = useState(false);
-
- const dummyText = useCallback(() => {
- if (shouldThrowError) {
- throw new Error('some error');
- }
- return '';
- }, [shouldThrowError]);
-
- useImperativeHandle(playerExampleComp, () => {
- return {
- triggerError: () => {
- setThrowError(true);
- },
- };
- }, []);
-
+import {OffthreadVideo, Sequence} from 'remotion';
+export default () => {
return (
- <div
- style={{
- backgroundColor: bgColor,
- width,
- height,
- position: 'absolute',
- left: 0,
- top: 0,
- }}
- >
- <Experimental.Clipper height={100} width={100} x={0} y={0} />
- <Sequence>
- <h1
- style={{
- fontSize: '5em',
- fontWeight: 'bold',
- position: 'absolute',
- top: height / 2 - 100,
- left,
- color,
- whiteSpace: 'nowrap',
- }}
- >
- {title} {dummyText()}
- </h1>
+ <>
+ <Sequence durationInFrames={60}>
+ <OffthreadVideo src="https://mdn.alipayobjects.com/wealth_community_transfer/afts/file/LRxrRISozEgAAAAAAAAAAAAAK5gwAQBr" />
+ </Sequence>
+ <Sequence from={60} durationInFrames={60}>
+ <OffthreadVideo src="https://mdn.alipayobjects.com/wealth_community_transfer/afts/file/8NU2RoAFknYAAAAAAAAAAAAAK5gwAQBr" />
+ </Sequence>
+ <Sequence from={120} durationInFrames={60}>
+ <OffthreadVideo src="https://mdn.alipayobjects.com/wealth_community_transfer/afts/file/KjsmSYP8egYAAAAAAAAAAAAAK5gwAQBr" />
+ </Sequence>
+ <Sequence from={180} durationInFrames={60}>
+ <OffthreadVideo src="https://mdn.alipayobjects.com/wealth_community_transfer/afts/file/Z6VTRL_2HIAAAAAAAAAAAAAAK5gwAQBr" />
</Sequence>
- <Img
- src={staticFile('/logo.png')}
- style={{
- height: 40,
- width: 40,
- }}
- />
- <Sequence from={10}>
- <Video
- style={{
- height: 200,
- }}
- src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
- />
+ <Sequence from={240} durationInFrames={60}>
+ <OffthreadVideo src="https://mdn.alipayobjects.com/wealth_community_transfer/afts/file/gqnqQ5rlWesAAAAAAAAAAAAAK5gwAQBr" />
</Sequence>
- </div>
+ </>
);
};
-
-export default CarSlideshow;
diff --git a/packages/player/package.json b/packages/player/package.json
index e452520735..a063760cc9 100644
--- a/packages/player/package.json
+++ b/packages/player/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/player"
},
"name": "@remotion/player",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "React component for embedding a Remotion preview into your app",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/preload/package.json b/packages/preload/package.json
index 32ba9f0d66..d701a14c06 100644
--- a/packages/preload/package.json
+++ b/packages/preload/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/preload"
},
"name": "@remotion/preload",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Preloads assets for use in Remotion",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/packages/renderer/package.json b/packages/renderer/package.json
index cd2784dd20..b95a079f1c 100644
--- a/packages/renderer/package.json
+++ b/packages/renderer/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
},
"name": "@remotion/renderer",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Render Remotion videos using Node.js or Bun",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/packages/rive/package.json b/packages/rive/package.json
index 34c4713300..4a1ed409d2 100644
--- a/packages/rive/package.json
+++ b/packages/rive/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/rive"
},
"name": "@remotion/rive",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Embed Rive animations in a Remotion video",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/serverless/package.json b/packages/serverless/package.json
index 54bf381b23..827069a2c0 100644
--- a/packages/serverless/package.json
+++ b/packages/serverless/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/serverless"
},
"name": "@remotion/serverless",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "A runtime for distributed rendering",
"main": "dist",
"sideEffects": false,
diff --git a/packages/shapes/package.json b/packages/shapes/package.json
index df2e137f01..5b65447b75 100644
--- a/packages/shapes/package.json
+++ b/packages/shapes/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/shapes"
},
"name": "@remotion/shapes",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Generate SVG shapes",
"main": "dist/index.js",
"sideEffects": false,
diff --git a/packages/skia/package.json b/packages/skia/package.json
index 63a350126a..65392cbbb4 100644
--- a/packages/skia/package.json
+++ b/packages/skia/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/skia"
},
"name": "@remotion/skia",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Include React Native Skia components in a Remotion video",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/streaming/package.json b/packages/streaming/package.json
index 487f9c49c4..40a1db9b01 100644
--- a/packages/streaming/package.json
+++ b/packages/streaming/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/streaming"
},
"name": "@remotion/streaming",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Utilities for streaming data between programs",
"main": "dist",
"sideEffects": false,
diff --git a/packages/studio-server/package.json b/packages/studio-server/package.json
index aa6a9a4099..811b420201 100644
--- a/packages/studio-server/package.json
+++ b/packages/studio-server/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio-server"
},
"name": "@remotion/studio-server",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Run a Remotion Studio with a server backend",
"main": "dist",
"sideEffects": false,
diff --git a/packages/studio-shared/package.json b/packages/studio-shared/package.json
index 2ccf1de4e3..51e65cec07 100644
--- a/packages/studio-shared/package.json
+++ b/packages/studio-shared/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio-shared"
},
"name": "@remotion/studio-shared",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Internal package for shared objects between the Studio backend and frontend",
"main": "dist",
"sideEffects": false,
diff --git a/packages/studio/package.json b/packages/studio/package.json
index 9e2cc7e5b2..cf04ab79f7 100644
--- a/packages/studio/package.json
+++ b/packages/studio/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
},
"name": "@remotion/studio",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "APIs for interacting with the Remotion Studio",
"main": "dist",
"sideEffects": false,
diff --git a/packages/tailwind/package.json b/packages/tailwind/package.json
index 1be6b1b6de..cc73ec8cff 100644
--- a/packages/tailwind/package.json
+++ b/packages/tailwind/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/tailwind"
},
"name": "@remotion/tailwind",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Enable TailwindCSS support in Remotion",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json
index 1141206a70..146e385380 100644
--- a/packages/test-utils/package.json
+++ b/packages/test-utils/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/test-utils"
},
"name": "@remotion/test-utils",
- "version": "4.0.222",
+ "version": "4.0.223",
"main": "dist",
"sideEffects": false,
"scripts": {
diff --git a/packages/three/package.json b/packages/three/package.json
index da3a6b1367..21b418a0ae 100644
--- a/packages/three/package.json
+++ b/packages/three/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/three"
},
"name": "@remotion/three",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Include React Three Fiber components in a Remotion video",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
diff --git a/packages/transitions/package.json b/packages/transitions/package.json
index 8113cb2d45..17f7ffb60b 100644
--- a/packages/transitions/package.json
+++ b/packages/transitions/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/transitions"
},
"name": "@remotion/transitions",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Library for creating transitions in Remotion",
"sideEffects": false,
"main": "dist/esm/index.mjs",
diff --git a/packages/webcodecs/package.json b/packages/webcodecs/package.json
index 7f7916cdec..0f8e14bad2 100644
--- a/packages/webcodecs/package.json
+++ b/packages/webcodecs/package.json
@@ -1,6 +1,6 @@
{
"name": "@remotion/webcodecs",
- "version": "4.0.222",
+ "version": "4.0.223",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.mjs",
diff --git a/packages/zod-types/package.json b/packages/zod-types/package.json
index 28b375c4bd..99ca5fcff3 100644
--- a/packages/zod-types/package.json
+++ b/packages/zod-types/package.json
@@ -3,7 +3,7 @@
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/zod-types"
},
"name": "@remotion/zod-types",
- "version": "4.0.222",
+ "version": "4.0.223",
"description": "Zod types for Remotion",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",