🎥 Make videos programmatically with React
allow amplification
Jonny Burger08f54536c1b7
diff --git a/packages/docs/docs/audio.mdx b/packages/docs/docs/audio.mdxindex e24823500c..327c258d78 100644--- a/packages/docs/docs/audio.mdx+++ b/packages/docs/docs/audio.mdx@@ -54,8 +54,9 @@ export const MyVideo = () => {```:::note-On iOS Safari, it's not possible to granularly change the volume of a media tag.-Only values `0` and `1` will be respected by the browser.+On iOS Safari, it's currently not possible to granularly change the volume of a media tag.+Before Remotion v4.0.279, the maximum value was 1.+Since v4.0.279, the Web Audio API will be used to synthetically amplify audio that has a volume higher than 1.:::### `loopVolumeCurveBehavior`<AvailableFrom v="4.0.142" />@@ -160,11 +161,6 @@ A `toneFrequency` of 0.5 would lower the pitch by half, and a `toneFrequency` ofIn the [Remotion Studio](/docs/terminology/studio) 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?`<AvailableFrom v="3.3.17" />~--Deprecated since v4.0.279: It is now always allowed to set the volume higher than `1`.-To prevent synthetic amplification, set a volume not higher than 1.-### `pauseWhenBuffering`<AvailableFrom v="4.0.111"/>If set to `true` and the audio is buffering, 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.@@ -181,6 +177,13 @@ Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayCustomize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.+### ~`allowAmplificationDuringRender?`<AvailableFrom v="3.3.17" />~++Deprecated since v4.0.279: This prop intended to opt into setting the volume to a value higher than one, even though it would only apply during render.++The option does not make sense anymore, because it is now possible to set the volume higher than `1`.+To prevent synthetic amplification, set a volume not higher than 1.+## 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.mdx b/packages/docs/docs/offthreadvideo.mdxindex 1979aaff7c..abbab31cde 100644--- a/packages/docs/docs/offthreadvideo.mdx+++ b/packages/docs/docs/offthreadvideo.mdx@@ -110,8 +110,9 @@ export const MyComposition = () => {```:::note-On iOS Safari, it's not possible to granularly change the volume of a media tag.-Only values `0` and `1` will be respected by the browser.+On iOS Safari, it's currently not possible to granularly change the volume of a media tag.+Before Remotion v4.0.279, the maximum value was 1.+Since v4.0.279, the Web Audio API will be used to synthetically amplify audio that has a volume higher than 1.:::### `loopVolumeCurveBehavior?`<AvailableFrom v="4.0.142" />@@ -192,11 +193,6 @@ export const MyComposition = () => {In the [Studio](/docs/terminology/studio) 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?`<AvailableFrom v="3.3.17" />~--Deprecated since v4.0.279: It is now always allowed to set the volume higher than `1`.-To prevent synthetic amplification, set a volume not higher than 1.-### `toneFrequency?`<AvailableFrom v="4.0.47"/>Adjust the pitch of the audio - will only be applied during rendering.@@ -257,6 +253,13 @@ _removed in v4.0.0_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?`<AvailableFrom v="3.3.17" />~++Deprecated since v4.0.279: This prop intended to opt into setting the volume to a value higher than one, even though it would only apply during render.++The option does not make sense anymore, because it is now possible to set the volume higher than `1`.+To prevent synthetic amplification, set a volume not higher than 1.+### Other propsThe props [`onError`](/docs/img#onerror), `className` and `style` are supported and get passed to the underlying HTML element. Remember that during render, this is a `<img>` element, and during Preview, this is a `<video>` element.diff --git a/packages/docs/docs/video.mdx b/packages/docs/docs/video.mdxindex cf3890d71e..6bde42b51e 100644--- a/packages/docs/docs/video.mdx+++ b/packages/docs/docs/video.mdx@@ -125,8 +125,9 @@ export const MyComposition = () => {```:::note-On iOS Safari, it's not possible to granularly change the volume of a media tag.-Only values `0` and `1` will be respected by the browser.+On iOS Safari, it's currently not possible to granularly change the volume of a media tag.+Before Remotion v4.0.279, the maximum value was 1.+Since v4.0.279, the Web Audio API will be used to synthetically amplify audio that has a volume higher than 1.:::### `loopVolumeCurveBehavior?`<AvailableFrom v="4.0.142" />@@ -196,11 +197,6 @@ export const MyComposition = () => {In the [Studio](/docs/terminology/studio) 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?`<AvailableFrom v="3.3.17" />~--Deprecated since v4.0.279: It is now always allowed to set the volume higher than `1`.-To prevent synthetic amplification, set a volume not higher than 1.-### `toneFrequency?`<AvailableFrom v="4.0.47"/>Adjust the pitch of the audio - will only be applied during rendering.@@ -242,6 +238,13 @@ Corresponds to the [`crossOrigin`](https://developer.mozilla.org/en-US/docs/Web/One of `"anonymous"`, `"use-credentials"` or `undefined`.Default: `"anonymous"` if `onVideoFrame` is specified, `undefined`, otherwise.+### ~`allowAmplificationDuringRender?`<AvailableFrom v="3.3.17" />~++Deprecated since v4.0.279: This prop intended to opt into setting the volume to a value higher than one, even though it would only apply during render.++The option does not make sense anymore, because it is now possible to set the volume higher than `1`.+To prevent synthetic amplification, set a volume not higher than 1.+## 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.