Hi,
Probably you don’t set DISPLAY environment variable:
$ export DISPLAY=:0(or 1)
If it does not work after setting it, please follow the steps to check if the USB camera can be launched in gstreamer pipeline:
Jetson Nano FAQ
Q: I have a USB camera. How can I launch it on Jetson Nano?