proper way to change element's caps in pipeline on runtime

Nirbheek Chauhan nirbheek.chauhan at gmail.com
Thu Apr 7 11:07:27 UTC 2022


On Thu, Apr 7, 2022 at 12:15 PM Byunghun Lee via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
>
> Hi dev.
> Now I'm trying to change framerate of rtsp stream on runtime.
> My test pipeline is like below.
>
> rtspsrc ! depayloader ! decoder ! videorate ! video/x-raw,framerate=15/1 ! f.sink_1 \
> rtspsrc ! depayloader ! decoder ! videorate ! video/x-raw,framerate=15/1 ! f.sink_2 \
> funnel name=f ! videoscale ! videoconvert ! video/x-raw,width=640,height=384,format=RGB ! tensor_converter ! fakesink
>
> After running pipeline 20sec,
> I changed two capsfilter "video/x-raw,framerate=15/1" to "video/x-raw,framerate=1/1".
> Other elements reconfigured well after changing capsfilter, But the third party plugin element "tensor_converter" doesn't perform reconfiguring process.
>

The simple answer here is that tensor_converter needs to be able to
handle caps events and renegotiate accordingly. There's nothing you
can do from the outside to make that work correctly.

Cheers,
Nirbheek


More information about the gstreamer-devel mailing list