π₯ Make videos programmatically with React
Change asset bucket from S3 to R2 (part 2)
MehmetAdemiaaeac3de7449
diff --git a/README.md b/README.mdindex cd6880cc8f..478452f564 100644--- a/README.md+++ b/README.md@@ -26,11 +26,11 @@ Remotion is a framework for **creating videos programmatically using React.**<table><tr><td align="center">-<img style="width: 290px" src="https://remotion-assets.s3.eu-central-1.amazonaws.com/fireship-quick.gif" />+<img style="width: 290px" src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/fireship-quick.gif" /><p>"This video was made with code" <em>- Fireship</em> <a href="https://youtu.be/deg8bOoziaE">Watch</a> β’ <a href="https://github.com/wcandillon/remotion-fireship">Source</a></p></td><td align="center">-<img style="width: 240px" src="https://remotion-assets.s3.eu-central-1.amazonaws.com/unwrapped-2023.gif" />+<img style="width: 240px" src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/unwrapped-2023.gif" /><p>GitHub Unwrapped - Personalized Year in Review <a href="https://www.githubunwrapped.com">Try</a> β’ <a href="https://github.com/remotion-dev/github-unwrapped">Source</a></p></td><td align="center">diff --git a/packages/convert/app/tests/test-list.tsx b/packages/convert/app/tests/test-list.tsxindex 9b93f4fc21..14d7d1bc74 100644--- a/packages/convert/app/tests/test-list.tsx+++ b/packages/convert/app/tests/test-list.tsx@@ -39,7 +39,7 @@ const av1WebmToMp4 = (): TestStructure => {const av1WebmToMp4H265 = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/av1-bbb.webm';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/av1-bbb.webm';return addTestWatcher({name: 'AV1 WebM to MP4 (H.265)',@@ -93,7 +93,7 @@ const convertToWav = (): TestStructure => {const lpcmLivePhoto = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/livephoto-lpcm-audio.mov';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/livephoto-lpcm-audio.mov';return addTestWatcher({name: 'HEVC Live Photo + LPCM audio codec',src,@@ -108,8 +108,7 @@ const lpcmLivePhoto = (): TestStructure => {};const aviToMp4ReEncode = (): TestStructure => {- const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/example.avi';+ const src = 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/example.avi';return addTestWatcher({name: 'AVI to MP4 (Re-Encode)',src,@@ -141,8 +140,7 @@ const aviToMp4ReEncode = (): TestStructure => {};const aviToMp4 = (): TestStructure => {- const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/example.avi';+ const src = 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/example.avi';return addTestWatcher({name: 'AVI to MP4',src,@@ -158,7 +156,7 @@ const aviToMp4 = (): TestStructure => {const rotatedVideo = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/iphone-hevc.mov';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/iphone-hevc.mov';return addTestWatcher({name: 'Rotated video',@@ -175,7 +173,7 @@ const rotatedVideo = (): TestStructure => {const vpxEncodingError = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/vpx-encoding-error.mp4';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/vpx-encoding-error.mp4';return addTestWatcher({name: 'Flipping a video',src,@@ -194,7 +192,7 @@ const vpxEncodingError = (): TestStructure => {const offsetTimestamps = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/very-offset-timestamps.mp4';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/very-offset-timestamps.mp4';return addTestWatcher({name: 'Convert a video with offset video and audio timestamps',@@ -228,7 +226,7 @@ const transportStream = (): TestStructure => {const remuxUnevenDim = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/unevendim.webm';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/unevendim.webm';return addTestWatcher({name: 'Remux uneven dim',@@ -251,7 +249,7 @@ const remuxUnevenDim = (): TestStructure => {const remuxToughTimestamps = (): TestStructure => {const src =- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/tough-timestamps.mp4';+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/tough-timestamps.mp4';return addTestWatcher({name: 'Resize Recorder WebM with tough timestamps',diff --git a/packages/docs/docs/after-effects.mdx b/packages/docs/docs/after-effects.mdxindex a1f34669b7..b5d913be75 100644--- a/packages/docs/docs/after-effects.mdx+++ b/packages/docs/docs/after-effects.mdx@@ -37,20 +37,20 @@ Design your animation in After Effects. In this basic example, we used the roundIn the After Effects menu, go to `Preferences -> Scripting & Expressions...`. Enable the first option: `Allow Scripts to Write Files and Access Network`. You only need to do this once.-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/scripting.png" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/scripting.png" />### Open the Bodymovin pluginIn the After Effects menu, go to `Window -> Extensions -> Bodymovin`.-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/bodymovin.png" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/bodymovin.png" />### Export the animation as JSONFirst, select the composition <InlineStep>1</InlineStep>. Then press the export icon <InlineStep>2</InlineStep>. You will be prompted for a location to save the JSON file.Click Render <InlineStep>3</InlineStep> to write the file.-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/bodymovin-tutorial.png" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/bodymovin-tutorial.png" />### Import the file into Remotion@@ -91,7 +91,7 @@ const Balloons = () => {It is advised to make your composition [the same size and duration](/docs/lottie/getlottiemetadata) as the original composition in After Effects. Congrats, you're playing an After Effects animation in Remotion! π-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/result.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/result.gif" />## See alsodiff --git a/packages/docs/learn/2022-12-22-apple-wow.mdx b/packages/docs/learn/2022-12-22-apple-wow.mdxindex 9f34339885..78e5402571 100644--- a/packages/docs/learn/2022-12-22-apple-wow.mdx+++ b/packages/docs/learn/2022-12-22-apple-wow.mdx@@ -183,7 +183,7 @@ export const MyComposition: React.FC = () => {Now we got a white dot on top of our background:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Dot.png" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Dot.png" />## Animate the dot@@ -250,7 +250,7 @@ export const MyComposition: React.FC = () => {Now, you have some action to show. By using `<Shrinking>` in your main composition you have created a scale out effect:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Shrinking.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Shrinking.gif" />## Move the dot@@ -331,7 +331,7 @@ export const MyComposition = () => {And up goes the dot:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Move.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Move.gif" />## Duplicate the moving dot@@ -468,7 +468,7 @@ export const MyComposition = () => {And this is how your animation with the duplicated dots should look like:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Trail.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Trail.gif" />## Duplicating markup and arranging it in a circle@@ -556,7 +556,7 @@ export const MyComposition = () => {The animated explosion should look like this:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Explosion.gif" />+<img src=https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Explosion.gif" />## Cleanup@@ -637,7 +637,7 @@ export const MyComposition = () => {Nothing has changed on the animation itself:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Dots.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Dots.gif" />## Adding hearts and stars@@ -807,7 +807,7 @@ export const YellowHearts: React.FC = () => {Your main composition should look like this:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/DotsAndHearts.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/DotsAndHearts.gif" /><br /><br />@@ -946,7 +946,7 @@ export const Stars: React.FC = () => {Here is how the almost complete firework should look like:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/DotsAndHeartsAndStars.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/DotsAndHeartsAndStars.gif" />## Slow motion effect@@ -1037,7 +1037,7 @@ export const MyComposition = () => {Your final firework should look like this:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Slowed.gif" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Slowed.gif" />## Adding your animoji@@ -1060,7 +1060,7 @@ Only assets that are being used by Remotion need to be in the `public` folder. YHere is a screenshot right before creating the series of frames:-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/FFmpegCommand.png" />+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/FFmpegCommand.png" /><br /><br />diff --git a/packages/example-videos/src/remote-videos.ts b/packages/example-videos/src/remote-videos.tsindex 966b8da2ad..2ff6f9ee9f 100644--- a/packages/example-videos/src/remote-videos.ts+++ b/packages/example-videos/src/remote-videos.ts@@ -14,11 +14,11 @@ export const remoteExampleVideos = {webmNoCodecPrivate:'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/webm-no-codecprivate.webm',tsKeyframes:- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/ts-keyframes.ts',+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/ts-keyframes.ts',largeStsd:- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/large-stsd.mp4',+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/large-stsd.mp4',videoWithEditList:- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/video-with-editlist.mp4',+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/video-with-editlist.mp4',};export const privateExampleVideos = {