Force videorate for transcoding in GStreamer and DeepStream

gst-launch-1.0 -v uridecodebin uri=file:///path/to/video.ogg ! videoconvert ! videoscale ! videorate ! video/x-raw,framerate=15/1 ! autovideosink

The pipeline shown above is a tutorial example to force the framerate of a video from terminal. My question is: Could anyone translate this pipeline into C++ code ?(with gstreamer or DeepStream) I hope to be able to force the framerate in my own application, but I did not find an exemple of code, because it seems that the element “videorate” of gstreamer doesn’t have the properity ‘framerate’, so I don’t kown how to reset it in my code.

Thanks in advance.

Gstreamer is an open source program. GStreamer: open source multimedia framework
For gstreamer programming basic knowledge, please refer to gstreamer document. Application Development Manual (gstreamer.freedesktop.org)
Your first application (gstreamer.freedesktop.org)

This is deepstream forum. We only focus on deepstream issues and questions here.