Skip to content

🎥 Make videos programmatically with React

separate audio to option

Jonny Burgerdadf5d369036
diff --git a/packages/renderer/src/options/options-map.ts b/packages/renderer/src/options/options-map.ts
index c37afbd2a0..1b9c51696c 100644
--- a/packages/renderer/src/options/options-map.ts
+++ b/packages/renderer/src/options/options-map.ts
@@ -15,6 +15,7 @@ import {offthreadVideoCacheSizeInBytesOption} from './offthreadvideo-cache-size'
import {preferLosslessAudioOption} from './prefer-lossless';
import {reproOption} from './repro';
import {scaleOption} from './scale';
+import {separateAudioOption} from './separate-audio';
import {delayRenderTimeoutInMillisecondsOption} from './timeout';
import {videoBitrateOption} from './video-bitrate';
import {videoCodecOption} from './video-codec';
@@ -38,9 +39,11 @@ export const optionsMap = {
timeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption,
binariesDirectory: binariesDirectoryOption,
forSeamlessAacConcatenation: forSeamlessAacConcatenationOption,
+ separateAudioTo: separateAudioOption,
},
stitchFramesToVideo: {
forSeamlessAacConcatenation: forSeamlessAacConcatenationOption,
+ separateAudioTo: separateAudioOption,
},
renderStill: {
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
diff --git a/packages/renderer/src/render-media.ts b/packages/renderer/src/render-media.ts
index 59d3681d15..a0f6e737c0 100644
--- a/packages/renderer/src/render-media.ts
+++ b/packages/renderer/src/render-media.ts
@@ -124,7 +124,6 @@ export type InternalRenderMediaOptions = {
concurrency: number | string | null;
finishRenderProgress: () => void;
binariesDirectory: string | null;
- separateAudioTo: string | null;
} & MoreRenderMediaOptions;
type Prettify<T> = {
diff --git a/packages/renderer/src/stitch-frames-to-video.ts b/packages/renderer/src/stitch-frames-to-video.ts
index e777f5d02e..830556c2f4 100644
--- a/packages/renderer/src/stitch-frames-to-video.ts
+++ b/packages/renderer/src/stitch-frames-to-video.ts
@@ -69,7 +69,6 @@ type InternalStitchFramesToVideoOptions = {
ffmpegOverride: null | FfmpegOverrideFn;
colorSpace: ColorSpace;
binariesDirectory: string | null;
- separateAudioTo: string | null;
} & ToOptions<typeof optionsMap.stitchFramesToVideo>;
export type StitchFramesToVideoOptions = {
@@ -99,7 +98,6 @@ export type StitchFramesToVideoOptions = {
x264Preset?: X264Preset | null;
colorSpace?: ColorSpace;
binariesDirectory?: string | null;
- separateAudioTo?: string | null;
} & Partial<ToOptions<typeof optionsMap.stitchFramesToVideo>>;
type ReturnType = Promise<Buffer | null>;