<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/05/2015 06:21 AM, Ssagarr Patil
wrote:<br>
</div>
<blockquote cite="mid:BAY176-W3373B2307826E66CF86E7ED3750@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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>
2) gst_element_request_pad on splitmuxsink for video and audio pads<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>
<blockquote cite="mid:BAY176-W3373B2307826E66CF86E7ED3750@phx.gbl"
type="cite">
<div dir="ltr">Can I use splitmuxsink to mux video and audio ?<br>
</div>
</blockquote>
Yes, you can.<br>
<br>
Regards,<br>
<blockquote cite="mid:BAY176-W3373B2307826E66CF86E7ED3750@phx.gbl"
type="cite">
<div dir="ltr"><br>
Thanks,<br>
-sagar<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</body>
</html>