報錯有兩種情況,分別如下:
cuGraphicsGLRegisterBuffer failed with error(304) gst_eglglessink_cuda_init texture = 1
Error: Could not get cuda device count (cudaErrorInsufficientDriver)
解決方案:
-
如果出現第一個錯誤,重裝NVIDIA 驅動,並勾選setup nvidia x config
-
如果還不行,出現第二個錯誤,需要把cuda卸載,並重裝。如果遇到無法安裝,安裝完還是報錯,命令行
nvidia-smi
查看一下,如果cuda版本那裏標err,那麼重裝cuda時,勾選nvidia driver試一下。
參考:
論壇:cuGraphicsGLRegisterBuffer failed with error(304) gst_eglglessink_cuda_init texture =1