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
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..