🎥 Make videos programmatically with React
new urls
Jonny Burger626578b3191f
diff --git a/packages/it-tests/src/ssr/cancel-after-success.test.ts b/packages/it-tests/src/ssr/cancel-after-success.test.tsindex 5784fd47c2..5d0f74f9d5 100644--- a/packages/it-tests/src/ssr/cancel-after-success.test.ts+++ b/packages/it-tests/src/ssr/cancel-after-success.test.ts@@ -9,7 +9,7 @@ test("Cancelling after success should not throw error", async () => {await renderMedia({codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: {durationInFrames: 4,fps: 30,diff --git a/packages/it-tests/src/ssr/cancel-renderframes.test.ts b/packages/it-tests/src/ssr/cancel-renderframes.test.tsindex f362582f96..5d57a71237 100644--- a/packages/it-tests/src/ssr/cancel-renderframes.test.ts+++ b/packages/it-tests/src/ssr/cancel-renderframes.test.ts@@ -6,7 +6,7 @@ test("Should be able to cancel render", async () => {const { cancel, cancelSignal } = makeCancelSignal();const val = renderFrames({serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts b/packages/it-tests/src/ssr/cancel-rendermedia.test.tsindex d430d48185..ef371d08f4 100644--- a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts+++ b/packages/it-tests/src/ssr/cancel-rendermedia.test.ts@@ -7,7 +7,7 @@ test("Should be able to cancel render", async () => {const val = renderMedia({codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/cancel-renderstill.test.ts b/packages/it-tests/src/ssr/cancel-renderstill.test.tsindex 4be66fc226..88f9d812c4 100644--- a/packages/it-tests/src/ssr/cancel-renderstill.test.ts+++ b/packages/it-tests/src/ssr/cancel-renderstill.test.ts@@ -6,7 +6,7 @@ test("Should be able to cancel render", async () => {const { cancel, cancelSignal } = makeCancelSignal();const val = renderStill({serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/fatal-error-correct-error.test.ts b/packages/it-tests/src/ssr/fatal-error-correct-error.test.tsindex 76b99e32eb..c605e37f72 100644--- a/packages/it-tests/src/ssr/fatal-error-correct-error.test.ts+++ b/packages/it-tests/src/ssr/fatal-error-correct-error.test.ts@@ -6,7 +6,7 @@ test("Fatal error on frame 10 should yield correct error", async () => {return renderMedia({codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: {durationInFrames: 1000000,fps: 30,diff --git a/packages/it-tests/src/ssr/render-frames.test.ts b/packages/it-tests/src/ssr/render-frames.test.tsindex 44f3952d73..01410e789d 100644--- a/packages/it-tests/src/ssr/render-frames.test.ts+++ b/packages/it-tests/src/ssr/render-frames.test.ts@@ -13,7 +13,7 @@ import { RenderInternals } from "@remotion/renderer";test("Legacy SSR way of rendering videos should still work", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",{puppeteerInstance,}@@ -40,7 +40,7 @@ test("Legacy SSR way of rendering videos should still work", async () => {inputProps: {},onFrameUpdate: () => undefined,serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",concurrency: null,frameRange: [0, 10],outputDir: framesDir,diff --git a/packages/it-tests/src/ssr/render-media.test.ts b/packages/it-tests/src/ssr/render-media.test.tsindex 09a4eee4be..4089544863 100644--- a/packages/it-tests/src/ssr/render-media.test.ts+++ b/packages/it-tests/src/ssr/render-media.test.ts@@ -7,7 +7,7 @@ import { expect, test } from "vitest";test("Render video with browser instance open", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",{puppeteerInstance,}@@ -27,7 +27,7 @@ test("Render video with browser instance open", async () => {outputLocation: outPath,codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: reactSvg,frameRange: [0, 2],puppeteerInstance,@@ -38,7 +38,7 @@ test("Render video with browser instance open", async () => {test("Render video with browser instance not open", async () => {const compositions = await getCompositions(- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/"+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -55,7 +55,7 @@ test("Render video with browser instance not open", async () => {outputLocation: outPath,codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: reactSvg,frameRange: [0, 2],});@@ -73,7 +73,7 @@ test("should fail on invalid CRF", async () => {outputLocation: outPath,codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",// @ts-expect-errorcrf: "wrong",config: {@@ -98,7 +98,7 @@ test("should fail on invalid CRF", async () => {test("Render video to a buffer", async () => {const compositions = await getCompositions(- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/"+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -110,7 +110,7 @@ test("Render video to a buffer", async () => {const { buffer } = await renderMedia({codec: "h264",serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: reactSvg,frameRange: [0, 2],});diff --git a/packages/it-tests/src/ssr/render-still.test.ts b/packages/it-tests/src/ssr/render-still.test.tsindex 1ede1e8b0a..c700bb4f50 100644--- a/packages/it-tests/src/ssr/render-still.test.ts+++ b/packages/it-tests/src/ssr/render-still.test.ts@@ -16,7 +16,7 @@ afterEach(async () => {test("Render video with browser instance open", async () => {const puppeteerInstance = await openBrowser("chrome");const compositions = await getCompositions(- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",{puppeteerInstance,}@@ -35,7 +35,7 @@ test("Render video with browser instance open", async () => {const { buffer } = await renderStill({output: outPath,serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: reactSvg,puppeteerInstance,});@@ -45,7 +45,7 @@ test("Render video with browser instance open", async () => {test("Render still with browser instance not open and legacy webpack config", async () => {const compositions = await getCompositions(- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/"+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -61,7 +61,7 @@ test("Render still with browser instance not open and legacy webpack config", asawait renderStill({output: outPath,serveUrl:- "https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/",+ "https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/",composition: reactSvg,});expect(existsSync(outPath)).toBe(true);diff --git a/packages/lambda/src/test/integration/renders/gif.test.ts b/packages/lambda/src/test/integration/renders/gif.test.tsindex 3e064452bf..d433afd832 100644--- a/packages/lambda/src/test/integration/renders/gif.test.ts+++ b/packages/lambda/src/test/integration/renders/gif.test.ts@@ -35,7 +35,7 @@ test('Should make a distributed GIF', async () => {{type: LambdaRoutines.start,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',chromiumOptions: {},codec: 'gif',composition: 'framer',diff --git a/packages/lambda/src/test/integration/renders/other-bucket.test.ts b/packages/lambda/src/test/integration/renders/other-bucket.test.tsindex db0cc5ab3a..134c87a95a 100644--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts@@ -34,7 +34,7 @@ test('Should be able to render to another bucket', async () => {{type: LambdaRoutines.start,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',chromiumOptions: {},codec: 'h264',composition: 'react-svg',diff --git a/packages/lambda/src/test/integration/renders/silent-audio.test.ts b/packages/lambda/src/test/integration/renders/silent-audio.test.tsindex 9936c8b6cb..9eaf5585c9 100644--- a/packages/lambda/src/test/integration/renders/silent-audio.test.ts+++ b/packages/lambda/src/test/integration/renders/silent-audio.test.ts@@ -34,7 +34,7 @@ test('Should add silent audio if there is no audio', async () => {{type: LambdaRoutines.start,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',chromiumOptions: {},codec: 'h264',composition: 'react-svg',diff --git a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts b/packages/lambda/src/test/integration/renders/transparent-webm.test.tsindex 34f304e6a6..0082163837 100644--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts@@ -37,7 +37,7 @@ test('Should make a transparent video', async () => {{type: LambdaRoutines.start,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',chromiumOptions: {},codec: 'vp8',composition: 'ten-frame-tester',diff --git a/packages/lambda/src/test/integration/webhooks.test.ts b/packages/lambda/src/test/integration/webhooks.test.tsindex 059b3f64c7..5db259a4bb 100644--- a/packages/lambda/src/test/integration/webhooks.test.ts+++ b/packages/lambda/src/test/integration/webhooks.test.ts@@ -70,7 +70,7 @@ describe('Webhooks', () => {{type: LambdaRoutines.start,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',chromiumOptions: {},codec: 'h264',composition: 'react-svg',@@ -156,7 +156,7 @@ describe('Webhooks', () => {{type: LambdaRoutines.launch,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',chromiumOptions: {},codec: 'h264',composition: 'react-svg',diff --git a/packages/renderer/src/test/render-still.test.ts b/packages/renderer/src/test/render-still.test.tsindex 4681e73b46..4b5a9c6898 100644--- a/packages/renderer/src/test/render-still.test.ts+++ b/packages/renderer/src/test/render-still.test.ts@@ -16,7 +16,7 @@ test('Need to pass valid metadata', async () => {frame: 0,output: '/file/output.png',serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',verbose: false,})).rejects.toThrow(/not be NaN, but is NaN/);@@ -35,7 +35,7 @@ test('Returns buffer in promise result', async () => {},frame: 0,serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',verbose: false,});expect(buffer?.length).toBeGreaterThan(1000);@@ -56,7 +56,7 @@ test('Need to pass valid metadata', async () => {frame: 200,output: '/file/output.png',serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',verbose: false,})).rejects.toThrow(@@ -81,7 +81,7 @@ test('Catches invalid image format', () => {frame: 200,output: '/file/output.png',serveUrl:- 'https://649ea0770f2b6b55f2a5425c--effulgent-pixie-5f5cfb.netlify.app/',+ 'https://64a69dbd950469119e886993--dreamy-shortbread-14601f.netlify.app/',})).rejects.toThrow(/Image format should be one of: "png", "jpeg", "pdf", "webp"/