How to use Camerabin
Thiago Santos
thiago.sousa.santos at collabora.com
Wed Jan 15 09:37:48 PST 2014
On 01/15/2014 12:53 PM, Ian Davidson wrote:
> Thanks Josh,
>
> I can now take pictures - which is good.
>
> I have found confirmation that stop-capture only applies to video, not
> still images.
>
> I notice that when I start camerabin, I get a preview window open up.
> I am now trying to stop the camera pipeline. If I send an EOS on the
> pipeline, it seems that the pipeline stops but the preview window
> stays open. My application has not completely finished until I
> manually close the preview window. If I set the camera pipeline state
> to NULL, the preview window disappears - but something is still
> running, even if I close the application.
>
> Evidently, I am missing something. Any ideas?
To stop camerabin you should wait for it to become idle. There is an
'idle' property to inform that,
or you just need to track the 'image-done' and 'video-done' messages it
posts for each capture.
Other than that, it just works like a regular pipeline, set it to NULL
and unref and it is finished. No
need to send EOS to it.
Your problem seems to be related to something else. Do you have a
mainloop running? Is it quit
when you close the window? You can try running with gdb to check what
threads are still running
when you try to close your application.
--
BR,
Thiago
>
> Ian
>
>
> On 15/01/2014 12:15, Josh Doe wrote:
>> On Wed, Jan 15, 2014 at 5:05 AM, Ian Davidson
>> <id012c3076 at blueyonder.co.uk> wrote:
>>> I am attempting to use camerabin to take snapshots.
>>>
>>> how would I make it take a picture?
>> It's been a while, but I believe you would just then run:
>>
>> g_signal_emit_by_name (myBin, "start-capture", 0);
>>
>> -Josh
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list