<div dir="ltr">yes it's sink_%d,i checked it from gst-inspect-1.0 mpegtsmux ,how can i push caps event anda data in to pads<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 10:59 PM, Thiago Santos <span dir="ltr"><<a href="mailto:thiagoss@osg.samsung.com" target="_blank">thiagoss@osg.samsung.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div>On 04/15/2015 03:04 AM, Buchibabu
Bandarupally wrote:<br>
</div>
<blockquote 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></span>
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 type="cite"><span class="">
<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></fieldset>
<br>
</span><pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</font></span></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>