<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<FONT color=#000000>I dont have linux machine here to try out the code.&nbsp; </FONT><BR>
<FONT face="Verdana, Geneva, Arial, Sans-serif" color=#000000>Could you check which of the API's is failing individually ? i.e. do a null check for return value of </FONT><FONT face="Verdana, Geneva, Arial, Sans-serif" color=#000000>gst_element_get_pad(queue,"<SPAN class=EC_703142703-24092007>src</SPAN>") and&nbsp;&nbsp;gst_element_get_pad(avimux,"video_00")</FONT><BR>
<FONT face="Verdana, Geneva, Arial, Sans-serif" color=#000000>If either of them are not returning NULL then check if you have added the queue and muxer to the pipeline.</FONT><BR>
<FONT face="Verdana, Geneva, Arial, Sans-serif" color=#000000></FONT>&nbsp;<BR>
<FONT face="Verdana, Geneva, Arial, Sans-serif" color=#000000>HTH,</FONT><BR>
<FONT face="Verdana, Geneva, Arial, Sans-serif" color=#000000>Pavan.</FONT><BR>
&nbsp;<BR>
&nbsp;<BR>
<BR><BR>&nbsp;<BR>
<BLOCKQUOTE>
<HR>
From: kirrthana@tataelxsi.co.in<BR>To: pavanpatale@hotmail.com<BR>Subject: RE: [gst-devel] Problem in requesting pad for avimux<BR>Date: Mon, 24 Sep 2007 09:00:57 +0530<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass EC_BODY.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>

<DIV><SPAN class=EC_703142703-24092007><FONT face=Arial color=#0000ff>Sorry it was actually</FONT> 
<DIV><SPAN class=EC_EC_842075310-23092007><FONT face=Arial><FONT color=#0000ff>gst_pad_link(gst_element_get_pad(queue,"<SPAN class=EC_703142703-24092007>src</SPAN>"),gst_element_get_pad(avimux,"video_00")<SPAN class=EC_703142703-24092007>,i have posted like tat by mistake.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_842075310-23092007><FONT face=Arial><FONT color=#0000ff><SPAN class=EC_703142703-24092007>Im linking source and sink pad only.still the return value is -1.</SPAN></FONT></FONT></SPAN></DIV></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=EC_OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma>-----Original Message-----<BR><B>From:</B> Pavan [mailto:pavanpatale@hotmail.com]<BR><B>Sent:</B> Sunday, September 23, 2007 7:50 PM<BR><B>To:</B> kirrthana@tataelxsi.co.in; gstreamer-devel@lists.sourceforge.net<BR><B>Subject:</B> RE: [gst-devel] Problem in requesting pad for avimux<BR><BR></FONT></DIV>Hi Kirrthana,<BR>&nbsp;<BR>You should connect the source pad of the queue to sink pad of avimux.<BR>&nbsp;<BR>&nbsp;<BR>Thanks,<BR>Pavan.<BR><BR><BR>
<BLOCKQUOTE>
<HR>
From: kirrthana@tataelxsi.co.in<BR>To: gstreamer-devel@lists.sourceforge.net<BR>Date: Sun, 23 Sep 2007 16:34:50 +0530<BR>Subject: [gst-devel] Problem in requesting pad for avimux<BR><BR>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>Hi all ,</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>&nbsp;&nbsp;&nbsp;&nbsp; I have created a pipeline where i capture live audio and video,encode it and mux&nbsp;using avimux.</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>My pipeline is like </SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>video&nbsp;source ---&gt;encode---&gt;tee----&gt;queue----&gt;&nbsp;|</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|---&gt;avimux</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007></SPAN></FONT><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>audio source----&gt;encode----&gt;tee----&gt;queue----&gt;|</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>Im requesting pad from queue to avimux and linking like this</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_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><SPAN class=EC_EC_842075310-23092007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>similarly for audio:-</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007><SPAN class=EC_EC_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><SPAN class=EC_EC_842075310-23092007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007>the return value of gst_pad_link is -1,which says </SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=EC_EC_842075310-23092007></SPAN></FONT></DIV></BLOCKQUOTE><BR>
<HR>
Download the latest version of Windows Live Messenger NOW! <A href="http://get.live.com/en-ie/messenger/overview" target=_blank>Click here!</A> </BLOCKQUOTE>
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.<BR></BLOCKQUOTE><br /><hr />Download the latest version of Windows Live Messenger NOW! <a href='http://get.live.com/en-ie/messenger/overview' target='_new'>Click here!</a></body>
</html>