splitmuxsink muxing AV data
Ssagarr Patil
hugarsagar at outlook.com
Wed Aug 5 08:12:22 PDT 2015
Hi Thiago,
On 08/05/2015 06:21 AM, Ssagarr Patil
wrote:
Hi,
I have following pipeline:
gst_bin_add_many (GST_BIN (pipeline), splitmuxsink, vsrc,
vparse, queue1, asrc, aparse,
queue2, queue3, queue4, NULL);
gst_element_link_many (vsrc, queue1, vparse, queue3,
splitmuxsink, NULL);
gst_element_link_many (asrc, queue2, aparse, queue4,
splitmuxsink, NULL);
But it fails with following error:
(graphics:294): GStreamer-CRITICAL **: Padname video is not
unique in element splitmuxsink, not adding
Any pointers on what is missing ?
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.
You can work around this by explicitly requesting video and audio
pads and linking manually.
1) get the pad templates for video and audio from splitmuxsink
should I use gst_pad_template_new() to get the template ?
2) gst_element_request_pad on splitmuxsink for video and audio pads
should I use request_new_pad ?
3) Use get the pad of your queue3 and queue4 elements
4) use gst_pad_link to link the queues with splitmuxsink pads you
have requested.
Is there any sample app which does it will be much helpful.
Thanks,
Sagar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150805/3dbe30f2/attachment.html>
More information about the gstreamer-devel
mailing list