🎥 Make videos programmatically with React
document `allowAmplificationDuringRender`
Jonny Burger78bbf633c23f
diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.mdindex 23f147fd5d..be90ffa54a 100644--- a/packages/docs/docs/audio.md+++ b/packages/docs/docs/audio.md@@ -137,6 +137,13 @@ _Available from v3.2.42_During [Preview](/docs/terminology#remotion-preview) or in the [Remotion Player](/docs/player), Remotion will seek the audio if it gets too much out of sync with Remotion's internal time - be it due to the audio loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.+## `allowAmplificationDuringRender`++_Available from v3.3.17_++Make values for [`volume`](#volume) greater than `1` result in amplification during renders.+During Preview, the volume will be limited to `1`, since the browser cannot amplify audio.+## See also- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/audio/Audio.tsx)diff --git a/packages/docs/docs/offthreadvideo.md b/packages/docs/docs/offthreadvideo.mdindex 4f741c49d4..7ace8bb8fa 100644--- a/packages/docs/docs/offthreadvideo.md+++ b/packages/docs/docs/offthreadvideo.md@@ -52,6 +52,13 @@ _Available since v3.0.22_Either `jpeg` or `png`. Default `jpeg`.With `png`, transparent videos (VP8, VP9, ProRes) can be displayed, however it is around 40% slower, with VP8 videos being [much slower](/docs/slow-method-to-extract-frame).+## `allowAmplificationDuringRender`++_Available from v3.3.17_++Make values for [`volume`](/docs/video#volume) greater than `1` result in amplification during renders.+During Preview, the volume will be limited to `1`, since the browser cannot amplify audio.+## Performance tipsAvoid embedding a video beyond it's end (for example: Rendering a 5 second video inside 10 second composition). To create parity with the `<Video>` element, the video still displays its last frame in that case. However, to fetch the last frame specifically is a significantly more expensive operation than a frame from a known timestamp.diff --git a/packages/docs/docs/video.md b/packages/docs/docs/video.mdindex 5b76858822..fedb5ad979 100644--- a/packages/docs/docs/video.md+++ b/packages/docs/docs/video.md@@ -188,6 +188,13 @@ _Available from v3.2.42_During [Preview](/docs/terminology#remotion-preview) or in the [Remotion Player](/docs/player), Remotion will seek the video if it gets too much out of sync with Remotion's internal time - be it due to the video loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.+## `allowAmplificationDuringRender`++_Available from v3.3.17_++Make values for [`volume`](#volume) greater than `1` result in amplification during renders.+During Preview, the volume will be limited to `1`, since the browser cannot amplify audio.+## Speed up renders for video with silent audioRemotion will download the whole video during render in order to mix its audio. If the video contains a silent audio track, you can add the muted property to signal to Remotion that it does not need to download the video and make the render more efficient.