Linking Ghost Pad to Tee Pad
Howling wong
watertreader at hotmail.com
Tue Dec 28 02:14:45 UTC 2021
Hi,
I believe I have solved this problem. It is most likely due to the wrong parser type is being used.
So can I say that the return type "No common format" is caused by the wrong caps type between the two pad ?
Also I seem to have drop frames problem in the filesink. I have not really research much into dropped frames problem. What are the common things one looked into for dropped frames?
Thanks
Regards
________________________________
From: Howling wong
Sent: Sunday, December 26, 2021 5:30 PM
To: gstreamer-devel at lists.freedesktop.org <gstreamer-devel at lists.freedesktop.org>
Subject: Linking Ghost Pad to Tee Pad
Hi
I am trying to link a Tee (object tee, in main pipeline) to a Queue (object queue, which is inside a bin, found inside the main pipeline)
I did this by creating a ghost pad for the queue inside the bin
/// for queue within bin
/// get the queue sink pad
queue_pad = gst_element_get_static_pad (queue, "sink");
/// create the ghost proxy pad
ghost_pad = gst_ghost_pad_new ("sink_proxy", queue_pad);
gst_pad_set_active(ghost_pad, TRUE);
/// for tee
tee_src_pad_template = gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (tee),
"src_%u");
tee_pad = gst_element_request_pad (tee,
tee_src_pad_template,
NULL,
NULL);
/// link the pad together
GstPadLinkReturn value = gst_pad_link (tee_pad, ghost_pad);
g_print ("thread Live: Pad return is %d .\n", value);
The GstPadLinkReturn value return -4 , suggesting no common format. What does this mean? both the caps type is not same?
I am trying to connect video/mpegts(from tee) to the queue (in the bin of mainline pipe) to be saved as ts file storage , something like below
<------------------------- bin ------------------------------------------->
tee -----------> queue ---------------> parser --------------> filesink
tee_pad -----> ghost_pad
|
queue_pad
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20211228/f8317f34/attachment.htm>
More information about the gstreamer-devel
mailing list