Protocol RTSP

I used the following command with the rmtp protocol on a server Nginx with rtmp protocol and all is ok.

sudo gst-launch-1.0 v4l2src device = / dev / video0! videoscale! ‘video / x-raw, width = 1280, height = 720, framerate = 25/1, format = YUY2’! nvvidconv! nvv4l2h264enc preset-level = 4 MeasureEncoderLatency = 1! h264parse! flvmux! rtmpsink sync = false location = ‘rtmp: // live / test’

Now I need to use the same command with RTSP protocol with the authentication on a Nimble Streemer server with rtsp protocol.
How can I change this command?

We usually use test-launch to launch a RTSP server:

The implementation is mostly in gstreamer frameworks and we enable hardware acceleration. For advanced control of RTSP, we would suggest go to gstreamer forum.