xarray_video.H264#
- class xarray_video.H264(fps=25, crf=None)[source]#
Codec providing compression using h264 via pyav
- Parameters:
fps (int (optional)) – Frames per second in compressed chunk (default 25)
crf (int (optional)) – Constant Rate Factor (default None). The range of the CRF scale is 0–51, where 0 is lossless, and 51 is worst quality possible. If None will use the ffmepg defautt (23).
Attributes
codec_idCodec identifier.
Methods
- decode(buf, out=None)[source]#
Decode data in buf.
- Parameters:
buf (buffer-like) – Encoded data. May be any object supporting the new-style buffer protocol.
out (buffer-like, optional) – Writeable buffer to store decoded data. N.B. if provided, this buffer must be exactly the right size to store the decoded data.
- Returns:
dec – Decoded data. May be any object supporting the new-style buffer protocol.
- Return type:
buffer-like