🎥 Make videos programmatically with React
fixes
Hunain Ahmedcdf4c31dbae3
diff --git a/packages/STATS.md b/packages/STATS.mdindex f2fbc1dc52..cd051b24b5 100644--- a/packages/STATS.md+++ b/packages/STATS.md@@ -34,6 +34,7 @@ Monthly downloads of Remotion packages[](https://npmcharts.com/compare/@remotion/media-parser?minimal=true)[](https://npmcharts.com/compare/@remotion/media-utils?minimal=true)[](https://npmcharts.com/compare/@remotion/motion-blur?minimal=true)+[](https://npmcharts.com/compare/@remotion/new-video?minimal=true)[](https://npmcharts.com/compare/@remotion/noise?minimal=true)[](https://npmcharts.com/compare/@remotion/openai-whisper?minimal=true)[](https://npmcharts.com/compare/@remotion/paths?minimal=true)diff --git a/packages/cli/src/list-of-remotion-packages.ts b/packages/cli/src/list-of-remotion-packages.tsindex c5e6ccd296..fb2eda4c13 100644--- a/packages/cli/src/list-of-remotion-packages.ts+++ b/packages/cli/src/list-of-remotion-packages.ts@@ -77,4 +77,5 @@ export const listOfRemotionPackages = ['@remotion/compositor','@remotion/example-videos','@remotion/whisper-web',+ '@remotion/new-video',];diff --git a/packages/create-video/src/list-of-remotion-packages.ts b/packages/create-video/src/list-of-remotion-packages.tsindex c5e6ccd296..fb2eda4c13 100644--- a/packages/create-video/src/list-of-remotion-packages.ts+++ b/packages/create-video/src/list-of-remotion-packages.ts@@ -77,4 +77,5 @@ export const listOfRemotionPackages = ['@remotion/compositor','@remotion/example-videos','@remotion/whisper-web',+ '@remotion/new-video',];diff --git a/packages/new-video/README.md b/packages/new-video/README.mdindex e69de29bb2..32646f7e9f 100644--- a/packages/new-video/README.md+++ b/packages/new-video/README.md@@ -0,0 +1,7 @@+# @remotion/new-video++Experimental tag for reliable and accurate rendering++## Usage++This is an internal package and has no documentation.diff --git a/packages/new-video/package.json b/packages/new-video/package.jsonindex ee15baa4a3..fdd3a32829 100644--- a/packages/new-video/package.json+++ b/packages/new-video/package.json@@ -1,10 +1,14 @@{"name": "@remotion/video",- "version": "4.0.324",+ "version": "4.0.325","main": "dist/index.js","types": "dist/index.d.ts","module": "dist/esm/index.mjs",+ "repository": {+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/new-video"+ },"sideEffects": false,+ "author": "Hunain Ahmed <[email protected]>","bugs": {"url": "https://github.com/remotion-dev/remotion/issues"},@@ -42,5 +46,5 @@},"./package.json": "./package.json"},- "description": "off thread video"+ "description": "Experimental tag for reliable and accurate rendering"}diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.tsindex a4a77a00f4..49ee68ac2d 100644--- a/packages/studio-shared/src/package-info.ts+++ b/packages/studio-shared/src/package-info.ts@@ -76,6 +76,7 @@ export const packages = ['compositor','example-videos','whisper-web',+ 'new-video',] as const;export type Pkgs = (typeof packages)[number];@@ -162,6 +163,7 @@ export const descriptions: {[key in Pkgs]: string | null} = {'promo-pages': null,'svg-3d-engine': '3D SVG extrusion effects','serverless-client': null,+ 'new-video': 'Experimental tag for reliable and accurate rendering',};export const installableMap: {[key in Pkgs]: boolean} = {'svg-3d-engine': false,@@ -241,6 +243,7 @@ export const installableMap: {[key in Pkgs]: boolean} = {'openai-whisper': true,compositor: false,'example-videos': false,+ 'new-video': false,};export const apiDocs: {[key in Pkgs]: string | null} = {@@ -324,4 +327,5 @@ export const apiDocs: {[key in Pkgs]: string | null} = {'example-videos': null,'promo-pages': null,'svg-3d-engine': null,+ 'new-video': null,};diff --git a/packages/webcodecs/src/extract-frames.ts b/packages/webcodecs/src/extract-frames.tsindex 63174412bc..e0e658c608 100644--- a/packages/webcodecs/src/extract-frames.ts+++ b/packages/webcodecs/src/extract-frames.ts@@ -70,8 +70,10 @@ const internalExtractFrames = ({const timestampTargets = timestampTargetsUnsorted.sort((a, b) => a - b);- if(timestampTargets.length === 0){- throw new Error("expected at least one timestamp to extract but found zero")+ if (timestampTargets.length === 0) {+ throw new Error(+ 'expected at least one timestamp to extract but found zero',+ );}controller.seek(timestampTargets[0]);