How do I crop the top and bottom of a video with hidden overflow?

To present videos in a more stylized manner by trimming away extraneous content from the top and bottom regions, similar to applying a cinematic aspect ratio. I want to make sure that the parts of the video that are cropped out are not just compressed but completely invisible to the viewer, maintaining the video’s original aspect ratio in the visible area.

What techniques or CSS properties should I consider to accomplish this effect, particularly when working within a web development context?