Hi again,
So, my network topology for this case is I will be deploying about x4 xaviers with this same setup to stream via RTSP (ideally) to a server. All of the pipelines would be the same and it is all on prem, i.e. no internet.
Right now, I just want to make sure that I can view the rtsp stream from another computer as I do on the xavier itself.
I have a mac, or I could hook up my host computer (i.e. the one I used to flash, running ubuntu) via ethernet to one another and view the stream via python or vlc. Right now I don’t really care as I just want to make sure the connection is good.
sudo netstat -laputen
On xavier results in;
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:37639 0.0.0.0:* LISTEN 0 49727 1647/containerd
tcp 0 0 0.0.0.0:8554 0.0.0.0:* LISTEN 1000 79706 5207/python3
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 14563 1/init
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 105 15907 351/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 51210 1722/sshd: /usr/sbi
tcp 0 0 127.0.0.1:26263 0.0.0.0:* LISTEN 1000 77329 5080/code-oss
tcp6 0 0 :::111 :::* LISTEN 0 14565 1/init
tcp6 0 0 :::22 :::* LISTEN 0 51223 1722/sshd: /usr/sbi
udp 0 0 127.0.0.53:53 0.0.0.0:* 105 15906 351/systemd-resolve
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 14564 1/init
udp 0 0 0.0.0.0:5353 0.0.0.0:* 120 11010 393/avahi-daemon: r
udp 0 0 0.0.0.0:41468 0.0.0.0:* 120 11012 393/avahi-daemon: r
udp6 0 0 :::111 :::* 0 14566 1/init
udp6 0 0 :::35630 :::* 120 11013 393/avahi-daemon: r
udp6 0 0 :::5353 :::* 120 11011 393/avahi-daemon: r
The firewall on both my mac and my xavier are off.
I don’t have gstreamer on my mac, I can install it, but that’s why I was just using vlc for testing so I can make sure the ethernet connection works and move on to the next step.
Kind of a side question, but in my code i shared with you earlier;
import gi
gi.require_version("Gst","1.0")
gi.require_version("GstVideo","1.0")
gi.require_version("GstRtspServer","1.0")
from gi.repository import GLib, Gst, GstVideo, GstRtspServer
Gst.init(None)
mainloop = GLib.MainLoop()
server = GstRtspServer.RTSPServer()
mounts = server.get_mount_points()
factory = GstRtspServer.RTSPMediaFactory()
factory.set_launch('( v4l2src device=/dev/video0 ! image/jpeg, width=640, height=480, framerate=30/1, format=MJPG ! rtpjpegpay name=pay0 )')
mounts.add_factory("/test", factory)
server.attach(None)
print("stream ready at rtsp://127.0.0.1:8554/test")
mainloop.run()
I understand my print statement is only designating port 8554, but if viewiing from another computer shouldn’t I therefore use;
rtsp://ip_address_of_xavier
Do I need the 8554/test?
Thanks again