Best way to record YUV 422 10 bit video from hdmi

Hi,
YUV444 8/10 bit encoding is lossless encoding, so bitrate is high and cannot be controlled. IF you would like to give it a try, please refer to this post:
Can tx2nx decode YUV444? - Jetson & Embedded Systems / Jetson TX2 - NVIDIA Developer Forums

For your use-case, a possible solution is to convert to YUV420 10-but and encode into h265 stream. Please also check 01_video_encode.