This structure stores compressed data. It is typically exported by demuxers and then passed as input to decoders, or received as output from encoders and then passed to muxers.
const packet = new ffmpeg.Packet([buffer])buffer(Buffer, optional): Initial packet data
Returns: A new Packet instance
Gets the packet data buffer.
Returns: Buffer
Gets the stream index this packet belongs to.
Returns: number
Get or set the key frame flag.
Returns: boolean
Gets or sets the side data associated with the packet.
Returns: Array<SideData>
Decrements the reference count and unreferences the packet.
Returns: void
Destroys the Packet and frees all associated resources. Automatically called when the object is managed by a using declaration.
Returns: void