-
OverviewWhen decoding av1 encoded packet, it shows "av.error.NotImplementedError: [Errno 40] Function not implemented: 'avcodec_send_packet()'" OSWindows 11, python 3.12.8 FFmpegffmpeg version 7.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers Test code and sourceimport av
codec = av.CodecContext.create('av1', 'r')
with open("packet_0.bin", "rb") as f:
data = f.read()
packets = codec.parse(data)
for packet in packets:
frames = codec.decode(packet) <---
for frame in frames:
print("Frame decoded:", frame) FFmpeg testing methodffmpeg -i packet_0.bin -c:v copy packet_0.ivf
ffplay packet_0.ivf |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've been getting a similar error. Please run your code again with this enabled: Also what is the output of these? And what cpu and gpu do you have? |
Beta Was this translation helpful? Give feedback.
-
This problem only occurs for me when I build from source. How did you install pyav? Was it through pip or build from source or something else? |
Beta Was this translation helpful? Give feedback.
This problem only occurs for me when I build from source. How did you install pyav? Was it through pip or build from source or something else?