<div dir="ltr"><div><br></div><div>I am doing something similar for ages (switching in the compressed domain), based on an I-Frame (and SPS/PPS).</div><div><br></div><div>When using different cameras, you need to make certain that you have the new SPS/PPS before switching based on an I-Frame. If you have 'the same' cameras, make certain that  your configuration is the same so they generate the same (or compatible) SPS/PPS (though that is not a fault tolerant implementation).<br></div><div><br></div><div>After switching, you need to call <br></div><div><br></div><div>gst_bin_recalculate_latency(GST_BIN(self));</div><div><br></div><div>It should result a feed that is free of hiccups</div><div><br></div><div>.From what I can tell, your SPS/PPS corrupts your video until you get the new one in the video feed.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 3 Jun 2022 at 18:45, Bilel Bghiel via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><div><br></div><div>I'm currently using the following setup:</div><div><br></div><div>9 IP camera's:<br></div><div>RTSPsrc - rtph264depay - h264parse - tee <br></div><div><br></div><div>VideoWriter</div><div></div><div>Input-selector - tee - avdec264 - <video editing stuff > - videorate - avenc_flv - flvmux - RTMPsink OR filesink</div><div><br></div><div>I have 9 camera's which are all connected to the videowriter input-selector. This works fine. Now when switching the camera's the screen seems to freeze, only changing the pixels where they are different.</div><div><br></div><div>Demo:  <a href="https://www.youtube.com/watch?v=GJU1eRMgKt0" target="_blank">https://www.youtube.com/watch?v=GJU1eRMgKt0</a></div><div>(e.g: 0:26, 0:35)</div><div><br></div><div>I've been playing around with I-frame settings on the camera's. Which I now set to 1. But still I get the results as seen in the video. Has anybody ever seen this before? And know how to fix this?</div><div><br></div><div>Thanks in advance<br></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">g. Marc</div>