🎥 Make videos programmatically with React
tone mapped
Jonny Burger5db23d3dea3e
diff --git a/packages/docs/docs/offthreadvideo.md b/packages/docs/docs/offthreadvideo.mdxsimilarity index 92%rename from packages/docs/docs/offthreadvideo.mdrename to packages/docs/docs/offthreadvideo.mdxindex d9364cb484..778afeccda 100644--- a/packages/docs/docs/offthreadvideo.md+++ b/packages/docs/docs/offthreadvideo.mdx@@ -199,6 +199,15 @@ A `toneFrequency` of 0.5 would lower the pitch by half, and a `toneFrequency` ofIf set to `true` and the video is loading, the Player will enter into the [native buffering state](/docs/player/buffer-state). The default is `false`, but will become `true` in Remotion 5.0.+### `toneMapped`<AvailableFrom v="4.0.117" />++Since Remotion 4.0.117, Remotion will adjust the colors of videos in different color spaces (such as HDR) when converting to RGB, to counteract color shifts.+Since the browser is painting in sRGB, this is necessary to ensure that the colors are displayed correctly.+This behavior is by default `true` and can be disabled by setting `toneMapped` to `false`.+Disabling tone mapping will speed up rendering, but may result in less vibrant colors.++Prior to Remotion 4.0.117, tone mapping was always disabled, and the `toneMapped` prop was not available.+### ~~`imageFormat` <AvailableFrom v="3.0.22" />~~_removed in v4.0.0_@@ -212,7 +221,8 @@ The props [`onError`](/docs/img#onerror), `className` and `style` are supported## Performance tips-Only set `transparent` to `true` if you need transparency. It is slower than non-transparent frame extraction.+Only set `transparent` to `true` if you need transparency. It is slower than non-transparent frame extraction.+If you don't care about color accuracy, you can set `toneMapped` to `false` as well to save time on color conversion.## Looping a videodiff --git a/packages/docs/docs/use-offthread-video-texture.md b/packages/docs/docs/use-offthread-video-texture.mdindex 3d88546dab..0634113804 100644--- a/packages/docs/docs/use-offthread-video-texture.md+++ b/packages/docs/docs/use-offthread-video-texture.md@@ -113,6 +113,15 @@ If set to `true`, frames will be extracted as PNG, enabling transparency but alsIf set to `false` (_default_), frames will be extracted as bitmap (BMP), which is faster.+### `toneMapped`<AvailableFrom v="4.0.117" />++Since Remotion 4.0.117, Remotion will adjust the colors of videos in different color spaces (such as HDR) when converting to RGB, to counteract color shifts.+Since the browser is painting in sRGB, this is necessary to ensure that the colors are displayed correctly.+This behavior is by default `true` and can be disabled by setting `toneMapped` to `false`.+Disabling tone mapping will speed up rendering, but may result in less vibrant colors.++Prior to Remotion 4.0.117, tone mapping was always disabled, and the `toneMapped` prop was not available.+## Looping a textureLike `<OffthreadVideo>`, looping a video [is not supported out of the box](/docs/offthreadvideo#looping-a-video) but can be achieved with the `<Loop>` component.