<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>Hi all
,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007> I have created a pipeline
where i capture live audio and video,encode it and mux using
avimux.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>My pipeline is like
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>video source
--->encode--->tee---->queue----> |</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007> |--->avimux</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007></SPAN></FONT><FONT
face=Arial size=2><SPAN class=842075310-23092007>audio
source---->encode---->tee---->queue---->|</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>Im requesting pad
from queue to avimux and linking like this</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007>gst_pad_link(gst_element_get_pad(queue,"sink"),gst_element_get_pad(avimux,"video_00")</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>similarly for
audio:-</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007><SPAN
class=842075310-23092007>gst_pad_link(gst_element_get_pad(queue,"sink"),gst_element_get_pad(avimux,"audio_00")</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>the return value of
gst_pad_link is -1,which says </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007><TD><FONT
size=3><SPAN class=term><CODE
class=literal>GST_PAD_LINK_WRONG_HIERARCHY</CODE></SPAN></TD><FONT
face="Times New Roman"> <TD>pads have no common
grandparent</TD></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=842075310-23092007>Is this is not the
correct way to request and link the pad.If it so just give me a suggestion of
how to request and link.</SPAN></FONT></DIV>
<DIV><EM>Regards</EM></DIV>
<DIV><EM>Kirrthana</EM></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><p>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
Contact your Administrator for further information.</p>
</BODY></HTML>