🎥 Make videos programmatically with React
document audioCodec flag
Jonny Burger3bef797ad9bf
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.md b/packages/docs/docs/lambda/rendermediaonlambda.mdindex f0c64f00d2..f7c4d49f2d 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.md+++ b/packages/docs/docs/lambda/rendermediaonlambda.md@@ -96,6 +96,20 @@ The option `h264-mkv` has been renamed to just `h264` since `v3.3.34`. Use `h264See also [`renderMedia() -> codec`](/docs/renderer/render-media#codec).+### `audioCodec?`++_"pcm-16" | "aac" | "mp3" | "opus", available from v3.3.41_++Choose the encoding of your audio.++- Each Lambda chunk might actually choose an uncompressed codec and convert it in the final encoding stage to prevent audio artifacts.+- Default is dependent on the chosen `codec`+- Choose `pcm-16` if you need uncompressed audio+- Not all video containers support all audio codecs.+- This option takes precedence if the `codec` option also specifies an audio codec.++Refer to the [Encoding guide](/docs/encoding) to see defaults and supported combinations.+### `forceHeight`_available from v3.2.40_diff --git a/packages/docs/docs/renderer/render-media.md b/packages/docs/docs/renderer/render-media.mdindex f1e2b34669..85507e006a 100644--- a/packages/docs/docs/renderer/render-media.md+++ b/packages/docs/docs/renderer/render-media.md@@ -43,6 +43,19 @@ _"h264" (default) | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" |Choose a suitable codec for your output media. Refer to the [Encoding guide](/docs/encoding) to find the best codec for your use case.+### `audioCodec?`++_"pcm-16" | "aac" | "mp3" | "opus", available from v3.3.41_++Choose the encoding of your audio.++- Default is dependent on the chosen `codec`+- Choose `pcm-16` if you need uncompressed audio+- Not all video containers support all audio codecs.+- This option takes precedence if the `codec` option also specifies an audio codec.++Refer to the [Encoding guide](/docs/encoding) to see defaults and supported combinations.+### `audioBitrate?`_string - optional, available from v3.2.32_diff --git a/packages/docs/docs/renderer/stitch-frames-to-video.md b/packages/docs/docs/renderer/stitch-frames-to-video.mdindex 945d157dfd..889828df6b 100644--- a/packages/docs/docs/renderer/stitch-frames-to-video.md+++ b/packages/docs/docs/renderer/stitch-frames-to-video.md@@ -63,6 +63,19 @@ _optional_Set a codec. See the [encoding guide](/docs/encoding) for available values and guidance on which one to choose. The default is `h264`.+### `audioCodec?`++_"pcm-16" | "aac" | "mp3" | "opus", available from v3.3.41_++Choose the encoding of your audio.++- Default is dependent on the chosen `codec`+- Choose `pcm-16` if you need uncompressed audio+- Not all video containers support all audio codecs.+- This option takes precedence if the `codec` option also specifies an audio codec.++Refer to the [Encoding guide](/docs/encoding) to see defaults and supported combinations.+### `audioBitrate?`_string - optional, available from v3.2.32_