You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i try pyav with ascend device(HUAWEI altas NPU) and ascend provides us a example of pulling stream and hard decode.
#-----
video = av.open(self._stream_name)
stream = [s for s in video.streams if s.type == 'video']
for packet in video.demux([stream[0]]):
in_frame_np = np.frombuffer(packet.to_bytes(), np.byte)
size = in_frame_np.size
#-----
this demo will run success with av==11.0.0 but will fail with 12.3.0 and python tell me "AttributeError: 'av.packet.Packet' object has no attribute 'to_bytes'"
Activity