A network cabinet keeps the recorder, switches, patch panels and other equipment in one place, protected from dust and unauthorised access. Height is measured in rack units (U): 1U = 44.45 mm.
A small office or CCTV system needs a 6–12U wall cabinet; a server room takes a 22–42U floor cabinet with 800–1000 mm depth.
Add up the height of all equipment and leave 30–50% spare capacity.
Yes, 19" rack recorders mount directly and smaller ones sit on a shelf; check the depth.