<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I got it ! But not sure how to implement it best.</p>
    <p>I need to set `pts` on every create call and increment. What
      would be the simplest way to do it in my case?<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 9/17/21 7:53 PM, Reinis wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:04e5210f-49e5-815e-83bb-ab23e6cd57d6@xpresshd.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hello!</p>
      <p>After my previous email I have created simple plugins to send
        and receive information through video. <a
          class="moz-txt-link-freetext"
          href="https://github.com/reinismu/gst-data-video"
          moz-do-not-send="true">https://github.com/reinismu/gst-data-video</a><br>
        Basic example line `<code>GST_DEBUG=*:3 datasrc !
          video/x-raw,framerate=25/1,width=1920,height=1080 ! datasink</code>`
        works fine, but when I try to send the same stream to decklink
        card <br>
      </p>
      <p>`GST_DEBUG=*:3 gst-launch-1.0 datasrc !
        video/x-raw,framerate=25/1,width=1920,height=1080,format=UYVY !
        decklinkvideosink device-number=1 mode=1080p25`<br>
      </p>
      <p>I get <br>
      </p>
      <p>```</p>
      <p>Setting pipeline to PAUSED ...<br>
        Pipeline is PREROLLING ...<br>
        0:00:00.066954349 330572 0x55d1513f6c00 FIXME               
        default
        gstutils.c:4025:gst_pad_create_stream_id_internal:<datasrc0:src>
        Creating random stream-id, consider implementing a deterministic
        way of creating a stream-id<br>
        Redistribute latency...<br>
        0:00:00.067288248 330572 0x55d1513f6c00 WARN                
        datasrc
        src/datasrc/imp.rs:178:gstdataembed::datasrc::imp:<datasrc0>
        Created buffer with size 8294400<br>
        0:00:00.067313957 330572 0x55d1513f6c00 WARN                
        basesrc gstbasesrc.c:3127:gst_base_src_loop:<datasrc0>
        error: Internal data stream error.<br>
        0:00:00.067317744 330572 0x55d1513f6c00 WARN                
        basesrc gstbasesrc.c:3127:gst_base_src_loop:<datasrc0>
        error: streaming stopped, reason error (-5)<br>
        ERROR: from element /GstPipeline:pipeline0/DataSrc:datasrc0:
        Internal data stream error.<br>
        Additional debug info:<br>
        ../gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop
        (): /GstPipeline:pipeline0/DataSrc:datasrc0:<br>
        streaming stopped, reason error (-5)<br>
        ERROR: pipeline doesn't want to preroll.<br>
        Setting pipeline to NULL ...<br>
        Freeing pipeline ...<br>
      </p>
      <p>```</p>
      <p><br>
      </p>
      <p>When I use `videotestsrc` (`GST_DEBUG=*:3 gst-launch-1.0
        videotestsrc !
        video/x-raw,framerate=25/1,width=1920,height=1080,format=UYVY !
        decklinkvideosink device-number=1 mode=1080p25`) It works fine.</p>
      <p><br>
      </p>
      <p>Maybe someone can point me in the right direction?</p>
      <p><br>
      </p>
      <p>Thanks!<br>
      </p>
    </blockquote>
  </body>
</html>