<html><head></head><body><div class="ydp8f2692c5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr" data-setdir="false"><span><span style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">Vladan,</span></span><br></div><div dir="ltr" data-setdir="false"><span><span style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><br>There could be multiple reasons:</span></span></div><div dir="ltr" data-setdir="false"><span><span style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">1) The delay could be due to the missing keyframe in the video stream. Till the decoder receives the keyframe in the RTSP stream the decoder wont be able to decode the stream.<br>2) RTP jitter buffer has a default latency of 2sec, by reducing it to a lower value may reduce the delay efferct. <br><br>Regards,<br>Vinod</span></span></div><div><br></div><div class="ydp8f2692c5signature"><div><br></div><div><br></div><div>Sent from Yahoo Mail. <a href="https://yho.com/148vdq" rel="nofollow" target="_blank">Get the app</a></div></div></div>
        <div><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_6395145442" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, 10 October, 2022 at 04:16:33 am GMT-5, Vladan Jovanovic via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Still struggling with this topic, so let me rephrase the question.<br clear="none"><br clear="none">Documentation and examples I've seen so far discuss gstreamer<br clear="none">pipelines in form of:<br clear="none">source -> filter -> sink<br clear="none"><br clear="none">So typically a single source going to one or multiple sinks.<br clear="none">Are there any special considerations when one GstPipeline has separate<br clear="none">parallel paths that don't interact? So pipeline that contains:<br clear="none">source1 -> filter1 -> sink1<br clear="none">source2 -> filter2 -> sink2<br clear="none"><br clear="none">I see in my tests that a pipeline with one path (source1 -> filter1 -><br clear="none">sink1) works fine. But when I add second path (source2 -> filter2 -><br clear="none">sink2), all elements in the second path switch state to PLAYING except<br clear="none">sink2 (which is fakesink in my case), for which graph diagram<br clear="none">continues to show "[-] -> [>]".<br clear="none"><br clear="none">best regards,<br clear="none">Vladan<br clear="none"><br clear="none"><br clear="none"><div class="yqt8991011948" id="yqtfd51362"><br clear="none">On Thu, Sep 15, 2022 at 3:41 PM Vladan Jovanovic<br clear="none"><<a shape="rect" ymailto="mailto:vladan.jovanovic@gmail.com" href="mailto:vladan.jovanovic@gmail.com">vladan.jovanovic@gmail.com</a>> wrote:<br clear="none">><br clear="none">> Hi<br clear="none">><br clear="none">> I'm looking to perform glitchless on-the-fly switching of video<br clear="none">> streams that are coming from RTSP servers through rtspsrc. Switching<br clear="none">> works fine, but I always end up with 2sec video "freeze" that I<br clear="none">> assumed was due to rtspsrc buffering, but it seems more and more to me<br clear="none">> is caused by some clock/synchronization issues due to rtspsrc sources.<br clear="none">><br clear="none">> Below are links to a few pipeline graphs to demonstrate what I'm<br clear="none">> trying to achieve:<br clear="none">> - s1r.png: stream1 is running (playing).<br clear="none">> - s1r_s2c.png: in preparing for switching videos, a second stream was<br clear="none">> added to pipeline and playing (to fakesink).<br clear="none">> - s1s_s2r.png: stream1 is disconnected from sink and stream2 is now<br clear="none">> playing to waylandsink.<br clear="none">><br clear="none">> When I start the pipeline directly as in s1r_s2c.png from the start, I<br clear="none">> get choppy playback on the first stream that is shown, so it seems to<br clear="none">> indicate some clocking issue (but it seems that the video switch works<br clear="none">> well then).<br clear="none">><br clear="none">> Any suggestions as to what could be the problem in either of the two approaches?<br clear="none">><br clear="none">> Best regards,<br clear="none">> Vladan<br clear="none">><br clear="none">> - s1r.png: <a shape="rect" href="https://www.dropbox.com/s/iu0n4t7sxdsq2px/s1r.png?dl=0" target="_blank">https://www.dropbox.com/s/iu0n4t7sxdsq2px/s1r.png?dl=0</a><br clear="none">> - s1r_s2c.png: <a shape="rect" href="https://www.dropbox.com/s/vc1xu9cxghpwrks/s1r_s2c.png?dl=0" target="_blank">https://www.dropbox.com/s/vc1xu9cxghpwrks/s1r_s2c.png?dl=0</a><br clear="none">> - s1s_s2r.png: <a shape="rect" href="https://www.dropbox.com/s/zwmk88zylnv9ym7/s1s_s2r.png?dl=0" target="_blank">https://www.dropbox.com/s/zwmk88zylnv9ym7/s1s_s2r.png?dl=0</a><br clear="none"></div></div></div>
            </div>
        </div></body></html>