Skip to content

πŸŽ₯ Make videos programmatically with React

changelog

Jonny Burgerba3f9bae0219
diff --git a/packages/docs/docs/4-0-migration.md b/packages/docs/docs/4-0-migration.md
index 62b8ab7e17..5ca99167a8 100644
--- a/packages/docs/docs/4-0-migration.md
+++ b/packages/docs/docs/4-0-migration.md
@@ -216,7 +216,7 @@ Config.overrideWebpackConfig((config) => {
});
```
-This is automatically applied in [`@remotion/skia`](/docs/skia).
+The [`@remotion/skia`](/docs/skia) package does not require `react-native` or `react-native-web` anymore.
## The `TComposition` type now includes a Zod schema
@@ -256,64 +256,66 @@ If you register a composition with a component that requires some props, you now
## Changelog
-- "Remotion Preview" has been renamed to "Remotion Studio"
-- `npx remotion preview` is deprecated for `npx remotion studio`
-- New Props editor allows for editing props with schema
-- New render button allows for rendering through the CLI
-- New `@remotion/zod-types` package
-- Node 14 is not supported anymore
-- `defaultProps` is now mandatory if the component accepts props
-- New [`selectComposition()`](/docs/renderer/select-composition) API
-- `<Composition>` now accepts a [`calculateMetadata`](/docs/composition) prop
-- `getCanExtractFramesFast()` has been removed
-- New `npx remotion ffmpeg` command
-- New `npx remotion ffprobe` command
-- `<Composition>` now accepts a schema
-- `react-native` no longer aliases to `react-native-web`
-- Configuration logic has been moved to `@remotion/cli/config`
-- Rich timeline was removed
-- FFmpeg is now included in Remotion, no need to install it anymore
-- ProRes now exports uncompressed audio by default
-- `onSlowestFrames` has been removed
-- `ImageFormat` has been removed in favor of `StillImageFormat` and `VideoImageFormat`
-- You can now export stills as PDF or WebP
-- Lambda does not support the x86 architecture anymore
-- `OffthreadVideoImageFormat` has been removed
-- `imageFormat` has been removed from `<OffthreadVideo>`
-- `<Img>` will cancel the render if the image cannot be loaded
-- The `TComposition` type now includes a Zod schema
-- Type `WebpackOverrideFn` moved
-- `staticFile()` URI-unsafe characters handling
-- ESLint has been upgraded to `8.42.0`
-- Webpack has been upgraded to `5.83.1`
-- TypeScript ESLint has been upgraded to `5.59.9`
-- `<OffthreadVideo>` now uses a Rust-based frame extractor
-- New Google TTS template
-- `Config.*.setOption()` syntax has been removed.
-- `Config.setOutputFormat()` has now been removed.
-- `downloadVideo()` alias has been removed.
-- `<MotionBlur>` has been removed
-- `getParts()` has been removed
-- Studio now has custom scrollbars preventing
-- FFmpeg has been updated to 6.0
-- Chrome on Lambda has been updated to
-- `eslint-plugin-react` has been updated to `7.32.2`
-- `eslint-plugin-react-hooks` has been updated to `4.6.0`
-- New ESLint rule: Use the right import in the config file
-- New logger for verbose mode: No more interlacing between logs and progress bars
-- New indicator whether a file has been overwritten (`β—‹`) or newly created (`+`)
-- Printing server URL again to the console if all Studio instances have been closed
-- Less React re-renders across the Remotion Studio
-- Dropdown component does not overflow anymore
-- New shortcut for collapsing left sidebar: `Cmd/Ctrl+B`
-- Allow open of the project in editor from the Remotion Studio
-- `quality` is now `--jpeg-quality`
-- `estimatePrice` does not accept `architecture` anymore.
-- Remotion Studio is tested to work well offline.
-- If an `<Audio>` cannot be fetched, it will cancel the render.
-- Types: `src` is required for an `<Img>` tag
-- The development Webpack cache will not be removed anymore if setting `--bundle-cache=false`.
-- For contributors: Updated `pnpm` to `8.5.1`
-- `Date` objects now work as default props
-- Recommended Docker file does not install `ffmpeg` anymore
-- Removed `ensureFfmpeg()` and `ensureFfprobe()`
+- **remotion**: `defaultProps` of a [`<Composition>`](/docs/composition) is now mandatory if the component accepts props
+- **remotion**: [`<Composition>`](/docs/composition) now accepts a schema
+- **remotion**: [`<Composition>`](/docs/composition) now accepts a [`calculateMetadata`](/docs/composition) prop
+- **remotion**: The `OffthreadVideoImageFormat` type has been removed.
+- **remotion**: [`imageFormat`](/docs/offthreadvideo#imageformat-availablefrom-v3022-) has been removed from `<OffthreadVideo>`
+- **remotion**: [`transparent`](/docs/offthreadvideo#transparent) has been added to `<OffthreadVideo>`.
+- **remotion**: [`<Img>`](/docs/img) will cancel the render if the image cannot be loaded
+- **remotion**: If an [`<Audio>`](/docs/audio) tag cannot be loaded, it will cancel the render.
+- **remotion**: The `TComposition` type now requires a Zod schema as a generic.
+- **remotion**: Type `WebpackOverrideFn` moved from `remotion` to `@remotion/bundler`
+- **remotion**: [`staticFile()`](/docs/staticfile#handling-uri-unsafe-characters) now supports URI-unsafe characters by default
+- **remotion**: Types: `src` is required for an [`<Img>`](/docs/img) tag
+- **@remotion/bundler**: The development Webpack cache will not be removed anymore if setting [`--bundle-cache=false`](/docs/cli/render#--bundle-cache).
+- **@remotion/bundler**: `react-native` no longer aliases to `react-native-web`
+- **@remotion/bundler**: Webpack has been upgraded to `5.83.1`
+- **@remotion/cli**: `npx remotion preview` is deprecated for [`npx remotion studio`](/docs/cli/studio)
+- **@remotion/cli**: New [Props editor](/docs/visual-editing) allows for editing props with schema
+- **@remotion/cli**: New [Render button](/docs/render) allows for rendering through the CLI
+- **@remotion/cli**: New [`npx remotion ffmpeg`](/docs/cli/ffmpeg) command
+- **@remotion/cli**: New [`npx remotion ffprobe`](/docs/cli/ffprobe) command
+- **@remotion/cli**: Configuration logic has been moved to [`@remotion/cli/config`](/docs/4-0-migration)
+- **@remotion/cli**: [Rich timeline was removed](https://github.com/remotion-dev/remotion/issues/1602#issuecomment-1401618644).
+- **@remotion/cli**: [`Config.*.setOption()`](/docs/4-0-migration) syntax has been removed.
+- **@remotion/cli**: [`Config.setOutputFormat()`](/docs/config#setoutputformat) has now been removed.
+- **@remotion/cli**: Studio now has custom dark scrollbars
+- **@remotion/cli**: New logger for verbose mode: No more interlacing between logs and progress bars
+- **@remotion/cli**: New indicator whether a file has been overwritten (`β—‹`) or newly created (`+`)
+- **@remotion/cli**: Printing server URL again to the console if all Studio instances have been closed
+- **@remotion/cli**: Less React re-renders across the Remotion Studio
+- **@remotion/cli**: Dropdowns cannot overflow anymore
+- **@remotion/cli**: New shortcut for collapsing left sidebar: `Cmd/Ctrl+B`
+- **@remotion/cli** Allow open of the project in editor from the Remotion Studio
+- **@remotion/cli**: `Date` objects now work properly in `defaultProps`
+- **@remotion/cli**: Remotion Studio is tested to work well offline.
+- **@remotion/cli**: "Remotion Preview" has been renamed to ["Remotion Studio"](/docs/timeline)
+- **@remotion/eslint-config**: `eslint-plugin-react` has been updated to `7.32.2`
+- **@remotion/eslint-config**: `eslint-plugin-react-hooks` has been updated to `4.6.0`
+- **@remotion/eslint-plugin**: New ESLint rule: Use the right import in the config file
+- **@remotion/lambda**: Lambda does not support the [x86 architecture anymore](/docs/lambda/runtime)
+- **@remotion/lambda**: Chrome on Lambda [has been updated to 114](/docs/lambda/runtime)
+- **@remotion/lambda**: [`downloadVideo()`](/docs/lambda/downloadmedia) alias has been removed.
+- **@remotion/lambda**: [`estimatePrice()`](/docs/lambda/estimateprice) does not accept `architecture` anymore.
+- **@remotion/lambda**: Removed FFmpeg from the Lambda Layer.
+- **@remotion/motion-blur**: [`<MotionBlur>`](/docs/motion-blur/motion-blur) has been removed
+- **@remotion/paths**: [`getParts()`](/docs/paths/get-parts) has been removed
+- **@remotion/renderer**: New [`selectComposition()`](/docs/renderer/select-composition) API
+- **@remotion/renderer**: [`getCanExtractFramesFast()`](/docs/renderer/get-can-extract-frames-fast) has been removed
+- **@remotion/renderer**: FFmpeg is now included in Remotion (v6.0), no need to install it anymore
+- **@remotion/renderer**: [ProRes](/docs/encoding) now exports uncompressed audio by default.
+- **@remotion/renderer**: [`onSlowestFrames`](/docs/renderer/render-media#onslowestframes) has been removed
+- **@remotion/renderer**: [`renderMedia()`](/docs/renderer/render-media#return-value) now returns an object instead of a `Buffer`.
+- **@remotion/renderer**: The `ImageFormat` type has been removed in favor of `StillImageFormat` and `VideoImageFormat`
+- **@remotion/renderer**: You can now [export stills as PDF or WebP](/docs/stills)
+- **@remotion/renderer**: `quality` is now [`jpegQuality`](/docs/renderer/render-media#jpegquality)
+- **@remotion/renderer**: Removed [`ensureFfmpeg()`](/docs/renderer/ensure-ffmpeg) and [`ensureFfprobe()`](/docs/renderer/ensure-ffprobe)
+- **@remotion/renderer**: [`<OffthreadVideo>`](/docs/offthreadvideo) now uses a Rust-based frame extractor
+- **@remotion/zod-types**: [New package](/docs/zod-types)!
+- All packages: The minimum Node version is now 16.0.0
+- All packages: For contributors: Updated `pnpm` to `8.5.1`
+- All packages: ESLint has been upgraded to `8.42.0`
+- All packages: TypeScript ESLint has been upgraded to `5.59.9`
+- [New Google TTS template!](/templates/gtts)
+- [Recommended Docker file](/docs/docker) does not install `ffmpeg` anymore
diff --git a/packages/docs/docs/renderer/ensure-ffmpeg.md b/packages/docs/docs/renderer/ensure-ffmpeg.md
index 7fe3d33fa0..52653ec551 100644
--- a/packages/docs/docs/renderer/ensure-ffmpeg.md
+++ b/packages/docs/docs/renderer/ensure-ffmpeg.md
@@ -13,7 +13,7 @@ This API has been removed in v4.0 and is not necessary to call anymore. This pag
Checks if the `ffmpeg` binary is installed and if it is not, [downloads it and puts it into your `node_modules` folder](/docs/ffmpeg).
-```ts twoslash title="ensure.mjs"
+```ts title="ensure.mjs"
// @module: esnext
// @target: es2018
import { ensureFfmpeg } from "@remotion/renderer";
diff --git a/packages/docs/docs/renderer/ensure-ffprobe.md b/packages/docs/docs/renderer/ensure-ffprobe.md
index bd23c1b176..ad6639906d 100644
--- a/packages/docs/docs/renderer/ensure-ffprobe.md
+++ b/packages/docs/docs/renderer/ensure-ffprobe.md
@@ -13,7 +13,7 @@ This API has been removed in v4.0 and is not necessary to call anymore. This pag
Checks if the `ffprobe` binary is installed and if it is not, [downloads it and puts it into your `node_modules` folder](/docs/ffmpeg).
-```ts twoslash title="ensure.mjs"
+```ts title="ensure.mjs"
// @module: esnext
// @target: es2018
import { ensureFfprobe } from "@remotion/renderer";
diff --git a/packages/docs/docs/renderer/get-can-extract-frames-fast.md b/packages/docs/docs/renderer/get-can-extract-frames-fast.md
index 804dc9a809..9d28ed94d0 100644
--- a/packages/docs/docs/renderer/get-can-extract-frames-fast.md
+++ b/packages/docs/docs/renderer/get-can-extract-frames-fast.md
@@ -13,7 +13,7 @@ _Available since v3.3.2, removed in v4.0 - Part of the `@remotion/renderer` pack
Probes whether frames of a video can be efficiently extracted when using [`<OffthreadVideo>`](/docs/offthreadvideo).
-```ts twoslash
+```ts
// @module: ESNext
// @target: ESNext
import { getCanExtractFramesFast } from "@remotion/renderer";
diff --git a/packages/docs/docs/staticfile.md b/packages/docs/docs/staticfile.md
index 027d5ff466..38cf3f4b08 100644
--- a/packages/docs/docs/staticfile.md
+++ b/packages/docs/docs/staticfile.md
@@ -67,7 +67,7 @@ If you are a Create React App or Next.JS user, you might be used to just to be a
Use the `getStaticFiles()` API to get a list of available options.
-## Handling URI-unsafe characters <AvailableFrom v="4.0.0"/>
+## Handling URI-unsafe characters<AvailableFrom v="4.0.0"/>
Since `v4.0`, `staticFile()` encodes the filename using `encodeURIComponent`.
If you encoded the path by yourself until now, make sure to drop your encoding before passing the path into `staticFile()` to avoid double encoding.