template config file for camera and RTSP

Dear,

I’m testing DeepStream 3.0 on Jetson AGX Xavier.
Although MP4 files work well as streaming sources, RTSP and camera are in trouble.
CSI camera(for Jetson TX2) and USB camera are prepared to test.

Would you share a template config file for these sources?

Thank you in advance,

+1
CSI camera(for Jetson TX2) and USB camera do not appear to work at once.

Thanks Andrey1984,

Would you share some config for camera each other?

update what I did.

This Jetson AGX Xavier a MIPI camera from Jetson TX2 is attached works well and shows upside-down display.
No matter. I would turn upside-down Jetson AGX Xavier dev. kit as well.

And now, USB camera is to be resolved.

Thanks

Hi,
We have verified two cases:

rtsp streaming:

$ sudo ./jetson_clocks.sh
$ sudo nvpmodel -m 0
[Server]
sudo apt-get install libgstrtspserver-1.0 libgstreamer1.0-dev
gcc test-launch.c -o test-launch $(pkg-config --cflags --libs gstreamer-1.0 gstreamer-rtsp-server-1.0)
[test-launch.c download from: https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-launch.c]
./test-launch "filesrc location=sample_720p.mp4 ! qtdemux ! rtph264pay name=pay0 pt=96 "

[Client]
Modify following line in "source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt" config:
[tiled-display]
enable=1
[b]rows=1
columns=1[/b]
width=1280
height=720

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
#uri=file://../../streams/sample_720p.mp4
<b>uri=rtsp://127.0.0.1:8554/test</b>
num-sources=1

[sink0]
<b>sync=0</b>

Run:
$ deepstream-app -c samples/configs/deepstream-app/source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

TX2 camera board(OV5693)

Modify following line in "source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt" config:
[tiled-display]
enable=1
[b]rows=1
columns=1[/b]
width=1280
height=720

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
[b]type=4
camera-width=1920
camera-height=1280
camera-fps-n=30
camera-fps-d=1
camera-csi-sensor-id=0
num-sources=1[/b]

[sink0]
<b>sync=0</b>

Run:
$ deepstream-app -c samples/configs/deepstream-app/source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

For USB camera source, have you tried type=1?

Hi,
We have verified USB camera case with below setting:

[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
#uri=file://../../streams/sample_720p.mp4
camera-width=640
camera-height=480
camera-fps-n=60
camera-fps-d=1
camera-v4l2-dev-node=1
num-sources=1

[sink0]
sync=0

USB camera info:

nvidia@jetson-0422418042113:~/deepstream_sdk_on_jetson$ v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'UYVY'
        Name        : UYVY 4:2:2
                Size: Discrete 640x480
                        Interval: Discrete 0.017s (60.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)

may be you could extend the example config to include:

  1. input from nano reflected
  2. input from tx2 reflected
  3. input from xavier reflected
    Thank you
    The reason why I am asking is because when I run dockerized Deepstream at Titan XP trying to aggregate 4 rtsp streams, I have not managed to get more than one stream working simultaneously and concurrently, as they tend to segfault and throw different errors when I am trying to all more then one of them.
    I am running at 4 devices the following rtsp streaming sequence and trying to get it processed by the source-4 config, Thanks
./test-launch "nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw, width=640, height=480, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1"

With tx2 this attempt throws out:

WARNING from src_elem0: Could not read from resource.
Debug info: gstrtspsrc.c(4879): gst_rtspsrc_reconnect (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstRTSPSrc:src_elem0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.
** ERROR: <cb_newpad3:261>: Failed to link depay loader to rtsp src
ERROR from src_elem0: Internal data flow error.
Debug info: gstrtspsrc.c(5102): gst_rtspsrc_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstRTSPSrc:src_elem0:
streaming task paused, reason not-linked (-1)
Quitting
App run failed

while with jetson nano and xavier, when I run them separately it works flawlessly. On the other hand when I am trying to run Xavier and nano it won’t work.