Possible to Un-Negotiate Capabilities?
John Westing
john.blank.westing at gmail.com
Tue May 14 14:58:55 PDT 2013
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?
On Tue, May 14, 2013 at 3:47 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> On Tue, 2013-05-14 at 12:32 -0700, johnwesting wrote:
>
> > Quick question, is it possible to un-negotiate capabilities after they
> have
> > been negotiated and the pipeline has started playing? If for example, I
> have
> > a source element that creates either AAC or MP3, and pipes the data into
> > decodebin, is it possible to switch from AAC to MP3 or vice versa in real
> > time, or would I have to tear down the pipeline and start over. Ex:
> >
> > gst-launch aacormp3src ! decodebin ! alsasink
>
> It's possible in general in principle - you would just send a new caps
> event and then buffers in the new format.
>
> However, I don't think decodebin supports this.
>
> Something like
>
> aacormp3src ! autoconvert ! audioconvert ! alsasink
>
> *might* work.
>
> Another possibility might be to have dynamic pads and add a new pad for
> the new format, send EOS on the old one and remove it, then send data on
> the new one. playbin *might* handle this (but I'm not 100% sure if it
> will do this for sources too or only demuxers).
>
> Cheers
> -Tim
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130514/76924d5c/attachment-0001.html>
More information about the gstreamer-devel
mailing list