<html><head></head><body><div class="ydp636aad1byahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr" data-setdir="false">Can you enable debug logs and check form which element the EOS is generated?</div><div><br></div><div class="ydp636aad1bsignature"><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_5515472275" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, 22 May, 2023 at 11:14:06 am GMT-5, Guru Govindan via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv2983697795"><div dir="ltr">Hi,<br><div><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;">I am implementing a Gstreamer pipeline in rust to ingest rtsp feed from different cameras. I use the </span><code style="margin:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;white-space:pre-wrap;color:rgb(35,38,41);">hlssink2</code><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"> element to create manifest to view/store the video.</span><br></div><div><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"><br></span></div><div><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;">For some of the cameras, the hlssink2's splitmux element receives a </span><code style="margin:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;white-space:pre-wrap;color:rgb(35,38,41);">GST_EVENT_EOS</code><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"> which results in the pipeline stopping.</span><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"><br></span></div><div><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"><br></span></div><div><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;">This happens even if I add a </span><code style="margin:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;white-space:pre-wrap;color:rgb(35,38,41);">bus.add_watch</code><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"> and capture the </span><code style="margin:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;white-space:pre-wrap;color:rgb(35,38,41);">gst::MessageView::Eos(state_changed)</code><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"> event.</span><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"><br></span></div><div><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;"><br></span></div><div><p style="margin:0px 0px 1.1em;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;font-family:-apple-system, UI sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(35,38,41);">Is there a way to programatically block the EOS message and keep the rtsp connection on?</p><p style="margin:0px 0px 1.1em;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;font-family:-apple-system, UI sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(35,38,41);">Here is an example pipeline for which I have a rust implementation.</p><pre style="margin-top:0px;margin-bottom:0px;border:0px;font-stretch:inherit;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;" class="yiv2983697795gmail-lang-rust yiv2983697795gmail-s-code-block"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:transparent;white-space:inherit;" class="yiv2983697795gmail-hljs yiv2983697795gmail-language-rust">gst-launch-<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-number">1.0</span> hlssink2 name=ingest1 playlist-length=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-number">5</span> max-files=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-number">0</span> target-duration=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-number">10</span> \
send-keyframe-requests=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-literal">true</span> playlist-location=/tmp/manifest.m3u8 location=/tmp/video/%t.ts \
rtspsrc latency=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-number">100</span> location=<rtspurl> protocols=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;" class="yiv2983697795gmail-hljs-number">0x00000004</span> name=basesrc basesrc. ! rtph264depay ! tee name=t \
t.! queue  ! ingest1.video</code></pre><pre style="margin-top:0px;margin-bottom:0px;border:0px;font-stretch:inherit;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;" class="yiv2983697795gmail-lang-rust yiv2983697795gmail-s-code-block"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;background-color:transparent;white-space:inherit;" class="yiv2983697795gmail-hljs yiv2983697795gmail-language-rust"><br></code></pre><pre style="margin-top:0px;margin-bottom:0px;border:0px;font-stretch:inherit;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;" class="yiv2983697795gmail-lang-rust yiv2983697795gmail-s-code-block"><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;white-space:normal;">I tried using errorignore and set the ignore-eos flag and convert-to=0. I used it right after rtspsrc element and right before hlssink2. However this seems to come from splitmuxsink inside hlssink2.</span><br></pre><pre style="margin-top:0px;margin-bottom:0px;border:0px;font-stretch:inherit;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;" class="yiv2983697795gmail-lang-rust yiv2983697795gmail-s-code-block"><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;white-space:normal;"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px;border:0px;font-stretch:inherit;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;" class="yiv2983697795gmail-lang-rust yiv2983697795gmail-s-code-block"><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;white-space:normal;">Best Regards,</span></pre><pre style="margin-top:0px;margin-bottom:0px;border:0px;font-stretch:inherit;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;" class="yiv2983697795gmail-lang-rust yiv2983697795gmail-s-code-block"><span style="color:rgb(35,38,41);font-family:-apple-system, UI sans-serif;font-size:15px;white-space:normal;">Guru</span></pre></div></div>
</div></div>
            </div>
        </div></body></html>