@mega-yfue/eufy-sdk / extractParamSets
Function: extractParamSets()
ts
function extractParamSets(buf): ParamSets | undefined;Extract the SPS/PPS (and, for H.265, VPS) parameter-set NAL bodies from a keyframe access unit. Each returned buffer is the raw NAL (start-code stripped), ready to embed in an avcC / hvcC decoder-config record. Returns undefined if no parameter sets are present.
Parameters
buf
Buffer
Returns
ParamSets | undefined