Rtph265depay error

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) :GPU
• DeepStream Version:6.1.1

When I use the ds6.1.1 deepstreamtest3 demo code and change it to the following code, if I set RTSP to H265, an error will occur. However, H264 will not generate any errors and will run normally

0:00:01.427930887 508980 0x7fd61c007b60 FIXME rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process: Assuming DONL field is not present

My read RTSP stream is as follows

static void cb_newpad(GstElement *decodebin, GstPad *decoder_src_pad, gpointer data)
{
GstCaps *caps = gst_pad_get_current_caps(decoder_src_pad);
if (!caps)
{
caps = gst_pad_query_caps(decoder_src_pad, NULL);
}
const GstStructure *str = gst_caps_get_structure(caps, 0);
const gchar *name = gst_structure_get_name(str);
GstElement *source_bin = (GstElement *)data;
GstCapsFeatures *features = gst_caps_get_features(caps, 0);

if (!strncmp(name, "video", 5))
{
    if (gst_caps_features_contains(features, GST_CAPS_FEATURES_NVMM))
    {
        /* Get the source bin ghost pad */
        GstPad *bin_ghost_pad = gst_element_get_static_pad(source_bin, "src");
        if (!gst_ghost_pad_set_target(GST_GHOST_PAD(bin_ghost_pad), decoder_src_pad))
        {
            g_printerr("Failed to link decoder src pad to source bin ghost pad\n");
        }
        gst_object_unref(bin_ghost_pad);
    }
    else
    {
        g_printerr("Error: Decodebin did not pick nvidia decoder plugin.\n");
    }
}

}

static void decodebin_child_added(GstChildProxy *child_proxy, GObject *object, gchar *name, gpointer user_data)
{
if (g_strrstr(name, “decodebin”) == name)
{
g_signal_connect(G_OBJECT(object), “child-added”, G_CALLBACK(decodebin_child_added), user_data);
}
if (g_strrstr(name, “source”) == name)
{
g_object_set(G_OBJECT(object), “drop-on-latency”, TRUE, NULL);
}
}

static GstElement *create_source_bin(guint index, gchar *uri, ReturnInfo *return_info)
{
GstElement *bin = NULL, *uri_decode_bin = NULL;
gchar bin_name[16] = {};
g_snprintf(bin_name, 15, “source-bin-%02d”, index);
bin = gst_bin_new(bin_name);
uri_decode_bin = gst_element_factory_make(“nvurisrcbin”, “uri-decode-bin”);

if (!bin || !uri_decode_bin)
{
    g_log("Application-TGSD", G_LOG_LEVEL_INFO, "[ERROR] Failed to create the bin and uri_decode-bin in the created source");
    return_info->is_success = 0;
    strcpy(return_info->info, "Failed to create the bin and uri_decode-bin in the created source");
    return NULL;
}


g_object_set(G_OBJECT(uri_decode_bin), "uri", uri, NULL);
g_object_set(G_OBJECT(uri_decode_bin), "rtsp-reconnect-interval", 30, NULL);


g_signal_connect(G_OBJECT(uri_decode_bin), "pad-added", G_CALLBACK(cb_newpad), bin);
g_signal_connect(G_OBJECT(uri_decode_bin), "child-added", G_CALLBACK(decodebin_child_added), bin);


gst_bin_add(GST_BIN(bin), uri_decode_bin);


if (!gst_element_add_pad(bin, gst_ghost_pad_new_no_target("src", GST_PAD_SRC)))
{
    g_printerr("Failed to add ghost pad in source bin\n");
    return NULL;
}


return bin;

}

  1. Please upgrade to the latest DeepStream version
  2. Please refer to the source code of deepstream-test3
    /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-test3, it works with RTSP h265 stream well with nvurisrcbin.

@Fiona.Chen
I tried the DS6.2 version and used Jetson Orin Nano. I dare not perform a large-scale version upgrade, but the 6.2 version also reported an error of 0:00:00. 240942775 1226684 0x7f5cdc01ba40 FIXME rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process: Assuming DONL field is not present

The DeepStream 6.2 is too old to be supported in the forum. Please try the latest DeepStream SDK.

@Fiona.Chen

I am very sorry that I am not familiar with the deepstream version as I am a beginner. I want to know if version 6.4 is the current mainstream version.

The latest DeepStream version is 7.1.

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Overview.html

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.