node-av / lib / avChannelLayoutDescribe
Function: avChannelLayoutDescribe()
avChannelLayoutDescribe(
channelLayout):string|null
Defined in: src/lib/utilities.ts:1255
Describe channel layout.
Returns a human-readable description of a channel layout.
Direct mapping to av_channel_layout_describe().
Parameters
channelLayout
Partial<ChannelLayout>
Channel layout to describe
Returns
string | null
Layout description string, or null
Example
typescript
const stereo = { nbChannels: 2, order: 1, u: { mask: 3n } };
const desc = avChannelLayoutDescribe(stereo); // Returns "stereo"See
av_channel_layout_describe - FFmpeg Doxygen
