I use blueiris, but if your hik’s have a webserver available you can use this info maybe to get it done:
I use the picture card with blue iris, and it is very efficient (no noticeable increase in htop on either BI pc or the ha pi). Just FYI if you run HA on a pi, you definitely don’t want to try and make it an NVR… use it just for viewing only, no recording or processing. Using mqtt for motion alerts is fine, but processing hd video is best left to a dedicated nvr or pc, or better yet the camera itself (I love dahua IVS for that reason).