Python
Install pythons av package on your system
pip install av
Decode the data transmitted in the Image Header’s imageDataP
payload using pyav. The input
data
buffer can be read from a log file or from disk as a python array.
import av
data = ...
codec = av.CodecContext.create("h264", "r")
packets = av.packet.Packet(data)
image = codec.decode(packets)[0].to_image()