<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Thiago,<br><br><div><hr id="stopSpelling">On 08/05/2015 06:21 AM, Ssagarr Patil
wrote:<br>
<blockquote cite="mid:BAY176-W3373B2307826E66CF86E7ED3750@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi,<br>
<br>
I have following pipeline:<br>
<br>
gst_bin_add_many (GST_BIN (pipeline), splitmuxsink, vsrc,<br>
vparse, queue1, asrc, aparse,<br>
queue2, queue3, queue4, NULL);<br>
<br>
gst_element_link_many (vsrc, queue1, vparse, queue3,
splitmuxsink, NULL);<br>
gst_element_link_many (asrc, queue2, aparse, queue4,
splitmuxsink, NULL);<br>
<br>
But it fails with following error:<br>
<br>
(graphics:294): GStreamer-CRITICAL **: Padname video is not
unique in element splitmuxsink, not adding<br>
<br>
Any pointers on what is missing ?<br>
</div>
</blockquote>
This is because of the way link_many will work. It will request a
pad from splitmuxsink without much information on the type of the
pad so you are trying to create a video pad twice and splitmuxsink
will reject it.<br>
<br>
You can work around this by explicitly requesting video and audio
pads and linking manually.<br>
<br>
1) get the pad templates for video and audio from splitmuxsink<br>should I use gst_pad_template_new() to get the template ?<br><br>2) gst_element_request_pad on splitmuxsink for video and audio pads<br>should I use request_new_pad ?<br><br>
3) Use get the pad of your queue3 and queue4 elements<br>
4) use gst_pad_link to link the queues with splitmuxsink pads you
have requested.<br>
<br><br>Is there any sample app which does it will be much helpful.<br><br>Thanks,<br>Sagar<br></div> </div></body>
</html>