-
Notifications
You must be signed in to change notification settings - Fork 386
Using h264_cuvid as hardware decoder #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Make sure that you use the latest nVidia Graphics Driver. Also, in many cases, h264 decoders require Below is a rough example of decoding an h264 video stream with the
There's a bug (as of PyAV 6.2.0) in the setter of Also, for my case, deleting (no matter explicitly deleted or implicitly done by the garbage collector) an instance of |
@inism how can I install av to support hardware acceleration? 1.install the ffmpeg with cuda support.
3.Then I followed your script, get error blew:
Can you give me some advices? |
It looks like you did something wrong when you build PyAv, On Windows, when you build av, a path to ffmpeg's .h and .lib files should be given to allow PyAv can properly interface to the specific ffmpeg version you want to use, and it can be done like this: ADDED ============= I realized that you have installed rvillalba-novetta's branch, not the official one. |
@inism |
@mikeboers does this fall under the category of "won't fix" bugs related to hardware acceleration? |
@jlaine Yeah... I’m not sure what to do here. Seems like an end build problem or an ffmpeg problem, not PyAV. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to use h264_cuvid decoder to utilize NVIDIA GPU in order to decode the stream using PyAV.
My PyAV version is v6.0.0.
The code works, but it doesn't really utilize the h264_cuvid decoder, it still uses the CPU as decoder.
These are the relevant parts of my code, please let me know what am I doing wrong:
FFMpeg build:
Thanks in advance!
The text was updated successfully, but these errors were encountered: