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
Build opencv in Docker throw no cuda error when calling cv::cudacodec::createVideoReader #17649
Comments
I don't know what I missing in docker, it works in origin Ubuntu18.04. |
I think I found the issue, I set |
@PistonY I would be very grateful if you could share the repo associated and the working dockerfile- I am also struggling with this issue (e.g. sources.list) |
@bml1g12 Hi, this is not a Dockerfile issue, if you want to use |
errr...This |
@PistonY Thanks for your response. So you managed to get the cudacodec.VideoWriter and cudacodec.VideoReader working? I've been experimenting here https://github.com/bml1g12/cudacodec_docker_opencv When I compile the Dockerfile you listed, with three changes:
Source: https://github.com/bml1g12/cudacodec_docker_opencv/blob/master/Dockerfile when I compile and run
Are you saying I should try:
I did try this with this Dockerfile (https://github.com/bml1g12/cudacodec_docker_opencv/blob/master/Dockerfile_2) but got the same error. As part of the install, like you did, I include |
Yes, |
Interesting - where should it be copied into such that opencv can find it? If I put it into the root, I expect opencv has no way of finding it? (and its already present inside the Video_Codec_SDK_9.1.23.zip which is being unzipped) |
And No not |
The path is |
@PistonY Thanks you for this information; but it seems in CUDA 9+ this file no longer is installed to the system NVIDIA/NvPipe#12 (comment) (I am using CUDA 10.1) They say on that issue that its been replaced by I can see in your Dockerfile (the same one I have tried), you copy it from the Video Codec SDK here: https://github.com/bml1g12/cudacodec_docker_opencv/blob/5023d2623bd9d219dd3cb88b8be41dacdcbc0ac7/Dockerfile#L38 |
Well..Can you have a try compile opencv outside docker? Does And the link you show me, I copy it to that path because it could make me compile with Try this path: |
When compiling on my local machine with a slightly different built I had the same problem. I will try again today, using exactly the same commands as the dockerfile on my local machine. To clarify, I can compile opencv without errors using the Dockerfule, but after compiling and running this demo: https://github.com/bml1g12/cudacodec_docker_opencv/blob/master/videowrite.cpp I get:
I do not have this file on my host machine:
|
你现在在Docker中编译成功可以使用nvcuvid进行解码了吗,并且支持所有的GPU计算架构,可以告诉下你是怎么处理的吗?谢谢啦@PistonY |
Hi, I build opencv with cuda and BUILD_opencv_cudacodec, but when I use
I got an error
I use opencv 4.3.0 (latest)
CUDA 10.2
CUDNN 7.6
Here is my calling
std:: cout << cv::getBuildInformation() << std::endl;
resultsAnd the full
Dockerfile
define as belowI make sure I can see CUDA device in docker container.The results of
nvidia-smi
andnvcc -v
are all right.The text was updated successfully, but these errors were encountered: