<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 04/15/2015 03:04 AM, Buchibabu
Bandarupally wrote:<br>
</div>
<blockquote
cite="mid:CAJ_rtF88y+L6-OZN0DCe5tGwPE3fdyQzxs6xsYiisiVtq0o_Uw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Does any one help me to get audio pads from mpegtsmux
element,i tried to get it from templet but every time i am
getting video pad<br>
<br>
mux_sink_pad_template = gst_element_class_get_pad_template
(GST_ELEMENT_GET_CLASS (data.muxer), "sink_%d");<br>
new_pad = gst_element_request_pad (data.muxer,
mux_sink_pad_template, NULL, NULL);<br>
<br>
</div>
after that i am checking for type of pad that i got <br>
<br>
fprintf(stderr,gst_pad_get_name (new_pad));<br>
<br>
</div>
but it always giving video/mpeg<br>
</div>
</div>
</blockquote>
<br>
Are you sure? The pad should be named sink_%u, and %u will be
replaced with the PID of the stream. There is no distinction of
audio and video pads here. You can just push the caps event and the
data you want into the pad.<br>
<br>
There might be something else wrong with your application or with
how you check your pad's name (you shouldn't need to do it).<br>
<br>
<blockquote
cite="mid:CAJ_rtF88y+L6-OZN0DCe5tGwPE3fdyQzxs6xsYiisiVtq0o_Uw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
my aim is to mux audio and video streams using mpegtsmux element
,using command line pipeline the muxing works properly but
programmatically i am getting above issue<br>
<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>