<div dir="ltr"><br><div class="gmail_extra"><br><span class="gmail-"></span><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
<br>
</span>You can provide a custom bin for the part of the pipeline that has the<br>
sources up to the payloader, and catch messages of those elements.<br>
<br>
All the other elements in the RTSP server pipeline are not under your<br>
control but something the RTSP server manages. Do you need to catch any<br>
messages of those elements, and if so, what for?<br>
<span class="gmail-HOEnZb"><font color="#888888"><br></font></span><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank"></a><br>
<br></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Something like this:</div><div class="gmail_extra"><br></div><div class="gmail_extra">videotestsrc -> tee -> queue -> <b>annotationElement</b> -> x264enc -> rtph264pay name=pay0<br>                             |
<br>                             |
<br>                             |
<br>                             |
<br>                             |
<br>                              -> queue -> <b>motionDetector</b> -> fakesink</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">motionDetector would send messages to annotationElement.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Otherwise, could I subclass GstRTSPMedia, overwrite handle_message, check my custom message and call the parent message handler of GstRTSPMedia ?<br></div><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div></div></div></div>
</div></div>