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

I am still not sure what the issue is, you need to provide more detail in your answers. Lets be specific.
From your description it is unclear if the issue is that one machine is slower than the other or that it works on one machine but on the other it fails after 17 seconds

I don’t understand. Do you mean it takes 179 seconds on the one machine and 17 seconds on the other if you only read from the video and you don’t write? If so does it read all the frames on both machines?