GStreamer audiomixer

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

GStreamer audiomixer

Johan Basore
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.

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
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer audiomixer

Thiago Sousa Santos-2


On Apr 24, 2016 14:42, "Johan Basore" <[hidden email]> 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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer audiomixer

Johan Basore
Thanks,
But It not works yet.
I moved audioconvert after audiomixer.
and checked all links, they were linked.Also there is no error via bin.
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer audiomixer

Sebastian Dröge-3
On So, 2016-04-24 at 17:29 -0700, Johan Basore wrote:
> Thanks,
> But It not works yet.
> I moved audioconvert after audiomixer.
> and checked all links, they were linked.Also there is no error via
> bin.

The next thing to do then would be to get a debug log and see where
data flow is happening and where/why it stops. You can get a debug log
with GST_DEBUG=6 (for enabling all categories).

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer audiomixer

Johan Basore
Yes, I got debug log,
but there is nothing strange, all goes well. Just not plays.