<div dir="ltr"><div>Hi Michael, <br></div><div><br></div><div>Thanks for pointing that out, that was really helpful. <br></div><div>Here is the working version of sample code,</div><div><a href="https://pastebin.com/aBJxqKN8">https://pastebin.com/aBJxqKN8</a></div><div><br></div><div>Thanks,<br></div><div>Aravindhan K<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 24, 2022 at 7:12 PM Michael Gruner <<a href="mailto:michael.gruner@ridgerun.com">michael.gruner@ridgerun.com</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="auto">Hi Aravindhan<div><br></div><div>Interpipes are essentially appsink/appsrc underneath.</div><div><br></div><div>I’ve seen this accumulation you’re referring to, and it’s almost always due to the interpipesrc (appsrc) queuing buffers. Make sure you limit the internal capacity via max-bytes, max-time or max-buffers and configure it to block or drop buffers when the internal queue is full, via block or leaky-type.</div><div><br></div><div>As per alternatives, there’s always the input-selector, intervideosrc/interaudiosrc or even handling the dynamic branches yourself programmatically. <br><div><div><br><div dir="ltr">Michael</div><div dir="ltr"><br><blockquote type="cite">On 24 Nov 2022, at 00:31, Aravindhan K via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Hi All, <br></div><div><br></div><div>For a video streaming application we are building we wanted to switch over different sources of video inputs ( One is RTSP source and other HLS source) and publish those over WebRTC connection. At first we we investigated using <a href="https://gstreamer.freedesktop.org/documentation/application-development/advanced/pipeline-manipulation.html" target="_blank">https://gstreamer.freedesktop.org/documentation/application-development/advanced/pipeline-manipulation.html</a>, it worked well for switching single element, but swapping most of pipeline didn't go well for us.</div><div><br></div><div>then came across this package, <a href="https://github.com/RidgeRun/gst-interpipe" target="_blank">https://github.com/RidgeRun/gst-interpipe</a> and tried a simple example using C code, <br></div><div><a href="https://pastebin.com/XUjNSi4i" target="_blank">https://pastebin.com/XUjNSi4i</a></div><div>when I try to switch the source pipeline, memory usage goes peeks and gets terminated by OS. If any used this package before, kindly share some pointers what I might be doing wrong. <br></div><div><br></div><div><br></div><div>Or any other alternate ways to handle this would be helpful<br></div><div><br></div><div><br></div><div>Thanks,</div><div>Aravindhan K<br></div></div>
</div></blockquote></div></div></div></div></blockquote></div>