NVIDIA / VideoProcessingFramework

Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.32k stars 233 forks source link

Failure to initialise Decoder object inside provided Docker file #473

Open DanCorvesor opened 1 year ago

DanCorvesor commented 1 year ago

Describe the bug I cannot initialise the PyNvDecoder inside the docker container built from the instructions in the README file.

video_file = "lapsleeve.mp4"
gpuID = 0
nvDec = nvc.PyNvDecoder(video_file, gpuID)
RuntimeError: /opt/src/PyNvCodec/src/PyNvCodec.cpp:61
CUDA error: CUDA_ERROR_SYSTEM_DRIVER_MISMATCH
system has unsupported display driver / cuda driver combination

To Reproduce Steps to reproduce the behavior:

  1. Build the docker container (as defined in the README)
  2. Run the docker container (as described in the README)
  3. Try to initialise decoder class on video object locally inside docker container

Expected behavior Class creates successfully

Desktop (please complete the following information):

Additional context I am suspecting this might me to do with the difference in CUDA toolkit versions on the host vs inside the container however I can't find anything obvious documented online to imply this is a problem. If it is the root cause, it would be great if you could update the README to reflect this requirement.

gedoensmax commented 1 year ago

Hi your driver version is lower than the minimal require 525 stated in our README. If you rely on this driver version you will have to downgrade your used Video Codec SDK version by leveraging:

sankovalev commented 1 year ago

I ran into the same error with docker, my driver version is 530.30.02