🎥 Make videos programmatically with React
new netlify URL
Jonny Burgerf35fad337c98
diff --git a/packages/it-tests/src/ssr/cancel-after-success.test.ts b/packages/it-tests/src/ssr/cancel-after-success.test.tsindex b2e2f90a0d..34cc537291 100644--- a/packages/it-tests/src/ssr/cancel-after-success.test.ts+++ b/packages/it-tests/src/ssr/cancel-after-success.test.ts@@ -8,7 +8,7 @@ test("Cancelling after success should not throw error", async () => {const outputLocation = "out/render.mp4";await renderMedia({codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 d153c201e7..7c0781609f 100644--- a/packages/it-tests/src/ssr/cancel-renderframes.test.ts+++ b/packages/it-tests/src/ssr/cancel-renderframes.test.ts@@ -5,7 +5,7 @@ test("Should be able to cancel render", async () => {try {const { cancel, cancelSignal } = makeCancelSignal();const val = renderFrames({- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 d7a0d0630f..d4df1fda50 100644--- a/packages/it-tests/src/ssr/cancel-rendermedia.test.ts+++ b/packages/it-tests/src/ssr/cancel-rendermedia.test.ts@@ -6,7 +6,7 @@ test("Should be able to cancel render", async () => {const { cancel, cancelSignal } = makeCancelSignal();const val = renderMedia({codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 d8991ee013..a26416a007 100644--- a/packages/it-tests/src/ssr/cancel-renderstill.test.ts+++ b/packages/it-tests/src/ssr/cancel-renderstill.test.ts@@ -5,7 +5,7 @@ test("Should be able to cancel render", async () => {try {const { cancel, cancelSignal } = makeCancelSignal();const val = renderStill({- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 a57e0d1542..62aaa07808 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@@ -5,7 +5,7 @@ test("Fatal error on frame 10 should yield correct error", async () => {await expect(() => {return renderMedia({codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 b1c65da63b..2b5328d507 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://gleaming-wisp-de5d2a.netlify.app/",+ "https://thunderous-heliotrope-48a698.netlify.app/",{puppeteerInstance,}@@ -39,7 +39,7 @@ test("Legacy SSR way of rendering videos should still work", async () => {imageFormat: "jpeg",inputProps: {},onFrameUpdate: () => undefined,- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 e9ca2ee764..dc3ef7131a 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://gleaming-wisp-de5d2a.netlify.app/",+ "https://thunderous-heliotrope-48a698.netlify.app/",{puppeteerInstance,}@@ -26,7 +26,7 @@ test("Render video with browser instance open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",composition: reactSvg,frameRange: [0, 2],puppeteerInstance,@@ -37,7 +37,7 @@ test("Render video with browser instance open", async () => {test("Render video with browser instance not open", async () => {const compositions = await getCompositions(- "https://gleaming-wisp-de5d2a.netlify.app/"+ "https://thunderous-heliotrope-48a698.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -53,7 +53,7 @@ test("Render video with browser instance not open", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",composition: reactSvg,frameRange: [0, 2],});@@ -70,7 +70,7 @@ test("should fail on invalid CRF", async () => {await renderMedia({outputLocation: outPath,codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",// @ts-expect-errorcrf: "wrong",config: {@@ -95,7 +95,7 @@ test("should fail on invalid CRF", async () => {test("Render video to a buffer", async () => {const compositions = await getCompositions(- "https://gleaming-wisp-de5d2a.netlify.app/"+ "https://thunderous-heliotrope-48a698.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -106,7 +106,7 @@ test("Render video to a buffer", async () => {const { buffer } = await renderMedia({codec: "h264",- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 a5951d263a..da2f1b94bd 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://gleaming-wisp-de5d2a.netlify.app/",+ "https://thunderous-heliotrope-48a698.netlify.app/",{puppeteerInstance,}@@ -34,7 +34,7 @@ test("Render video with browser instance open", async () => {const { buffer } = await renderStill({output: outPath,- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.netlify.app/",composition: reactSvg,puppeteerInstance,});@@ -44,7 +44,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://gleaming-wisp-de5d2a.netlify.app/"+ "https://thunderous-heliotrope-48a698.netlify.app/");const reactSvg = compositions.find((c) => c.id === "react-svg");@@ -59,7 +59,7 @@ test("Render still with browser instance not open and legacy webpack config", asawait renderStill({output: outPath,- serveUrl: "https://gleaming-wisp-de5d2a.netlify.app/",+ serveUrl: "https://thunderous-heliotrope-48a698.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 9cff9ad2ad..01280e40a0 100644--- a/packages/lambda/src/test/integration/renders/gif.test.ts+++ b/packages/lambda/src/test/integration/renders/gif.test.ts@@ -34,7 +34,7 @@ test('Should make a distributed GIF', async () => {const res = (await handler({type: LambdaRoutines.start,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.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 63ddf9a198..1707f0b843 100644--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts@@ -33,7 +33,7 @@ test('Should be able to render to another bucket', async () => {const res = (await handler({type: LambdaRoutines.start,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.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 361a5acd64..d9190e8134 100644--- a/packages/lambda/src/test/integration/renders/silent-audio.test.ts+++ b/packages/lambda/src/test/integration/renders/silent-audio.test.ts@@ -33,7 +33,7 @@ test('Should add silent audio if there is no audio', async () => {const res = (await handler({type: LambdaRoutines.start,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.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 df9f10c1df..0eda363259 100644--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts@@ -36,7 +36,7 @@ test('Should make a transparent video', async () => {const res = (await handler({type: LambdaRoutines.start,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.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 0571d3b7a1..6b2a5cfb70 100644--- a/packages/lambda/src/test/integration/webhooks.test.ts+++ b/packages/lambda/src/test/integration/webhooks.test.ts@@ -69,7 +69,7 @@ describe('Webhooks', () => {const res = await handler({type: LambdaRoutines.start,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',chromiumOptions: {},codec: 'h264',composition: 'react-svg',@@ -155,7 +155,7 @@ describe('Webhooks', () => {await handler({type: LambdaRoutines.launch,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.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 7ef92007bd..a52c3c45d8 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://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',downloadMap,verbose: false,indent: false,@@ -37,7 +37,7 @@ test('Returns buffer in promise result', async () => {defaultProps: undefined,},frame: 0,- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',downloadMap,verbose: false,indent: false,@@ -60,7 +60,7 @@ test('Need to pass valid metadata', async () => {},frame: 200,output: '/file/output.png',- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',downloadMap,verbose: false,indent: false,@@ -86,7 +86,7 @@ test('Catches invalid image format', () => {imageFormat: 'jjj',frame: 200,output: '/file/output.png',- serveUrl: 'https://gleaming-wisp-de5d2a.netlify.app/',+ serveUrl: 'https://thunderous-heliotrope-48a698.netlify.app/',})).rejects.toThrow(/Image format should be one of: "png", "jpeg", "pdf", "webp"/