Type
ConversionAudioOptions
Audio-specific options.
ts
type ConversionAudioOptions = {
discard?: boolean;
numberOfChannels?: number;
sampleRate?: number;
codec?: AudioCodec;
bitrate?: number | Quality;
forceTranscode?: boolean;
};
See AudioCodec
and Quality
.
Used by
Properties
discard
ts
discard?: boolean;
If true
, all audio tracks will be discarded and will not be present in the output.
numberOfChannels
ts
numberOfChannels?: number;
The desired channel count of the output audio.
sampleRate
ts
sampleRate?: number;
The desired sample rate of the output audio, in hertz.
codec
ts
codec?: AudioCodec;
The desired output audio codec.
See AudioCodec
.
bitrate
ts
bitrate?: number | Quality;
The desired bitrate of the output audio.
See Quality
.
forceTranscode
ts
forceTranscode?: boolean;
When true
, audio will always be re-encoded instead of directly copying over the encoded samples.