<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/12/2015 07:43 AM, Ian Davidson
      wrote:<br>
    </div>
    <blockquote cite="mid:54B3A553.5070802@blueyonder.co.uk" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=windows-1252">
      <p class="western" style="margin-bottom: 0cm">I have a program
        which uses camerabin to take snapshots – and it works most of
        the time. However, the program is not very rugged in its error
        handling – because I don't know what I should look for. Below, I
        first describe the scenario and then ask some questions.</p>
      <p class="western" style="margin-bottom: 0cm"><b>Scenario</b>.</p>
      <p class="western" style="margin-bottom: 0cm">My program runs on a
        Fedora system. My version of GStreamer is approximately 2 years
        old – I can't remember the version number but it is 1.x. I want
        to be able to take photos of the highest resolution (number of
        pixels) that the system can support. When I launch camerabin it
        automatically launches a window for a viewfinder. I do not need
        the Viewfinder – although it does give the comfort of knowing
        that the camera is connected. By default, this window is the
        same size as the capture size – and therefore occupies most of
        the screen and hides my program's User Interface. (There is an
        option to specify a size for the Viewfinder window, but unless
        it exactly matches the capture size, the pipeline will not
        launch.) What I do (and what I tell my users to do) is to grab
        the Viewfinder window by the title bar and drag it nearly off
        the screen, out of the way. Sometimes however, the user will
        click on the 'Kiss of Death' button at the top right and close
        the Viewfinder window – and it would seem that this has a fatal
        effect on the camerbin pipeline. My program does not notice that
        camerabin has stopped running.</p>
      <p class="western" style="margin-bottom: 0cm"><b>Questions</b></p>
      <ol>
        <li>
          <p class="western" style="margin-bottom: 0cm">Is there some
            message/event/signal that I should be able to monitor for to
            tell me that the pipeline has been stopped (for whatever
            reason, but especially because the Viewfinder window has
            been closed)?</p>
        </li>
      </ol>
    </blockquote>
    You will likely receive an error message on the bus.<br>
    <blockquote cite="mid:54B3A553.5070802@blueyonder.co.uk" type="cite">
      <ol>
        <li> <br>
        </li>
        <li>
          <p class="western" style="margin-bottom: 0cm">Can I launch
            camerabin without the Viewfinder?</p>
        </li>
      </ol>
    </blockquote>
    If you don't need to show a viewfinder you can set the
    viewfinder-sink property to a fakesink element and it won't show any
    for you.
    <blockquote cite="mid:54B3A553.5070802@blueyonder.co.uk" type="cite">
      <ol>
        <li> <br>
        </li>
        <li>
          <p class="western" style="margin-bottom: 0cm">Is there a way
            that I can programmatically bring my User Interface to the
            front or send the Viewfinder window to the back after I have
            started the camerbin pipeline?</p>
        </li>
        <li>
          <p class="western" style="margin-bottom: 0cm">Is there a way
            that I can programmatically control the position of the
            Viewfinder window before/after I launch camerabin?</p>
        </li>
      </ol>
    </blockquote>
    The viewfinder sink element will ask the application for a window to
    draw its output to. If you don't give it any it will have to create
    its own window for display. Take a look at the documentation here:
<a class="moz-txt-link-freetext" href="https://developer.gnome.org/gst-plugins-libs/stable/gst-plugins-base-libs-gstvideooverlay.html">https://developer.gnome.org/gst-plugins-libs/stable/gst-plugins-base-libs-gstvideooverlay.html</a><br>
    <blockquote cite="mid:54B3A553.5070802@blueyonder.co.uk" type="cite">
      <ol>
        <li> <br>
        </li>
      </ol>
      <p class="western" style="margin-bottom: 0cm">An answer to any one
        of those questions would probably solve my problem.<br>
      </p>
    </blockquote>
    <blockquote cite="mid:54B3A553.5070802@blueyonder.co.uk" type="cite">
      <p class="western" style="margin-bottom: 0cm"> </p>
      <p class="western" style="margin-bottom: 0cm">Thanks in advance<br>
      </p>
      <p class="western" style="margin-bottom: 0cm">Ian<br>
      </p>
      <title></title>
      <meta name="GENERATOR" content="OpenOffice 4.1.1 (Win32)">
      <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->
        </style>
      <div class="moz-signature"><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
  </body>
</html>