<div dir="auto"><div><a href="https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/389">https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/389</a><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 29 avr. 2019 03 h 55, Jack <<a href="mailto:jack@rybn.org" target="_blank" rel="noreferrer">jack@rybn.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using Python to reproduce the same pipeline and puting a<br>
"time.sleep(0.1)" in the loop to get each stream do the job.<br>
<br>
But yes it seems there is a problem with this simple pipeline.<br>
<br>
Here the part of the code working with Python (see my precedent mail to<br>
see the pipeline) :<br>
<br>
for i, mountpoint_info in enumerate(l_mountpoint):<br>
time.sleep(0.1)<br>
mountpoint, vol = mountpoint_info<br>
uri = f'<a href="http://stream.p-node.org" rel="noreferrer noreferrer noreferrer" target="_blank">http://stream.p-node.org</a>{mountpoint}'<br>
bin_source = AudioFileSource(filename=uri, name=f'source{i}',<br>
volume=vol)<br>
self.pipeline.add(bin_source)<br>
ch_pad = self.mix.get_request_pad('sink_%u')<br>
bin_source.get_static_pad("src").link(ch_pad)<br>
bin_source.sync_state_with_parent()<br>
<br>
<br>
++<br>
<br>
Jack<br>
<br>
<br>
<br>
Le 29/04/2019 à 03:26, Nicolas Dufresne a écrit :<br>
> <br>
> <br>
> Le dim. 28 avr. 2019 09 h 25, Jack <<a href="mailto:jack@rybn.org" rel="noreferrer noreferrer" target="_blank">jack@rybn.org</a><br>
> <mailto:<a href="mailto:jack@rybn.org" rel="noreferrer noreferrer" target="_blank">jack@rybn.org</a>>> a écrit :<br>
> <br>
> OK, I have the same problem using gst-launch-1.0 with this basic<br>
> pipeline (mixing 3 audio sources from a remote server) :<br>
> <br>
> $ gst-launch-1.0 audiomixer name=mix ! audioconvert ! autoaudiosink<br>
> uridecodebin uri=http://.../xxx.mp3 ! audioconvert ! queue ! mix.<br>
> uridecodebin uri=http://.../xxx.mp3 ! audioconvert ! queue ! mix.<br>
> uridecodebin uri=http://.../xxx.mp3 ! audioconvert ! queue ! mix.<br>
> <br>
> Setting pipeline to PAUSED ...<br>
> Pipeline is PREROLLING ...<br>
> Got context from element 'source': gst.soup.session=context,<br>
> session=(SoupSession)NULL, force=(boolean)false;<br>
> buffering... 100%<br>
> <br>
> Then the pipeline hangs...<br>
> Any clue to solve this issue ?<br>
> <br>
> <br>
> I tested it, with the same mp3 twice and indeed it does not preroll. The<br>
> aggregator do produce a buffer, which gets to the sync, the sink do<br>
> commit it's state, but nothing happens, it then block, waiting for<br>
> preroll. May it's time to track this as an issue, I'm not certain to<br>
> what element is broken though.<br>
> <br>
> Thanx.<br>
> ++<br>
> <br>
> Jack<br>
> <br>
> <br>
> <br>
> <br>
> Le 25/04/2019 à 22:53, Jack a écrit :<br>
> > My pipeline is made with 3 bins :<br>
> ><br>
> > uridecodebin ! audioconvert ! volume ! audiopanorama ! queue<br>
> ><br>
> > Then each bin request sink pad from audiomixer and create the link<br>
> with<br>
> > its ghost pad.<br>
> ><br>
> > The pipeline after uadiomixer is :<br>
> ><br>
> > audiomixer ! audioconvert ! autoaudiosink<br>
> ><br>
> > So my final pipeline looks like :<br>
> ><br>
> > bin1<br>
> > \<br>
> > bin2 - audiomixer ! audioconvert ! autoaudiosink<br>
> > /<br>
> > bin3<br>
> ><br>
> > After each element has been added to the pipeline and link in the<br>
> right<br>
> > order, I change the state of this pipeline to PLAYING.<br>
> > But, it seems that the third bin3 can't pass in playing state (or<br>
> > something else ?).<br>
> > ++<br>
> ><br>
> > Jack<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Le 25/04/2019 à 22:09, Jack a écrit :<br>
> >> Hello,<br>
> >><br>
> >> Still trying to debug...<br>
> >> I succeeded to mix the 3 remote audio stream today ... one time !<br>
> >> Then, restarting the exactly same python script failed with other<br>
> attemps.<br>
> >> Weird, If someone knows what is going wrong ?<br>
> >> ++<br>
> >><br>
> >> Jack<br>
> >><br>
> >><br>
> >><br>
> >> Le 23/04/2019 à 18:00, Jack a écrit :<br>
> >>> Hello,<br>
> >>><br>
> >>> I am trying to mix several remote sources using uridecodebin<br>
> (with uri<br>
> >>> as http://) with either adder or audiomixer but it is not<br>
> working if i<br>
> >>> use more than 2 sources.<br>
> >>> It is weird because if i try to use 3 audiofiles sources (with<br>
> uri as<br>
> >>> file:///), i can mix these 3 sources without problem.<br>
> >>> I am sure that i missed something here, but what ?<br>
> >>> Thanks for your help.<br>
> >>><br>
> >>> My configuration :<br>
> >>> Ubuntu 18.04<br>
> >>> GStreamer 1.14.1<br>
> >>><br>
> >>> ++<br>
> >>><br>
> >>> Jack<br>
> >>><br>
> >>> _______________________________________________<br>
> >>> gstreamer-devel mailing list<br>
> >>> <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
> >>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> >>><br>
> >><br>
> >> _______________________________________________<br>
> >> gstreamer-devel mailing list<br>
> >> <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
> >> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> >><br>
> ><br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> ><br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> <br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> <br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>