Hi, all guys.
Some questions about decoding with GStreamer .
when using the CLI gst-launch-1.0 rtspsrc location=rtsp://admin:extremevision201@192.168.1.138/ch1/main/av_stream latency=300 ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! videoconvert ! xvimagesink
to decode with hardware, it can work normally.
But when programming with the same pipeline, failed.
the Elements could not be linked.
gst_bin_add_many(GST_BIN(pipeline), rtspsrc, h264parse, omxh264dec, nvvidconv, videoconvert, xvimagesink, NULL);
if(!gst_element_link_many(rtspsrc, h264parse, omxh264dec, nvvidconv, videoconvert, xvimagesink, NULL))
{
g_printerr (“Elements could not be linked.\n”);
return -1;
}