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