Python
Install pyav on your system
pip install pyav
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.
data = ...
codec = av.CodecContext.create("h264", "r")
packets = av.packet.Packet(data)
image = codec.decode(packets)[0].to_image()