Changing appsource caps dynamically

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

Changing appsource caps dynamically

Nostalgia
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Changing appsource caps dynamically

Tim Müller
On Mon, 2018-06-18 at 06:16 -0700, Nostalgia wrote:

Hi,

> I have this pipeline : appsrc - omxh264enc - filter - appsink.
> I am using appsrc to push  raw video frame to the pipeline,  frame
> size (or resolution) is changing dynamically, so I must change appsrc
> caps before pushing frame to the pipeline.
>
> Is it possible to do this change ? If yes, what steps do I follow to
> change caps without need to unref the pipeline ?

You should be able to just

 - push buffer in old format
 - set new caps on appsrc
 - push buffer in new format

and it should just work (assuming omxh264enc supports reconfiguring
itself on the fly), at least with recent GStreamer versions.

Cheers
-Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Changing appsource caps dynamically

Nostalgia
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Changing appsource caps dynamically

Nicolas Dufresne-5
Le lundi 18 juin 2018 à 07:09 -0700, Nostalgia a écrit :
> Hi Tim,
>
> Thanks for your reply. That's what I did, but it seems that
> omxh264enc does
> not support runtime reconfiguration.

It does, but not with all OMX backend.

>
> Regards,
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.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

signature.asc (201 bytes) Download Attachment