Skip to content
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

Set VideoGear's decoder. #69

Closed
scostandache opened this issue Nov 7, 2019 · 1 comment
Closed

Set VideoGear's decoder. #69

scostandache opened this issue Nov 7, 2019 · 1 comment
Labels
INVALID 🛑 This doesn't seem right or non-applicable or missing information QUESTION ❓ User asked about the working/usage of VidGear APIs.

Comments

@scostandache
Copy link

Is there any way to set the video decoder for the VideoGear class? I've been looking through docs but not so many details found.
I would like to use the GPU in order to decode the video, in order to speed up the process a little.

@abhiTronix abhiTronix added MISSING : TEMPLATE ❔ Asked to re-edit the PR/Issue according to template. MISSING : INFORMATION 🔍 Requested proper information/evidence about the Issue/PR in context. QUESTION ❓ User asked about the working/usage of VidGear APIs. INVALID 🛑 This doesn't seem right or non-applicable or missing information WON'T FIXED 🚫 This issue will not be worked on and removed MISSING : TEMPLATE ❔ Asked to re-edit the PR/Issue according to template. MISSING : INFORMATION 🔍 Requested proper information/evidence about the Issue/PR in context. WON'T FIXED 🚫 This issue will not be worked on labels Nov 7, 2019
@abhiTronix
Copy link
Owner

I would like to use the GPU in order to decode the video, in order to speed up the process a little.

OpenCV don't support GPU decoding in python yet and therefore there's no way of doing this in vidgear. OpenCV does supports Nvidia GPUs for speeding up DNN's computation modules which can used if you compile OpenCV with CUDA support, follow this article for more information.

But wait there's a Hack, export OPENCV_FFMPEG_CAPTURE_OPTIONS="video_codec|h264_cuvid" environment variable which works for some people but decrease performance for others and more information can be found in this issue: opencv/opencv#11220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INVALID 🛑 This doesn't seem right or non-applicable or missing information QUESTION ❓ User asked about the working/usage of VidGear APIs.
Projects
None yet
Development

No branches or pull requests

2 participants