<div dir="ltr">I'm using 0.10.36 and don't see a New Caps event. Is there is an comparable event for 0.10.xx users?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 3:47 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 2013-05-14 at 12:32 -0700, johnwesting wrote:<br>
<br>
> Quick question, is it possible to un-negotiate capabilities after they have<br>
> been negotiated and the pipeline has started playing? If for example, I have<br>
> a source element that creates either AAC or MP3, and pipes the data into<br>
> decodebin, is it possible to switch from AAC to MP3 or vice versa in real<br>
> time, or would I have to tear down the pipeline and start over. Ex:<br>
><br>
> gst-launch aacormp3src ! decodebin ! alsasink<br>
<br>
</div>It's possible in general in principle - you would just send a new caps<br>
event and then buffers in the new format.<br>
<br>
However, I don't think decodebin supports this.<br>
<br>
Something like<br>
<br>
aacormp3src ! autoconvert ! audioconvert ! alsasink<br>
<br>
*might* work.<br>
<br>
Another possibility might be to have dynamic pads and add a new pad for<br>
the new format, send EOS on the old one and remove it, then send data on<br>
the new one. playbin *might* handle this (but I'm not 100% sure if it<br>
will do this for sources too or only demuxers).<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<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>
</div></div></blockquote></div><br></div>