Possible to Un-Negotiate Capabilities?
Tim-Philipp Müller
t.i.m at zen.co.uk
Tue May 14 15:24:37 PDT 2013
On Tue, 2013-05-14 at 17:58 -0400, John Westing wrote:
> 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?
No event. You just put the new caps on the first buffer when the format
changes and push that.
Cheers
-Tim
> 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
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list