Buffers

class av.buffer.Buffer

Bases: object

A base class for PyAV objects which support the buffer protocol, such as Packet and Plane.

buffer_ptr

The memory address of the buffer.

buffer_size

The size of the buffer in bytes.

update(input)

Replace the data in this object with the given buffer.

Accepts anything that supports the buffer protocol, e.g. bytes, Numpy arrays, other Buffer objects, etc..