Hi, firstly, am very new to Deepstream so I would really appreciate any assistance with this matter. I have implemented a pipeline in C on my Xavier that takes in an rtsp feed and performs object detection. This pipeline worked perfectly in C.
However, when I converted it to C++ , I get the following error:
There is no clue in your description. The error is a very basic gstreamer core library error. So from the error, no one can know what is wrong with your code.
if (!strncmp (name, “video”, 5)) {
std::cout<<“Source id feed_001\n” << std::endl;
GstPad sinkpad = NULL;
const gchar pad_name = “pad_001”;
sinkpad = gst_element_get_request_pad (streammux, pad_name); //this is the line where the error occurs
if (gst_pad_link(pad, sinkpad) != GST_PAD_LINK_OK) {
std::cout<<“Failed to link decodebin to pipeline\n” << std::endl; //this is the error we get
}else {
std::cout<<“Decodebin linked to pipeline\n” << std::endl;
}
if (gst_pad_link(pad, sinkpad) == GST_PAD_LINK_WAS_LINKED) {
std::cout<<“Pads was already linked\n” << std::endl;
}
gst_object_unref (sinkpad);
}
}
Please make sure you are familiar with gstreamer knowledge and coding skills before you start with deepstream. It has nothing to do with deepstream or c/c++.
This is what I get when running that command:
Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNvStreamMux:nvstreammux0: Output width not set
Additional debug info:
/dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmultistream/gstnvstreammux.c(2512): gst_nvstreammux_change_state (): /GstPipeline:pipeline0/GstNvStreamMux:nvstreammux0
Setting pipeline to NULL …
Freeing pipeline …