node-av / lib / avGetPixFmtName
Function: avGetPixFmtName()
avGetPixFmtName(
pixFmt
):null
|string
Defined in: src/lib/utilities.ts:221
Get pixel format name.
Returns the name of the pixel format as a string.
Direct mapping to av_get_pix_fmt_name().
Parameters
pixFmt
Pixel format
Returns
null
| string
Format name, or null if unknown
Example
typescript
import { AV_PIX_FMT_YUV420P, AV_PIX_FMT_RGB24 } from 'node-av/constants';
const name1 = avGetPixFmtName(AV_PIX_FMT_YUV420P); // Returns "yuv420p"
const name2 = avGetPixFmtName(AV_PIX_FMT_RGB24); // Returns "rgb24"
See
av_get_pix_fmt_name - FFmpeg Doxygen