Skip to content

πŸŽ₯ Make videos programmatically with React

Change asset bucket from S3 to R2

MehmetAdemib5c7be096661
diff --git a/packages/convert/app/tests/test-list.tsx b/packages/convert/app/tests/test-list.tsx
index a8b0d459fb..9b93f4fc21 100644
--- a/packages/convert/app/tests/test-list.tsx
+++ b/packages/convert/app/tests/test-list.tsx
@@ -5,7 +5,7 @@ import {addTestWatcher, isSafari, makeProgressReporter} from './test-structure';
const basicMp4ToWebM = (): TestStructure => {
const src =
- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/bigbuckbunny.mp4';
+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/bigbuckbunny.mp4';
return addTestWatcher({
name: 'Basic MP4 to WebM',
@@ -22,7 +22,7 @@ const basicMp4ToWebM = (): TestStructure => {
const av1WebmToMp4 = (): 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',
@@ -57,7 +57,7 @@ const av1WebmToMp4H265 = (): TestStructure => {
const weirdMp4aConfig = (): TestStructure => {
const src =
- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/riverside.mp4';
+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/riverside.mp4';
return addTestWatcher({
name: 'weird mp4a config',
@@ -76,7 +76,7 @@ const weirdMp4aConfig = (): TestStructure => {
const convertToWav = (): TestStructure => {
const src =
- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/riverside.mp4';
+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/riverside.mp4';
return addTestWatcher({
name: 'convert to wav',
@@ -211,7 +211,7 @@ const offsetTimestamps = (): TestStructure => {
const transportStream = (): TestStructure => {
const src =
- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/transportstream.ts';
+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/transportstream.ts';
return addTestWatcher({
name: 'Convert a .ts file to .webm',
diff --git a/packages/core/README.md b/packages/core/README.md
index cd6880cc8f..bba3dfa0fd 100644
--- a/packages/core/README.md
+++ b/packages/core/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/docs/blog/2021-04-15-remotion-2-0.mdx b/packages/docs/blog/2021-04-15-remotion-2-0.mdx
index 82b73dd7ba..0fb04ea232 100644
--- a/packages/docs/blog/2021-04-15-remotion-2-0.mdx
+++ b/packages/docs/blog/2021-04-15-remotion-2-0.mdx
@@ -94,7 +94,7 @@ Learn more about the [`--frames`](/docs/config#setframerange) CLI option.
<div>
<video width="100%" height="100%" controls playsInline autoPlay muted loop>
- <source src="https://remotion-assets.s3.eu-central-1.amazonaws.com/gif.mp4" type="video/mp4" />
+ <source src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/gif.mp4" type="video/mp4" />
</video>
</div>
diff --git a/packages/docs/blog/2021-09-27-remotion-2-4.mdx b/packages/docs/blog/2021-09-27-remotion-2-4.mdx
index df7f9e4bb6..7275f89a69 100644
--- a/packages/docs/blog/2021-09-27-remotion-2-4.mdx
+++ b/packages/docs/blog/2021-09-27-remotion-2-4.mdx
@@ -39,7 +39,7 @@ To get an overview of all keyboard shortcuts, you can now press <kbd>?</kbd> to
For those true hackers that don't use mouses, we optimized the whole new UI to be usable with just the keyboard. Use the <kbd>Tab</kbd> key to focus items, the arrow keys to navigate through menus. Press <kbd>Enter</kbd> or <kbd>Space</kbd> to click on items. Use <kbd>Escape</kbd> to quit modals and menus.
<p align="center">
- <img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/keyboard-navigation.gif" style={{maxWidth: 600}} />
+ <img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/keyboard-navigation.gif" style={{maxWidth: 600}} />
</p>
## Built with 0 dependencies
diff --git a/packages/docs/blog/2021-10-26-remotion-2-5.mdx b/packages/docs/blog/2021-10-26-remotion-2-5.mdx
index a84ee94317..975f764f4d 100644
--- a/packages/docs/blog/2021-10-26-remotion-2-5.mdx
+++ b/packages/docs/blog/2021-10-26-remotion-2-5.mdx
@@ -34,7 +34,7 @@ You can now change the playback rate in the editor and play a video in slow-moti
It also works in the `<Player />`! See the new [`playbackRate`](/docs/player/player#playbackrate) prop and we also added a [`ratechange`](/docs/player/player#ratechange) event - just like the native HTML5 Video element.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/playbackrate.gif" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/playbackrate.gif" />
_Thanks to [Brian Pederson](https://github.com/remotion-dev/remotion/pull/656) for implementing this feature!_
@@ -46,7 +46,7 @@ The <kbd>J</kbd> key works the same, but plays the video backwards. Now you can
Once you have reached the point where you want to pause the video and continue to code it, the <kbd>K</kbd> key will reset the playback rate to `1x` and pause the video.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/jkl.gif" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/jkl.gif" />
Once you learn how to navigate using JKL keys, you'll never use your mouse for scrubbing again!
diff --git a/packages/docs/blog/2022-07-14-remotion-3-1.mdx b/packages/docs/blog/2022-07-14-remotion-3-1.mdx
index 360992f3d2..cd9f536d35 100644
--- a/packages/docs/blog/2022-07-14-remotion-3-1.mdx
+++ b/packages/docs/blog/2022-07-14-remotion-3-1.mdx
@@ -24,9 +24,13 @@ This release brings support for GIF as an output format, official support for Ta
- You can even render your GIF distributed across many small VMs using Remotion Lambda!
-<img style={{width: "100%"}} src="https://remotion-assets.s3.eu-central-1.amazonaws.com/render-as-gif.gif" />
+<img style={{width: '100%'}} src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/render-as-gif.gif" />
-<p style={{textAlign: "center"}}><em>You can put <a href="/docs/gif">{"<Gif>"}</a>'s in your GIF!</em></p>
+<p style={{textAlign: 'center'}}>
+ <em>
+ You can put <a href="/docs/gif">{'<Gif>'}</a>'s in your GIF!
+ </em>
+</p>
## TailwindCSS support
@@ -65,16 +69,18 @@ yarn create video --tailwind
</Tabs>
-<img style={{width: "100%"}} src="/img/tailwind.gif" />
+<img style={{width: '100%'}} src="/img/tailwind.gif" />
-<p style={{textAlign: "center"}}><em>Yes, you can write a GIF in Tailwind now.</em></p>
+<p style={{textAlign: 'center'}}>
+ <em>Yes, you can write a GIF in Tailwind now.</em>
+</p>
## Springs with durations
You can now do this:
```tsx twoslash
-import { spring } from "remotion";
+import {spring} from 'remotion';
const frame = 10;
// ---cut---
const fps = 30;
@@ -109,7 +115,9 @@ We made the `<OffthreadVideo>` component in order to counteract problems with se
<a href="https://www.instagram.com/p/CftaiHpMM-L/">
<img src="/img/offthreadvideo-all.png" />
- <p style={{textAlign: "center"}}><em>Follow us on Instagram where we explain concepts visually!</em></p>
+ <p style={{textAlign: 'center'}}>
+ <em>Follow us on Instagram where we explain concepts visually!</em>
+ </p>
</a>
## `renderMedia()` returns a buffer
@@ -123,7 +131,9 @@ before they appear in the [`<Player>`](/docs/player): [`resolveRedirect()`](/doc
<a href="https://twitter.com/remotion/status/1538809909965357056">
<img src="/img/preload-all.png" />
- <p style={{textAlign: "center"}}><em>We first announce and explain new features on Twitter!</em></p>
+ <p style={{textAlign: 'center'}}>
+ <em>We first announce and explain new features on Twitter!</em>
+ </p>
</a>
## Sidebar improvements
@@ -155,7 +165,9 @@ We welcome Patric as our intern! As you can see on our [new team page](/about),
<video playsInline src="/img/patric.mp4" autoPlay muted loop />
-<p style={{textAlign: "center"}}><em>Patric's first Remotion video!</em></p>
+<p style={{textAlign: 'center'}}>
+ <em>Patric's first Remotion video!</em>
+</p>
Remotion won the "Most Exciting use of Technology Award" at React Summit - we owe it all to you!
diff --git a/packages/docs/blog/2022-08-10-remotion-3-2.mdx b/packages/docs/blog/2022-08-10-remotion-3-2.mdx
index 8700c48d9b..2b030b0aa2 100644
--- a/packages/docs/blog/2022-08-10-remotion-3-2.mdx
+++ b/packages/docs/blog/2022-08-10-remotion-3-2.mdx
@@ -11,7 +11,7 @@ image: /img/remotion-3-2.png
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-<br/>
+<br />
Up in this release: More ways to create videos and better workflow!
## Lottie support
@@ -19,7 +19,11 @@ Up in this release: More ways to create videos and better workflow!
Announcing the official [`@remotion/lottie`](/docs/lottie) package, including a [typesafe component](/docs/lottie/lottie) and extensive [documentation](/docs/lottie).
With Lottie, you can import thousands of premade animations from [LottieFiles](/docs/lottie/lottiefiles) and we even made a guide on [how to import animations created in After Effects](/docs/after-effects)!
-<p align="center"><sub>Animations from Lottiefiles embedded in Remotion: <a href="https://lottiefiles.com/106683-gold">1</a>, <a href="https://lottiefiles.com/112208-smiling-face-with-halo">2</a>, <a href="https://lottiefiles.com/111529-rocket">3</a></sub></p>
+<p align="center">
+ <sub>
+ Animations from Lottiefiles embedded in Remotion: <a href="https://lottiefiles.com/106683-gold">1</a>, <a href="https://lottiefiles.com/112208-smiling-face-with-halo">2</a>, <a href="https://lottiefiles.com/111529-rocket">3</a>
+ </sub>
+</p>
To get started, install `@remotion/lottie` into your Remotion project and import the [`<Lottie>`](/docs/lottie) component:
@@ -61,7 +65,8 @@ Thanks to [Arthur Denner](https://github.com/arthurdenner) for implementing this
## React Native Skia support
Using the [`@remotion/skia`](/docs/skia) package, you can now use [React Native Skia](https://shopify.github.io/react-native-skia/) in Remotion! Thanks to our collaborators [William Candillon](https://youtube.com/wcandillon) and [Christian Falch](https://twitter.com/chrfalch), Remotion is now a first-class target for React Native Skia.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/skia.gif" />
+
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/skia.gif" />
Check out the [epic announcement video](https://www.youtube.com/watch?v=uvLQ5f3KDXk&t=24s), [read the docs](/docs/skia) and make your first video using:
@@ -104,7 +109,7 @@ Our timeline has some new features that make it behave more like traditional vid
The other new timeline feature is that there are now ticks that appear every second, and when zoomed in, smaller ticks that denote the positions of a single frame. This should help you orient yourself when you are asking yourselves at which point of the video you are at.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/scroll-timeline.gif"/>
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/scroll-timeline.gif" />
## Improvements to audio-only and video-only rendering
diff --git a/packages/docs/blog/2022-11-17-remotion-3-3.mdx b/packages/docs/blog/2022-11-17-remotion-3-3.mdx
index 4d1e64718d..85f6690fe8 100644
--- a/packages/docs/blog/2022-11-17-remotion-3-3.mdx
+++ b/packages/docs/blog/2022-11-17-remotion-3-3.mdx
@@ -12,7 +12,7 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import {NewMuxVideo} from '../src/components/MuxVideo';
import {TableOfContents} from '../docs/paths/table-of-contents';
-import {FfmpegVideo} from '../components/FFmpegVideo'
+import {FfmpegVideo} from '../components/FFmpegVideo';
## No more FFmpeg installation!
@@ -27,7 +27,7 @@ When deploying Remotion on a server, you can now also let Remotion install FFmpe
It is now easy to import Google Fonts into Remotion! [`@remotion/google-fonts`](/docs/google-fonts) takes care of correct loading, and is fully type-safe!
-<video src="/img/google-fonts.mp4" autoPlay loop muted playsInline/>
+<video src="/img/google-fonts.mp4" autoPlay loop muted playsInline />
## New `@remotion/motion-blur` package
@@ -35,9 +35,13 @@ This package contains two components: [`<Trail>`](/docs/motion-blur/trail) and [
A quick demo of what is now called [`<Trail>`](/docs/motion-blur/trail):
-<NewMuxVideo muxId="XPgKwILbTR4jZPxuR2ewfKjRF9cnThudkXPIkSSvQBM" style={{
- width: '100%'
-}} controls />
+<NewMuxVideo
+ muxId="XPgKwILbTR4jZPxuR2ewfKjRF9cnThudkXPIkSSvQBM"
+ style={{
+ width: '100%',
+ }}
+ controls
+/>
## New `@remotion/noise` package
@@ -45,9 +49,13 @@ This package offers easy, type-safe, pure functions for getting creative with no
A video demo of how you can create interesting effects with noise:
-<NewMuxVideo muxId="5o013raWoyw1Jv01MJo02INMEQ5scAt01PveIQ800yYkEhQk" style={{
- width: '100%'
-}} controls />
+<NewMuxVideo
+ muxId="5o013raWoyw1Jv01MJo02INMEQ5scAt01PveIQ800yYkEhQk"
+ style={{
+ width: '100%',
+ }}
+ controls
+/>
## New `@remotion/paths` package
@@ -63,9 +71,13 @@ By pressing <kbd>Cmd+K</kbd>, you can trigger a new Quick Switcher. It has three
- Type `> ` followed by an item in the menu bar to trigger that action.
- Type `? ` followed by a search term to query the docs.
-<NewMuxVideo muxId="t00Mj7y1CLLGjaMvQyoBqcjdy4PIzVrFaT4317fKbzx00" style={{
- width: '100%'
-}} controls />
+<NewMuxVideo
+ muxId="t00Mj7y1CLLGjaMvQyoBqcjdy4PIzVrFaT4317fKbzx00"
+ style={{
+ width: '100%',
+ }}
+ controls
+/>
## Remotion Core
@@ -73,7 +85,7 @@ By pressing <kbd>Cmd+K</kbd>, you can trigger a new Quick Switcher. It has three
[`<Sequence from={0}>`](/docs/sequence) can now be shortened to [`<Sequence>`](/docs/sequence). Our ESLint plugin was updated to suggest this refactor automatically.
-<video src="/img/eslint-from-0.mp4" autoPlay loop muted playsInline/>
+<video src="/img/eslint-from-0.mp4" autoPlay loop muted playsInline />
You can now also `style` a sequence if you did not pass `layout="none"`.
@@ -97,9 +109,13 @@ If your device supports multitouch, you can now pinch to zoom the composition. A
Using two fingers, you can move the canvas around and pressing <kbd>0</kbd> will reset the canvas. For the latter, there is also a button in the top-right corner that you can click.
-<NewMuxVideo muxId="5I01hwK6hs7w0200Ho1KNho7rfU700UVKYDnd7FItANR32U" style={{
- width: '100%'
-}} controls />
+<NewMuxVideo
+ muxId="5I01hwK6hs7w0200Ho1KNho7rfU700UVKYDnd7FItANR32U"
+ style={{
+ width: '100%',
+ }}
+ controls
+/>
### Search the docs from the Remotion Preview
@@ -145,7 +161,7 @@ If you change values in your `.env` file, the Remotion Preview will reload and p
When quitting the Remotion Preview using `Ctrl+C`, for example to render a video, A new popup will signalize that Fast Refresh will not work anymore.
-<img src="/img/disconnected.png" style={{borderRadius: 5}}/>
+<img src="/img/disconnected.png" style={{borderRadius: 5}} />
## Rendering
@@ -192,22 +208,22 @@ Previously, the progress for rendering and encoding was reported individually. T
Previously, [`bundle()`](/docs/bundle) accepted three arguments: `entryPoint`, `onProgress` and `options`.
```ts twoslash title="Old bundle() signature"
-import { bundle } from "@remotion/bundler";
+import {bundle} from '@remotion/bundler';
-bundle("./src/index.ts", (progress) => console.log(progress), {
- publicDir: process.cwd() + "/public",
+bundle('./src/index.ts', (progress) => console.log(progress), {
+ publicDir: process.cwd() + '/public',
});
```
Since getting the progress was less important than some of the options, `bundle()` now accepts an object with options, progress callback and entryPoint altogether:
```ts twoslash title="New bundle() signature"
-import { bundle } from "@remotion/bundler";
+import {bundle} from '@remotion/bundler';
bundle({
- entryPoint: "./src/index.ts",
+ entryPoint: './src/index.ts',
onProgress: (progress) => console.log(progress),
- publicDir: process.cwd() + "/public",
+ publicDir: process.cwd() + '/public',
});
```
@@ -220,11 +236,11 @@ The previous signature is still supported.
The new [`<Thumbnail>`](/docs/player/thumbnail) component is like the [`<Player>`](/docs/player/player), but for rendering a preview of a still. You can use it to display a specific frame of a video without having to render it.
```tsx twoslash
-import React from "react";
+import React from 'react';
const MyComp: React.FC = () => null;
// ---cut---
-import { Thumbnail } from "@remotion/player";
+import {Thumbnail} from '@remotion/player';
const MyApp: React.FC = () => {
return (
@@ -251,7 +267,7 @@ In addition to `timeupdate`, you can subscribe to [`frameupdate`](/docs/player/p
If the Player is displayed in a narrow container, the volume control now goes upwards instead of to the right, in order to save some space.
-<video src="https://remotion-assets.s3.eu-central-1.amazonaws.com/responsivevolume.mov" autoPlay loop muted playsInline/>
+<video src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/responsivevolume.mov" autoPlay loop muted playsInline />
### Get the scale of the Player
@@ -261,7 +277,7 @@ Using the imperative [`getScale()`](/docs/player/player#getscale) method, you ca
On YouTube, the video always starts with controls shown and then they fade out after a few seconds. We have made this the default behavior in Remotion as well, because users would often not realize that the Player is interactive otherwise. You can control the behavior using [`initiallyShowControls`](/docs/player/player#initiallyshowcontrols).
-<video src="/img/controlsinitiallyshown.mov" style={{maxWidth: 400, width: "100%"}} autoPlay loop muted playsInline/>
+<video src="/img/controlsinitiallyshown.mov" style={{maxWidth: 400, width: '100%'}} autoPlay loop muted playsInline />
### Play a section of a video
@@ -282,12 +298,12 @@ You can define the [`initialFrame`](/docs/player/player#initialframe) on which y
In addition to the [`Preload APIs`](/docs/preload), [`prefetch()`](/docs/prefetch) presents another way of preloading an asset so it is ready to display when it is supposed to appear in the Remotion Player.
```tsx twoslash title="Prefetching API"
-import { prefetch } from "remotion";
+import {prefetch} from 'remotion';
-const { free, waitUntilDone } = prefetch("https://example.com/video.mp4");
+const {free, waitUntilDone} = prefetch('https://example.com/video.mp4');
waitUntilDone().then(() => {
- console.log("Video has finished loading");
+ console.log('Video has finished loading');
free(); // Free up memory
});
```
@@ -366,7 +382,7 @@ The following options are now optional:
The new [`npx remotion benchmark`](/docs/cli/benchmark) helps you compare different render configurations and find out which one is the fastest. Currently, you can compare different codecs, compositions and concurrency values. Each configuration is run multiple times in order to increase confidence in the results.
-<img src="/img/benchmark.png" style={{borderRadius: 5, maxWidth: 600, width: "100%"}}/>
+<img src="/img/benchmark.png" style={{borderRadius: 5, maxWidth: 600, width: '100%'}} />
## New guides
diff --git a/packages/docs/blog/2024-03-05-deployable-studio.mdx b/packages/docs/blog/2024-03-05-deployable-studio.mdx
index 600996ba31..ef93567069 100644
--- a/packages/docs/blog/2024-03-05-deployable-studio.mdx
+++ b/packages/docs/blog/2024-03-05-deployable-studio.mdx
@@ -15,8 +15,13 @@ You can share the resulting URLs with your team, clients or friends. They can pr
You can also pass the URL to any Remotion rendering API, such as [`npx remotion render`](/docs/cli/render) and [`renderMedia()`](/docs/renderer/render-media), without having to clone the code.
<p align="center">
- <img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/deployed-studio.png"/>
- <p align="center" style={{fontSize: '0.8em'}}><a href="https://watercolor-map.vercel.app"><em>watercolor-map.vercel.app</em></a> <a href="https://www.remotion.pro/watercolor-map">(Template)</a></p>
+ <img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/deployed-studio.png" />
+ <p align="center" style={{fontSize: '0.8em'}}>
+ <a href="https://watercolor-map.vercel.app">
+ <em>watercolor-map.vercel.app</em>
+ </a>{' '}
+ <a href="https://www.remotion.pro/watercolor-map">(Template)</a>
+ </p>
</p>
## Deploy as a static website
@@ -25,7 +30,9 @@ Use [`npx remotion bundle`](/docs/cli/bundle) to export the Remotion Studio as a
<p align="center">
<img src="/img/deploy-logs.png" />
- <p align="center" style={{fontSize: '0.8em', marginTop: -30}}>Deploy a template to Vercel in 15 seconds</p>
+ <p align="center" style={{fontSize: '0.8em', marginTop: -30}}>
+ Deploy a template to Vercel in 15 seconds
+ </p>
</p>
## Render from a URL
@@ -46,7 +53,12 @@ Sequences are mapped back to the original source code. Click on them in the depl
<p align="center">
<img src="/img/click-stack.png" />
- <p align="center" style={{fontSize: '0.8em', marginTop: -30}}><a href="https://watercolor-map.vercel.app"><em>watercolor-map.vercel.app</em></a> <a href="https://www.remotion.pro/watercolor-map">(Template)</a></p>
+ <p align="center" style={{fontSize: '0.8em', marginTop: -30}}>
+ <a href="https://watercolor-map.vercel.app">
+ <em>watercolor-map.vercel.app</em>
+ </a>{' '}
+ <a href="https://www.remotion.pro/watercolor-map">(Template)</a>
+ </p>
</p>
## Deployed templates
diff --git a/packages/docs/components/GreenscreenExamples/index.tsx b/packages/docs/components/GreenscreenExamples/index.tsx
index c96c134237..bf4c936117 100644
--- a/packages/docs/components/GreenscreenExamples/index.tsx
+++ b/packages/docs/components/GreenscreenExamples/index.tsx
@@ -44,7 +44,7 @@ export const Greenscreen: React.FC<{
<OffthreadVideo
style={{opacity: 0}}
onVideoFrame={onVideoFrame}
- src="https://remotion-assets.s3.eu-central-1.amazonaws.com/just-do-it-short.mp4"
+ src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/just-do-it-short.mp4"
/>
</AbsoluteFill>
<AbsoluteFill>
diff --git a/packages/docs/components/OverlayInDavinci.tsx b/packages/docs/components/OverlayInDavinci.tsx
index 56b930d014..46d8b197b9 100644
--- a/packages/docs/components/OverlayInDavinci.tsx
+++ b/packages/docs/components/OverlayInDavinci.tsx
@@ -8,7 +8,7 @@ export const OverlayInDavinci: React.FC = () => {
<div>
<video
ref={ref}
- src="https://remotion-assets.s3.eu-central-1.amazonaws.com/OverlayInDavinci.mp4"
+ src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/OverlayInDavinci.mp4"
controls
autoPlay
loop
diff --git a/packages/docs/docs/after-effects.mdx b/packages/docs/docs/after-effects.mdx
index 1edf9af399..a1f34669b7 100644
--- a/packages/docs/docs/after-effects.mdx
+++ b/packages/docs/docs/after-effects.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-after-effects.png
id: after-effects
title: Import from After Effects
slug: after-effects
-crumb: "Integrations"
+crumb: 'Integrations'
---
import {InlineStep} from '../components/InlineStep';
@@ -25,54 +25,49 @@ Remotion compositions got their name because After Effects coined this term!
Open After Effects and create a new project and then click `New composition`.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/new-composition.png"/>
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/new-composition.png" />
### Create your animation
Design your animation in After Effects. In this basic example, we used the rounded rectangle tool to draw a blue rounded square and then opened the transform menu and clicked the stopwatch icon to set keyframes for position and rotation to create a simple entrance effect.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/animation.png"/>
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/animation.png" />
### Allow export as JSON
In 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://remotion-assets.s3.eu-central-1.amazonaws.com/scripting.png" />
### Open the Bodymovin plugin
In 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://remotion-assets.s3.eu-central-1.amazonaws.com/bodymovin.png" />
### Export the animation as JSON
First, 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://remotion-assets.s3.eu-central-1.amazonaws.com/bodymovin-tutorial.png" />
### Import the file into Remotion
Copy the file into the Remotion project. The recommended way is to put the JSON inside the `public/` folder of Remotion (create it if necessary) and then load it using [`staticFile()`](/docs/staticfile):
```tsx twoslash title="Animation.tsx"
-import { Lottie, LottieAnimationData } from "@remotion/lottie";
-import { useEffect, useState } from "react";
-import {
- cancelRender,
- continueRender,
- delayRender,
- staticFile,
-} from "remotion";
+import {Lottie, LottieAnimationData} from '@remotion/lottie';
+import {useEffect, useState} from 'react';
+import {cancelRender, continueRender, delayRender, staticFile} from 'remotion';
const Balloons = () => {
- const [handle] = useState(() => delayRender("Loading Lottie animation"));
+ const [handle] = useState(() => delayRender('Loading Lottie animation'));
- const [animationData, setAnimationData] =
- useState<LottieAnimationData | null>(null);
+ const [animationData, setAnimationData] = useState<LottieAnimationData | null>(null);
useEffect(() => {
- fetch(staticFile("animation.json"))
+ fetch(staticFile('animation.json'))
.then((data) => data.json())
.then((json) => {
setAnimationData(json);
@@ -80,7 +75,7 @@ const Balloons = () => {
})
.catch((err) => {
cancelRender(err);
- console.log("Animation failed to load", err);
+ console.log('Animation failed to load', err);
});
}, [handle]);
@@ -96,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://remotion-assets.s3.eu-central-1.amazonaws.com/result.gif" />
## See also
diff --git a/packages/docs/docs/ai/bolt.mdx b/packages/docs/docs/ai/bolt.mdx
index 243125a38b..1976758c28 100644
--- a/packages/docs/docs/ai/bolt.mdx
+++ b/packages/docs/docs/ai/bolt.mdx
@@ -7,7 +7,7 @@ sidebar_label: Bolt.new
On [bolt.new](https://bolt.new), you can use their online AI tool to prompt a Remotion video.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/bolt-new.png" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/bolt-new.png" />
## Source code
diff --git a/packages/docs/docs/ai/mcp.mdx b/packages/docs/docs/ai/mcp.mdx
index 99060c6c87..0f30eddce6 100644
--- a/packages/docs/docs/ai/mcp.mdx
+++ b/packages/docs/docs/ai/mcp.mdx
@@ -24,9 +24,7 @@ To set it up:
"mcpServers": {
"remotion-documentation": {
"command": "npx",
- "args": [
- "@remotion/mcp@latest"
- ]
+ "args": ["@remotion/mcp@latest"]
}
}
}
@@ -38,4 +36,4 @@ If you now ask Cursor in the composer to use the Remotion Documentation, the MCP
<br />
-<img style={{width: 600}} src="https://remotion-assets.s3.eu-central-1.amazonaws.com/mcp-cursor.png" />
+<img style={{width: 600}} src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/mcp-cursor.png" />
diff --git a/packages/docs/docs/lottie/lottie-lottiefiles.mdx b/packages/docs/docs/lottie/lottie-lottiefiles.mdx
index ed80ae9afd..e5205b70bb 100644
--- a/packages/docs/docs/lottie/lottie-lottiefiles.mdx
+++ b/packages/docs/docs/lottie/lottie-lottiefiles.mdx
@@ -1,46 +1,41 @@
---
image: /generated/articles-docs-lottie-lottie-lottiefiles.png
id: lottie-lottiefiles
-sidebar_label: "Finding Lottie files"
-title: "Finding Lottie files to use"
+sidebar_label: 'Finding Lottie files'
+title: 'Finding Lottie files to use'
slug: lottiefiles
-crumb: "Resources"
+crumb: 'Resources'
---
import {InlineStep} from '../../components/InlineStep';
[LottieFiles](https://lottiefiles.com) is a website where people can share and download Lottie files.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/lottiefiles.png" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/lottiefiles.png" />
-<br/>
-<br/>
+<br />
+<br />
If you find a file that you like, click on it, then click `Download` <InlineStep>1</InlineStep> and choose `Lottie JSON` <InlineStep>2</InlineStep> as the format.
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/lottiefiles-instructions.png" />
+
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/lottiefiles-instructions.png" />
### Import the file into Remotion
Copy the file into the Remotion project. The recommended way is to put the JSON inside the `public/` folder of Remotion (create it if necessary) and then load it using [`staticFile()`](/docs/staticfile):
```tsx twoslash title="Animation.tsx"
-import { Lottie, LottieAnimationData } from "@remotion/lottie";
-import { useEffect, useState } from "react";
-import {
- cancelRender,
- continueRender,
- delayRender,
- staticFile,
-} from "remotion";
+import {Lottie, LottieAnimationData} from '@remotion/lottie';
+import {useEffect, useState} from 'react';
+import {cancelRender, continueRender, delayRender, staticFile} from 'remotion';
const Balloons = () => {
- const [handle] = useState(() => delayRender("Loading Lottie animation"));
+ const [handle] = useState(() => delayRender('Loading Lottie animation'));
- const [animationData, setAnimationData] =
- useState<LottieAnimationData | null>(null);
+ const [animationData, setAnimationData] = useState<LottieAnimationData | null>(null);
useEffect(() => {
- fetch(staticFile("animation.json"))
+ fetch(staticFile('animation.json'))
.then((data) => data.json())
.then((json) => {
setAnimationData(json);
diff --git a/packages/docs/docs/media-parser/index.mdx b/packages/docs/docs/media-parser/index.mdx
index 79405e27c5..ce5819f87f 100644
--- a/packages/docs/docs/media-parser/index.mdx
+++ b/packages/docs/docs/media-parser/index.mdx
@@ -139,7 +139,7 @@ Remotion Media Parser supports more [container formats](/docs/media-parser/forma
<table>
<tr>
<td>
- <img style={{width: 100}} src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tellahq_logo.jpeg" />
+ <img style={{width: 100}} src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/tellahq_logo.jpeg" />
</td>
<td>
<a href="https://tella.com">Tella</a> for boosting the development of @remotion/media-parser with $10.000!
diff --git a/packages/docs/docs/troubleshooting/subpixel-rendering.mdx b/packages/docs/docs/troubleshooting/subpixel-rendering.mdx
index 3a0860e52c..65512987b5 100644
--- a/packages/docs/docs/troubleshooting/subpixel-rendering.mdx
+++ b/packages/docs/docs/troubleshooting/subpixel-rendering.mdx
@@ -19,7 +19,7 @@ To counter this effect, you can render your text with:
Notice the difference in this 200x100 video:
<video
- src="https://remotion-assets.s3.eu-central-1.amazonaws.com/smooth-text.mp4"
+ src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/smooth-text.mp4"
playsInline
muted
autoPlay
diff --git a/packages/docs/docs/video-manipulation.mdx b/packages/docs/docs/video-manipulation.mdx
index 9baa076a6f..bbe57b24da 100644
--- a/packages/docs/docs/video-manipulation.mdx
+++ b/packages/docs/docs/video-manipulation.mdx
@@ -91,9 +91,7 @@ declare global {
}
type VideoFrameRequestCallbackId = number;
interface HTMLVideoElement extends HTMLMediaElement {
- requestVideoFrameCallback(
- callback: (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata) => any,
- ): VideoFrameRequestCallbackId;
+ requestVideoFrameCallback(callback: (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata) => any): VideoFrameRequestCallbackId;
cancelVideoFrameCallback(handle: VideoFrameRequestCallbackId): void;
}
}
@@ -140,11 +138,7 @@ export const Greenscreen: React.FC<{
return (
<AbsoluteFill>
<AbsoluteFill>
- <OffthreadVideo
- style={{opacity: 0}}
- onVideoFrame={onVideoFrame}
- src="https://remotion-assets.s3.eu-central-1.amazonaws.com/just-do-it-short.mp4"
- />
+ <OffthreadVideo style={{opacity: 0}} onVideoFrame={onVideoFrame} src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/just-do-it-short.mp4" />
</AbsoluteFill>
<AbsoluteFill>
<canvas ref={canvas} width={width} height={height} />
diff --git a/packages/docs/learn/2022-12-22-apple-wow.mdx b/packages/docs/learn/2022-12-22-apple-wow.mdx
index eb7576bc06..9f34339885 100644
--- a/packages/docs/learn/2022-12-22-apple-wow.mdx
+++ b/packages/docs/learn/2022-12-22-apple-wow.mdx
@@ -18,7 +18,7 @@ import {AppleFireworksTutorial} from '../src/components/tutorials';
Learn how to create an animation that Apple has on its website during the holiday season with this beginner-friendly Remotion tutorial!
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Final.gif" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Final.gif" />
## Video version
@@ -77,14 +77,7 @@ export const MyComposition: React.FC = () => null;
export const RemotionRoot: React.FC = () => {
return (
<>
- <Composition
- id="MyComp"
- component={MyComposition}
- durationInFrames={150}
- fps={30}
- width={1920}
- height={1080}
- />
+ <Composition id="MyComp" component={MyComposition} durationInFrames={150} fps={30} width={1920} height={1080} />
</>
);
};
@@ -132,7 +125,7 @@ export const MyComposition: React.FC = () => {
This results in the following:
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Background.png" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Background.png" />
## Render a dot
@@ -265,13 +258,7 @@ Next, create a component called `<Move>`. This component has a spring animation,
```tsx twoslash title="src/Move.tsx"
import React from 'react';
-import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
+import {AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
export const Move: React.FC<{
children: React.ReactNode;
@@ -352,13 +339,7 @@ Here it gets a little bit trickier, but the following steps are going to make yo
```tsx twoslash title="src/Move.tsx"
import React from 'react';
-import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
+import {AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
export const Move: React.FC<{
children: React.ReactNode;
@@ -976,13 +957,7 @@ import React from 'react';
import {Freeze, interpolate, useCurrentFrame} from 'remotion';
// remapSpeed() is a helper function for the component <Slowed> that takes a frame number and a speed
-const remapSpeed = ({
- frame,
- speed,
-}: {
- frame: number;
- speed: (fr: number) => number;
-}) => {
+const remapSpeed = ({frame, speed}: {frame: number; speed: (fr: number) => number}) => {
let framesPassed = 0;
for (let i = 0; i <= frame; i++) {
framesPassed += speed(i);
@@ -1179,6 +1154,6 @@ export const MyComposition = () => {
By doing all of this you have imported a transparent version of your animoji into your composition. You can run `npm run build` to export your video as MP4. Which should look like this:
-<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/tutorial/Final.gif" />
+<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Final.gif" />
Congrats on your programmatically generated video! πŸŽ‰
diff --git a/packages/example-videos/src/remote-videos.ts b/packages/example-videos/src/remote-videos.ts
index 3128640ab7..966b8da2ad 100644
--- a/packages/example-videos/src/remote-videos.ts
+++ b/packages/example-videos/src/remote-videos.ts
@@ -8,12 +8,11 @@ dotenv.config({
});
export const remoteExampleVideos = {
- mp4av1:
- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/mp4-av1.mp4',
+ mp4av1: 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/mp4-av1.mp4',
fragmentedMoofTrickyDuration:
'https://remotion-video-submissions.s3.ap-northeast-1.amazonaws.com/6048e3e4-ffbb-43a5-b6b5-75643365646a',
webmNoCodecPrivate:
- 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/webm-no-codecprivate.webm',
+ 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/webm-no-codecprivate.webm',
tsKeyframes:
'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/ts-keyframes.ts',
largeStsd:
diff --git a/packages/example/src/VideoOnCanvas/greenscreen.tsx b/packages/example/src/VideoOnCanvas/greenscreen.tsx
index efb70af7fb..da47ac44f9 100644
--- a/packages/example/src/VideoOnCanvas/greenscreen.tsx
+++ b/packages/example/src/VideoOnCanvas/greenscreen.tsx
@@ -39,7 +39,7 @@ export const Greenscreen: React.FC = () => {
<AbsoluteFill>
<OffthreadVideo
style={{opacity: 0}}
- src="https://remotion-assets.s3.eu-central-1.amazonaws.com/just-do-it-short.mp4"
+ src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/just-do-it-short.mp4"
onVideoFrame={onVideoFrame}
/>
</AbsoluteFill>
diff --git a/packages/media-parser/src/containers/iso-base-media/get-actual-number-of-channels.ts b/packages/media-parser/src/containers/iso-base-media/get-actual-number-of-channels.ts
index 737454a6b0..53115eb675 100644
--- a/packages/media-parser/src/containers/iso-base-media/get-actual-number-of-channels.ts
+++ b/packages/media-parser/src/containers/iso-base-media/get-actual-number-of-channels.ts
@@ -11,7 +11,7 @@ type AudioDecoderConfig = {
codecPrivate: MediaParserCodecData | null;
};
-// Example video: 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/riverside.mp4';
+// Example video: 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/riverside.mp4';
// This video has `numberOfChannels = 2`, but the actual number of channels is `1` according to Codec Private.
// Therefore, prioritizing Codec Private over `numberOfChannels`.
export const getActualDecoderParameters = ({
diff --git a/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts b/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts
index 94c4838632..98f7aa9f5a 100644
--- a/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts
+++ b/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts
@@ -202,7 +202,7 @@ export const parseMdatSection = async (
}
if (samplesWithIndex.track.type === 'video') {
- // https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/sei_checkpoint.mp4
+ // https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/sei_checkpoint.mp4
// Position in file 0x0001aba615
// https://github.com/remotion-dev/remotion/issues/4680
// In Chrome, we may not treat recovery points as keyframes
diff --git a/packages/media-parser/src/test/parse-and-download-video.test.ts b/packages/media-parser/src/test/parse-and-download-video.test.ts
index 17395d4238..8b1693faf6 100644
--- a/packages/media-parser/src/test/parse-and-download-video.test.ts
+++ b/packages/media-parser/src/test/parse-and-download-video.test.ts
@@ -44,7 +44,7 @@ test(
'should be able to parse and download remote video',
async () => {
const {size} = await downloadAndParseMedia({
- src: 'https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/transportstream.ts',
+ src: 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/transportstream.ts',
fields: {
size: true,
},
@@ -100,7 +100,7 @@ test('should be able to continue on error', () => {
const controller = mediaParserController();
expect(
downloadAndParseMedia({
- src: 'https://remotion-assets.s3.eu-central-1.amazonaws.com/jkl.gif',
+ src: 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/jkl.gif',
controller,
writer: nodeWriter('jkl.gif'),
onError: () => ({action: 'download'}),