<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 04/05/2012 06:55 AM, Garth Tissington wrote:
    <blockquote
cite="mid:CAHZJNYWWUJ4UaLJSBSt7syc-Hn-Z9jN+dmwc6yy7mNarJkpYhw@mail.gmail.com"
      type="cite">
      <div dir="ltr"><font>Hello,</font>
        <div><font><br>
          </font></div>
        <div><font>I've looked through all the references I can find
            related to output-selector - including
            output-selector-tests.c. &nbsp;I still cannot get it to work.</font></div>
        <div><font><br>
          </font></div>
        <div><font>I'm using this pipline</font></div>
        <div><font><br>
          </font></div>
        <div><b id="internal-source-marker_0.8081336705945432"
            style="font-family: 'Times New Roman'; font-size: medium;"><span
              style="font-size: 15px; font-family: Arial; font-weight:
              normal; vertical-align: baseline; white-space: pre-wrap;">videotestsrc
              i</span><span style="font-size: 15px; font-family: Arial;
              font-weight: normal; vertical-align: baseline;
              white-space: pre-wrap;">s-live=true num-buffers=30 !</span></b></div>
        <div><b style="font-family: 'Times New Roman'; font-size:
            medium;"><span style="font-size: 15px; font-family: Arial;
              font-weight: normal; vertical-align: baseline;
              white-space: pre-wrap;"> ffmpegcolorspace !</span></b></div>
        <div><b style="font-family: 'Times New Roman'; font-size:
            medium;"><span style="font-size: 15px; font-family: Arial;
              font-weight: normal; vertical-align: baseline;
              white-space: pre-wrap;"> timeoverlay !</span></b></div>
        <div>
          <b style="font-family: 'Times New Roman'; font-size: medium;"><span
              style="font-size: 15px; font-family: Arial; font-weight:
              normal; vertical-align: baseline; white-space: pre-wrap;">
              ffmpegcolorspace !</span><br>
            <span style="font-size: 15px; font-family: Arial;
              font-weight: normal; vertical-align: baseline;
              white-space: pre-wrap;"> output-selector name=os&nbsp;</span></b></div>
        <div><b style="font-family: 'Times New Roman'; font-size:
            medium;"><span style="font-size: 15px; font-family: Arial;
              font-weight: normal; vertical-align: baseline;
              white-space: pre-wrap;"> os. ! queue ! ffmpegcolorspace !
              autovideosink&nbsp;</span></b></div>
        <div><b style="font-family: 'Times New Roman'; font-size:
            medium;"><span style="font-size: 15px; font-family: Arial;
              font-weight: normal; vertical-align: baseline;
              white-space: pre-wrap;"> os.</span></b><b
            style="font-family: 'Times New Roman'; font-size: medium;"><span
              style="font-size: 15px; font-family: Arial; font-weight:
              normal; vertical-align: baseline; white-space: pre-wrap;">
              ! qu</span></b><span style="font-family: Arial; font-size:
            15px; white-space: pre-wrap;">eue ! ffmpegcolorspace !
            autovideosink</span></div>
        <div><font><br>
          </font></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>after the pipeline is assembled I issue&nbsp;</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <pre style="padding: 0px; margin-top: 0px; margin-bottom: 0px; font-size: 13px; background-color: rgb(255, 255, 255);"><code>g_object_get (G_OBJECT (sel), "active-pad", &amp;srcpad1, NULL);</code></pre>
          <pre style="padding: 0px; margin-top: 0px; margin-bottom: 0px; font-size: 13px; background-color: rgb(255, 255, 255);"><code>
</code></pre>
          <pre style="padding: 0px; margin-top: 0px; margin-bottom: 0px; font-size: 13px; background-color: rgb(255, 255, 255);"><code>and</code></pre>
          <pre style="padding: 0px; margin-top: 0px; margin-bottom: 0px; font-size: 13px; background-color: rgb(255, 255, 255);">
</pre>
          <pre style="padding: 0px; margin-top: 0px; margin-bottom: 0px; font-size: 13px; background-color: rgb(255, 255, 255);"><code></code><pre style="padding: 0px; margin-top: 0px; margin-bottom: 0px;"><code>gst_element_set_state (pipeline, GST_STATE_PLAYING);</code></pre>
</pre>
        </div>
        <div><font><br>
          </font></div>
        <div><font>Everything works fine if I take the output selector
            out. &nbsp;However, with the output-selector there one videosink
            is displayed but the video is not updates. &nbsp;just a static
            snap shot. &nbsp;After num-buffers=30 expires the pipeline end.
            and the application closes normally. &nbsp;So, the clock appears
            to be running, one frame got through to the sink but no
            more.</font></div>
      </div>
    </blockquote>
    My gut feeling is that the sinks wait for prereoll buffers, which
    they should not as you use a livesrc, could you <br>
    1.) try that with a v4l2src<br>
    2.) try sync=false on the sinks?<br>
    This is just to narrow it down. Also run your app with
    GST_DEBUG="*:2" to check if gstreamer posts some warnings.<br>
    <br>
    Stefan<br>
    <blockquote
cite="mid:CAHZJNYWWUJ4UaLJSBSt7syc-Hn-Z9jN+dmwc6yy7mNarJkpYhw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><font><br>
          </font></div>
        <div>Interestingly<font>&nbsp;if I change num-buffers to 90 then the
            program hangs and does not exit after 3 seconds as expected.
            &nbsp;Does this mean the queue is full?</font></div>
        <div><font><br>
          </font></div>
        <div><font>Any ideas?</font></div>
        <div><font><br>
          </font></div>
        <div><font>Anyone know a real world example where
            output-selector is being used.&nbsp;</font></div>
        <div><font><br>
          </font></div>
        <div><font>Thanks,</font></div>
        <div><font><br>
          </font></div>
        <div>Garth Tissington
          <div>
            <div>250 891 4797</div>
            <div>---</div>
            <div>
              <div><br>
              </div>
              <div>Given sufficient thrust pigs fly just fine.</div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>