<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">There are some nice appsink/appsrc examples in the gst-plugins-bad repo:<div class=""><br class=""></div><div class=""><a href="https://github.com/GStreamer/gst-plugins-base/blob/master/tests/examples/app/appsink-src.c" class="">https://github.com/GStreamer/gst-plugins-base/blob/master/tests/examples/app/appsink-src.c</a></div><div class=""><br class=""></div><div class="">Michael<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 12 Jul 2022, at 14:58, Dirtec via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" class="">
  
  <div class="">
    <br class="">
    <div class="moz-forward-container"><br class="">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class=""><p class="">Hello,</p><p class="">Thanks for the hint.</p><p class="">I am new to GStreamer so could you explain how to use
        appsrc/appsink  for my usecase ?</p><p class="">Thanks</p><p class="">Frederic<br class="">
      </p>
      <div class="moz-cite-prefix">Le 12/07/2022 à 13:35, Nicolas
        Dufresne a écrit :<br class="">
      </div>
      <blockquote type="cite" cite="mid:CAKQmDh-DOmaEhnu30ew7Nf_PhN10-UeydcLEyc6u8c5msmXF8g@mail.gmail.com" class="">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8" class="">
        <div dir="auto" class="">
          <div class=""><br class="">
            <br class="">
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">Le lun. 11 juill. 2022,
                17 h 30, Dirtec via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" moz-do-not-send="true" class="moz-txt-link-freetext">gstreamer-devel@lists.freedesktop.org</a>>
                a écrit :<br class="">
              </div>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div class=""><p class="">Hello,</p><p class="">I have the following pipeline running on a Jetson
                    Xavier NX with 2 Li-IMX390 camera.</p><p class="">nvarguscamerasrc sensor-id=0 name=video_element_0 !
"video/x-raw(memory:NVMM),width=1920,height=1080,format=NV12,framerate=30/1"
                    ! queue ! nvv4l2h265enc control-rate=0 profile=1 !
                    h265parse ! queue ! mpegtsmux name=mux ! filesink
                    location="test.ts" name=filesink_element \<br class="">
                    nvarguscamerasrc sensor-id=1 name=video_element_1 !
"video/x-raw(memory:NVMM),width=1920,height=1080,format=NV12,framerate=30/1"
                    ! queue ! nvv4l2h265enc control-rate=0 profile=1 !
                    h265parse ! queue ! mux.</p><p class="">I would like to modify this pipeline so that when I
                    disconnect a camera the other camera continues to
                    record.</p><p class="">Any Idea on how to  achieve this ?</p>
                </div>
              </blockquote>
            </div>
          </div>
          <div dir="auto" class=""><br class="">
          </div>
          <div dir="auto" class="">The most popular approach,.as it's easier is
            to split your pipeline in two. Using appsrc/appsink to
            bridge the data. As an alternative, Ridgerun have an open
            source element doing this as part of their gst-daemon
            utility.</div>
          <div dir="auto" class=""><br class="">
          </div>
          <div dir="auto" class="">
            <div class="gmail_quote">
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div class=""><p class="">Regards.</p><p class=""><br class="">
                  </p><p class="">Frederic<br class="">
                  </p>
                </div>
              </blockquote>
            </div>
          </div>
        </div>
      </blockquote>
    </div>
  </div>

</div></blockquote></div><br class=""></div></body></html>