How to use av.CodecContext.create(..., hwaccel=...) with raw H265 chunks? #1929
Unanswered
Chastrlove
asked this question in
1. Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Unable to use
av.CodecContext.create(..., hwaccel=...)
with raw H265 chunks andvideotoolbox
on macOSHi PyAV team,
I'm trying to build a real-time H265 decoding pipeline using PyAV on macOS, with hardware-accelerated decoding via VideoToolbox.
I noticed that
av.CodecContext.create(codec_name, 'r', hwaccel=...)
accepts a thirdhwaccel
argument, and I attempted to use it like this.✅ What I'm Trying to Do
.h265
or.mp4
file.videotoolbox
as a hardware accelerator for performance..to_ndarray("bgr24")
, and pass to OpenCV for post-processing.av.open() and demux
— my use case works directly with stream fragments.🧪 My Attempt (Non-working Code)
Decoding failed: [Errno 1313558101] Unknown error occurred: 'avcodec_send_packet()'
My Questions
test.h265.zip
Beta Was this translation helpful? Give feedback.
All reactions