Skip to content

🎥 Make videos programmatically with React

new date

Jonny Burgerb0b008426f6f
diff --git a/packages/docs/blog/2022-11-14-remotion-3-3.md b/packages/docs/blog/2022-11-16-remotion-3-3.md
similarity index 86%
rename from packages/docs/blog/2022-11-14-remotion-3-3.md
rename to packages/docs/blog/2022-11-16-remotion-3-3.md
index 00e034ec57..dd168c84a0 100644
--- a/packages/docs/blog/2022-11-14-remotion-3-3.md
+++ b/packages/docs/blog/2022-11-16-remotion-3-3.md
@@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem';
import {MuxVideo} from '../src/components/MuxVideo';
import {TableOfContents} from '../components/TableOfContents/paths';
-## FFmpeg installation made easy
+## No more FFmpeg installation!
Now, when you are rendering a video and don't have FFmpeg installed, Remotion will download a copy for you.
Previously, installing FFmpeg required 7 steps on Windows and took several minutes when using Homebrew on macOS.
@@ -26,13 +26,15 @@ When deploying Remotion on a server, you can now also let Remotion install FFmpe
[`<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.mov" autoPlay loop muted playsInline/>
+
You can now also `style` a sequence if you did not pass `layout="none"`.
A `ref` can be attached to `<Sequence>` and [`<AbsoluteFill>`](/docs/absolute-fill).
### Video and Audio support `loop` prop
-The [`<Video>`](/docs/video) and [`<Audio>`](/docs/audio) components now support the [`loop`](/docs/video#loop) property
+The [`<Video>`](/docs/video) and [`<Audio>`](/docs/audio) components now support the [`loop`](/docs/video#loop) property.
## Preview
@@ -54,6 +56,10 @@ 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.
+<MuxVideo muxId="t00Mj7y1CLLGjaMvQyoBqcjdy4PIzVrFaT4317fKbzx00" style={{
+ width: '100%'
+}} controls />
+
### Search the docs from the Remotion Preview
Pressing <kbd>?</kbd> to reveal the keyboard shortcuts now has a secondary function: You can type in any term to search the Remotion documentation!
@@ -98,6 +104,8 @@ 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}}/>
+
## Rendering
### `--muted` render
@@ -204,13 +212,13 @@ If the Player is displayed in a narrow container, the volume control now goes up
<video src="/img/responsivevolume.mov" autoPlay loop muted playsInline/>
-### getScale() method
+### Get the scale of the Player
-Using the imperative `getScale()` method, you can now how big the displayed size is in comparison to the canvas width of the component.
+Using the imperative [`getScale()`](/docs/player/player#getscale) method, you can now how big the displayed size is in comparison to the canvas width of the component.
### Controls are initially shown
-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.
+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/>
@@ -289,7 +297,7 @@ pnpm create video --remix
## New `@remotion/google-fonts` package
-It is now easy to import Google Fonts into Remotion! `@remotion/google-fonts` takes care of correct loading, and is fully type-safe!
+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/>
@@ -349,22 +357,30 @@ 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 increase confidence in the results.
-## Rename RemotionVideo and src/index.ts
+<img src="/img/benchmark.png" style={{borderRadius: 5, maxWidth: 600}}/>
+
+## Better structure and naming in templates
-## API updates
+The file that was previously called `src/Video.tsx` in templates is now called `src/Root.tsx`, because it did not contain a video, but a list of compositions. That component was also renamed from `RemotionVideo` to `RemotionRoot`. The new naming makes more sense., because that component is passed into [`registerRoot()`](/docs/register-root).
-### `getGifDurationInSeconds()`
+## Notable improvements
+
+### Get the duration of a GIF
+
+The new function [`getGifDurationInSeconds()`](/docs/gif/get-gif-duration-in-seconds) allows you to get the duration of a GIF.
### Lottie animation direction
+Using the new [`direction`](/docs/lottie/lottie#direction) prop, you can play a Lottie animation backwards.
+
### Lottie embedded images
-## Notable bug fixes
+Should a Lottie animation contain an embedded image, it will now be properly awaited.
-- Temp dir is cleaned up
-- Parallel encoding disabled when not having a lot of RAM
-- GIFs in strict mode fixed
+### Temporary directory Cleanup
-```
+The temporary directory that Remotion creates is now completely cleaned up after every render.
-```
+### Parallel encoding turned off if memory is low
+
+[Parallel encoding](/blog/3-0#parallel-rendering-and-encoding) will not be used when a machine has little free RAM. You can also force-disable it using [disallowParallelEncoding](/docs/renderer/render-media#disallowparallelencoding)?
diff --git a/packages/docs/static/img/benchmark.png b/packages/docs/static/img/benchmark.png
new file mode 100644
index 0000000000..07f121983a
Binary files /dev/null and b/packages/docs/static/img/benchmark.png differ
diff --git a/packages/docs/static/img/disconnected.png b/packages/docs/static/img/disconnected.png
new file mode 100644
index 0000000000..0ab0e4eaff
Binary files /dev/null and b/packages/docs/static/img/disconnected.png differ
diff --git a/packages/docs/static/img/eslint-from-0.mp4 b/packages/docs/static/img/eslint-from-0.mp4
new file mode 100644
index 0000000000..84047ae39c
Binary files /dev/null and b/packages/docs/static/img/eslint-from-0.mp4 differ