Build opencv with cuda and Video Codec SDK support for acceleration not working

both, apologize for my misstake, actually 179 is the cost time if I comment out cv2.cudacodec.createVideoWriter or it’ll be 300+. and I don’t receive any errors, it only runs very slow. and same video and code runs well on other computer, so I’m sure video is not the problem. Do you have any idea what can cause this issue, other hardware or what?