Skip to content

@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

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.