You can use Pavtube ByteCopy version 126.96.36.199 and 188.8.131.52 to encode Blu-ray and DVD to HEVC utilizing Nvidia GPU hardware acceleration.
Fatest HEVC CUDA Encoding >> Step 1: Simply click "File" > "Load from Disc" to load your Blu-ray and DVD movies
Fatest HEVC CUDA Encoding >> Step 2: Choose "H.265 MP4 Video" in "Format" drop-down list
Fatest HEVC CUDA Encoding >> Step 3: Move your cursor to "Tools" button on the top of the main interface to choose "Options". Then check "Enable GPU Encoder Acceleration".
Fatest HEVC CUDA Encoding >> Step 4: Back to the main interface. Start the HEVC encode with NVIDIA CUDA acceleration by hitting on "Convert" button.
You can refer to the full guide here.