Skip to content

Commit

Permalink
v4.0.223
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Oct 23, 2024
1 parent 087645f commit d3e12db
Show file tree
Hide file tree
Showing 78 changed files with 130 additions and 176 deletions.
2 changes: 1 addition & 1 deletion packages/ai-improvements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"openai": "4.67.1"
},
"private": true,
"version": "4.0.222"
"version": "4.0.223"
}
2 changes: 1 addition & 1 deletion packages/animated-emoji/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/animation-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "Chetan Karwa",
"email": "cbkarwa@gmail.com"
},
"version": "4.0.222",
"version": "4.0.223",
"description": "Helpers for animating CSS properties",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bugs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
},
"name": "bugs",
"private": true,
"version": "4.0.222"
"version": "4.0.223"
}
2 changes: 1 addition & 1 deletion packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/captions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
28 changes: 20 additions & 8 deletions packages/cloudrun/container/ensure-browser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 });
});
Expand All @@ -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) {
Expand Down Expand Up @@ -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)}`);
}
Expand All @@ -3188,7 +3195,8 @@ var getLocalBrowser = () => {
};

// src/ensure-browser.ts
var internalEnsureBrowser = async ({
var currentEnsureBrowserOperation = Promise.resolve();
var internalEnsureBrowserUncapped = async ({
indent,
logLevel,
browserExecutable,
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudrun/container/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudrun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/compositor-win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/convert/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remotion/convert",
"version": "4.0.222",
"version": "4.0.223",
"private": true,
"sideEffects": false,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion packages/create-video/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/discord-poster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/enable-scss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/example-without-zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 19 additions & 3 deletions packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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} />;
};
2 changes: 1 addition & 1 deletion packages/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/gif/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit d3e12db

Please sign in to comment.