node-av / lib / avChannelLayoutDescribe
Function: avChannelLayoutDescribe()
avChannelLayoutDescribe(
channelLayout
):null
|string
Defined in: src/lib/utilities.ts:866
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
null
| string
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