You have to build opencv with gstreamer enabled.
https://qengineering.eu/install-opencv-on-orin-nano.html follow this one and read script there's lots of options to select(like cuda, cudnn something like this)