Bitstream Filters¶
- class av.bitstream.BitStreamFilterContext¶
Bases:
object
Initializes a bitstream filter: a way to directly modify packet data.
Wraps AVBSFContext
- Parameters:
- filter(Packet packet=None)¶
Processes a packet based on the filter_description set during initialization. Multiple packets may be created.
- flush()¶
Reset the internal state of the filter. Should be called e.g. when seeking. Can be used to make the filter usable again after draining it with EOF marker packet.