I have a Jetson TX2 and 6 IMX274 cameras. I would like to stream one or more of these cameras on an html page. Does Argus provide any options to create this stream? I was able to start a preview stream using sample 09_camera_jpeg_capture but I’d like to be able to view this stream over the network while I’m also recording frames and h264/h265 video locally.
Thanks but I’d like to use HTTP Not rtsp. I was looking at the command at:
This option uses hlssink. I modified it to:
sudo gst-launch-1.0 nvcamerasrc sensor-id = 0 ! ‘video/x-raw(memory:NVMM),width=1280, height=720, framerate=60/1, format=NV12’ ! hlssink max-files=5 playlist-location=/var/www/playlist.m3u8 location=/var/www/segment%05d.ts playlist-root=http://[MY TX2’s IP]
But I’m not sure if it is working. When I visit my IP address I don’t get a stream. What do I need to change?
/var/www/ tends to imply having a http server running on your system.
I don’t have a http server running, but I have been able to use this from file with onboard camera with this pipeline, using H264 encoding and mpeg TS mux:
gst-launch-1.0 nvcamerasrc ! nvvidconv ! 'video/x-raw(memory:NVMM), format=I420, width=640, height=480, framerate=30/1' ! omxh264enc bitrate=10000000 ! h264parse ! mpegtsmux ! hlssink max-files=5 location=hlssink.%05d.ts playlist-location=playlist.m3u8
After 1st ts file is completed, the playlist.m3u8 file is created and I can read it with my web browser (firefox calls my default video reader). This gives minimum 15s latency. Not sure this is reliable, but you may try and improve.