@vino_mm I’ve got the same issue and was told “It was my network”, good luck getting any actual help on these forums. They typically reply with short sentences and are quick to close your topic. I have 4 Jetson Orins with the latest Deepstream and we see this issue on all 4 Jetson’s. We have tried every network configuration possible, even direct connecting into the Jetsons and we are still facing this issue. We have tried changing absolutely every setting in the deepstream_app_config.txt file to no avail.
We also notice that the RTSP stream that is generated from Nvidia Deepstream has issues. It’s very slow to start and it’s constantly dropping frames. You can run the following example:
#include <gst/gst.h>
#include <gst/rtsp-server/rtsp-server.h>
int main(int argc, char *argv[]) {
GMainLoop *loop;
GstRTSPServer *server;
GstRTSPMountPoints *mounts;
GstRTSPMediaFactory *factory;
gst_init(&argc, &argv);
loop = g_main_loop_new(NULL, FALSE);
server = gst_rtsp_server_new();
mounts = gst_rtsp_server_get_mount_points(server);
factory = gst_rtsp_media_factory_new();
// gst_rtsp_media_factory_set_launch(factory, "( "
// "videotestsrc ! "
// "x264enc speed-preset=ultrafast tune=zerolatency key-int-max=1 intra-refresh=true insert-vui=1 insert-sps-pps=1 ! "
// "rtph264pay name=pay0 pt=96 config-interval=1 )");
gst_rtsp_media_factory_set_launch(factory, "( videotestsrc ! nvvidconv ! nvv4l2h264enc ! rtph264pay name=pay0 pt=96 )");
gst_rtsp_media_factory_set_protocols(factory, GST_RTSP_LOWER_TRANS_UDP | GST_RTSP_LOWER_TRANS_TCP);
gst_rtsp_mount_points_add_factory(mounts, "/test", factory);
g_object_unref(mounts);
gst_rtsp_server_attach(server, NULL);
g_print("Stream ready at rtsp://127.0.0.1:8554/test\n");
g_main_loop_run(loop);
return 0;
}
Copy the above code to a file named test-rtsp-server.c on your Jetson and build it like so:
gcc -o test-rtsp-server test-rtsp-server.c $(pkg-config --cflags --libs gstreamer-1.0 gstreamer-rtsp-server-1.0)
This will start the videotestsrc on an RTSP Stream on your Jetson. We can play this stream on VLC without any issues.
But try inputting it into your Nvidia Deepstream app, even with PGIE turned off and we lose packets constantly. Something is just flat out wrong with Nvidia Deepstream, I have seen too many people with this same exact issue(just search the forums). They have a bug and refuse to take a look at it. Here is my test configuration file for reference:
deepstream_app_config_test.txt (2.4 KB)
If you play the above test-rtsp-server RTSP feed on VLC it pops up instantly without any errors. However, if you run the same exact RTSP stream through Nvidia Deepstream and try to play that output you see packet loss and it’s very slow to start(You also see the ghosting/pixilation that you are seeing in the above image!). Here are the warnings VLC give when trying to play the Nvidia Deepstream RTSP Stream:
VLCDeepstreamLog5-15-23.txt (5.1 KB)
@junshengy When are you guys going to elevate this issue and come out with a fix? You can search the forums and many others have this same exact issue. Why are we seeing the ghosting/pixilation? Why does the RTSP feed generated by Nvidia Deepstream lose packets(even when directly connected to the Jetson Orin)?
Here’s how you can recreate the issue:
1.Run the test RTSP Server with the code I have above(test-rtsp-server.c).
2. This will create an RTSP Stream running on rtsp://localhost:8554/test.
3. Input this stream into the base Nvidia Deepstream App and run with the config file I have posted above:
deepstream-app -c deepstream_app_config_test.txt
- This will host a stream on rstp://localhost:8556/ds-test. Play this with gst-launch, VLC, or ffmpeg with debug logs and you will see that it is slow to start and has packet loss.