Input & Output video lengths mismatch

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 7.0
• NVIDIA GPU Driver Version (valid for GPU only) 535.171.04
• Issue Type( questions, new requirements, bugs) bugs

I have a deepstream pipeline running and my input videos are 8 seconds videos and I got the output videos duration as 6.67 seconds means the frame rate got increased from 25 fps to 30fps.

I need the same duration size as the input for the output. How to solve this?

Could you refer to the FAQ to get the graph of your pipeline and attach that?

You can try to add a capsfilter before the filesinkbin to set the framerate to 25.

I tried but still facing the issue. The altered pipeline added below,

Just from the graph, you have set 30 fps to the caps.

yeah, that’s fine. I just tested with this value.

Another concern is when I tried to link the element before sink, it can not be done.

It failed to link the elements when the caps_filter included.

The code block for caps_filter,

GstElement *caps_filter_filesinkbin;
  GstCaps *caps_filesinkbin;
  caps_filter_filesinkbin = gst_element_factory_make("capsfilter", "caps_filter_filesinkbin");
  caps_filesinkbin = gst_caps_from_string("video/x-raw, framerate=25/1");
  g_object_set(G_OBJECT(caps_filter_filesinkbin), "caps", caps_filesinkbin, NULL);
  gst_caps_unref(caps_filesinkbin);`Preformatted text`

The code block for adding the caps_filter,

gst_bin_add_many(GST_BIN(pipeline), pgie, tracker, nvdsanalytics,
                   nvvideoconvert, nvosd, queue, caps_filter_filesinkbin, sink, nvof, NULL);


if (!gst_element_link_many(streammux, nvof, pgie, tracker, nvdsanalytics, queue,
                             nvvideoconvert, nvosd, caps_filter_filesinkbin, sink, NULL))
  {
    g_printerr("Elements could not be linked. Exiting.\n");
    return -1;
  }

Getting the pipeline got exited error.

The nvdsosd plugin cannot support this caps type. You can try to use the video/x-raw(memory:NVMM).

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.