Skip to content

@seydx/rtsp / RawAudioTarget

Interface: RawAudioTarget

Defined in: sources/raw-audio-transcoder.ts:80

Target format a RawAudioTranscoder produces.

Defaults are chosen so the output can be handed straight to an AvSource/MultiSource input with format: 'aac': AAC-LC in an ADTS elementary stream.

Properties

bitRate?

optional bitRate?: number

Defined in: sources/raw-audio-transcoder.ts:103

Target encoder bitrate in bits per second.

When omitted the encoder picks its own default.


channels?

optional channels?: number

Defined in: sources/raw-audio-transcoder.ts:96

Number of output channels. Defaults to the input channel count.


codec?

optional codec?: string

Defined in: sources/raw-audio-transcoder.ts:86

Encoder codec name as understood by FFmpeg.

Default

ts
'aac'

format?

optional format?: string

Defined in: sources/raw-audio-transcoder.ts:113

Output muxer format name.

The default adts yields a self-describing AAC elementary stream that downstream demuxers probe without any side information.

Default

ts
'adts'

sampleRate?

optional sampleRate?: number

Defined in: sources/raw-audio-transcoder.ts:91

Output sample rate in hertz. Defaults to the input sample rate.