GStreamer audiomixer
Thiago Sousa Santos
thiagossantos at gmail.com
Sun Apr 24 19:58:29 UTC 2016
On Apr 24, 2016 14:42, "Johan Basore" <johan_dream at hotmail.com> wrote:
>
> Hello,
>
> Sorry for post same issue again.
> I am working with GStreamer audiomixer, but it not works.
> I created a audiomixer and connected pad for individual audio sources.
> There is no bug, but the pipeline says "ready", not playing.
Some stuff to check:
1) any error messages on the bus?
2) check the return value of the linking functions
3) check the return value of the set state function
Also you seem to try to link the audioconverts twice to different pads in
audiomixer. The later linking looks more correct as audiomixer has request
pads.
>
> Here are some part of source codes.
>
> /************************************************/
> gst_element_link(audioconvert1, audiomixer);
> gst_element_link(audioconvert2, audiomixer);
> gst_element_link_many(audiomixer, audioconvert, avenc_ac3_1,
mpegtsmux,
> sink, nil);
>
> GstPad *audioSinkPad, *srcAudioPad;
>
> audioSinkPad = gst_element_get_request_pad(audiomixer, "sink_3");
> srcAudioPad = gst_element_get_static_pad(audioconvert1, "src");
> gst_pad_link(srcAudioPad, audioSinkPad);
> gst_object_unref(audioSinkPad);
> gst_object_unref(srcAudioPad);
>
> audioSinkPad = gst_element_get_request_pad(audiomixer, "sink_4");
> srcAudioPad = gst_element_get_static_pad(audioconvert2, "src");
> gst_pad_link(srcAudioPad, audioSinkPad);
> gst_object_unref(audioSinkPad);
> gst_object_unref(srcAudioPad);
>
> gst_element_set_state(pipeline, GST_STATE_PLAYING);
>
> /************************************************/
>
> I can't found out what is wrong.
>
> Thanks
>
>
>
> --
> View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/GStreamer-audiomixer-tp4677082.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160424/c08cfe7b/attachment.html>
More information about the gstreamer-devel
mailing list