Performing images processing on raw frames of webcam and then creating an RTSP output stream to consume it through media players

As I am new to OpenCV I was exploring how can I perform specific image processing tasks on raw webcam frames using OpenCV and how to set up an RTSP stream using OpenCV for broadcasting processed frames in C++.

opencv itself does not have anything builtin for this,
however, IF you built it locally, with gstreamer support, you can use cv::VideoCapture with a gstreamer pipeline

Thanks for the reply berak. Can you provide any resources or a sample if available for a head start.