Drop-frame-interval

Hello Nvs,
I am currently work this reference app with
deepstream-6.2:level dGPU RTX 2080TI

Can I know how to add the drop frame interval in pipeline? I try to

  {
    GstPad *sinkpad, *srcpad;
    gchar pad_name[16] = { };

    source = create_source_bin(0, const_cast<char*>(_input));
    if (!source) {
      g_printerr ("Failed to create source bin. Exiting.\n");
      return -1;
    }
    gst_bin_add(GST_BIN(pipeline), source);

    //---add decoder---
    GstElement* decoder = gst_element_factory_make("nvv4l2decoder", NULL);
    if (!decoder) {
      g_printerr("Failed to create v4l2 decoder.\n");
      return -1;
    }
    g_object_set(G_OBJECT(decoder), "drop-frame-interval", 5, NULL);
    gst_bin_add(GST_BIN(pipeline), decoder);

use nvv4l2decoder and set drop frame interval but it does not work.

Many many thanks!

The decoder has been created by default through urideocdebin in this project. The decoder you created yourself is not used. If you want to set property to the decoder, you need to find the decoder in the uridecodebin, then set the parameter to it.

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