<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi Kirrthana,<BR>
<BR>
You should connect the source pad of the queue to sink pad of avimux.<BR>
<BR>
<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>
<META content="Microsoft SafeHTML" name=Generator>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>Hi all ,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_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=EC_842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>My pipeline is like </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>video source --->encode--->tee---->queue----> |</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007> |--->avimux</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007></SPAN></FONT><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>audio source---->encode---->tee---->queue---->|</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>Im requesting pad from queue to avimux and linking like this</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=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 size=2><SPAN class=EC_842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>similarly for audio:-</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007><SPAN class=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 size=2><SPAN class=EC_842075310-23092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=EC_842075310-23092007>the return value of gst_pad_link is -1,which says </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=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='_new'>Click here!</a></body>
</html>