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
{{ message }}
Repository navigation
VideoFrame.to_ndarray(format="rgb24") raises [Errno 95] Operation not supported for NVDEC frames with reserved colorspace metadata (regression from 16.1.0) #2208
import av
codec = av.Codec("hevc_cuvid", "r")
ctx = av.CodecContext.create(codec)
ctx.options = {"surfaces": "8"}
with open("sample.h265", "rb") as f:
raw = f.read()
packet = av.Packet(raw)
frames = ctx.decode(packet)
for frame in frames:
img = frame.to_ndarray(format="rgb24") # raises in 17.0.0, works in 16.1.0
Activity
neon-ninja commentedon Jun 23, 2026
I think the scope of this bug is a bit wider than you think. It seems to occur with VP9 too. Here's a
yt-dlpcommand to download a sample video file:yt-dlp -o video.mp4 https://www.facebook.com/healthPluspharmacyng/videos/menopause-is-a-natural-phase-of-life-that-every-woman-will-experience-yet-it-oft/1498212924203766/Here's a test script using that video file:
This script outputs:
after downgrading to
av<17, it outputs:outputs:
My browser also fails to play this video, but VLC works
Make transfer/primaries conversion opt-in in reformat, fixes PyAV-Org…