Streaming from a TX2 to the internet

I would like to know how i could stream live with low latency from my NVIDIA TX2 using the onboard camera so that it is accessible remotely. I have tried experimenting with g streamer and have been unsuccessful. Could someone please provide a complete pipeline?
I figured that if I could stream it to the local network I am on then I can then use port forwarding so that it is remotely accessible

Thanks
Anand

You may download and build gst-rtsp-server. You may then try test-launch, in examples directory.

The pipeline may be different depending on the L4T release you’re running. You can check it with:

head -n 1 /etc/nv_tegra_release

Up to R28.2.0:

./test-launch "nvcamerasrc ! video/x-raw(memory:NVMM), format=I420, framerate=30/1, width=1920, height=1080 ! omxh265enc bitrate=30000000 ! rtph265pay name=pay0 pt=96 "

From R28.2.1:

./test-launch "nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, framerate=30/1, width=1920, height=1080 ! omxh265enc bitrate=30000000 ! rtph265pay name=pay0 pt=96 "

Receiver:

gst-launch-1.0 -v rtspsrc latency=100 location=rtsp://tx2:8554/test ! decodebin ! videoconvert ! xvimagesink

where tx2 is the IP address of the streaming tx2.

I would like to embed the results in a web browser where h265 isn’t supported.
Is there any way I can make this pipeline for h264 encoding. simply replacing 265 with 264 in your pipeline isn’t working

Thanks
Anand

For H264, you would specify baseline profile.
Check this post.