2010-12-14 11:44:36 +00:00
|
|
|
This document lists the differenced between camerabin and camerabin2 from
|
|
|
|
the API point of view and should be used to help on porting applications
|
|
|
|
from camerabin to camerabin2.
|
|
|
|
|
|
|
|
* Setting the location for the captures:
|
|
|
|
camerabin requires that the path of the file to save the captures is set before
|
|
|
|
each capture. Camerabin2 allows the application to use a multifilesink-like
|
|
|
|
approach, the application can set a file with a '%d' marker, this marker
|
|
|
|
will be automatically replaced by a number and be autoincremented after each
|
|
|
|
capture.
|
2011-04-29 11:54:56 +00:00
|
|
|
The property is now called 'location' instead of 'filename'
|
2010-12-14 11:44:36 +00:00
|
|
|
|
|
|
|
* Capture signals
|
|
|
|
The signals were renamed from capture-start/stop to start/stop-capture as
|
|
|
|
this is the usual naming on actions.
|
2011-03-23 20:46:56 +00:00
|
|
|
Additionally, stop-capture is now async, the user should check 'idle' property
|
|
|
|
to be sure that it can shut camerabin2.
|
2011-01-14 11:12:25 +00:00
|
|
|
|
|
|
|
* image-done
|
|
|
|
In camerabin, image-done is a signal, in camerabin2, it is a bus message
|
2011-01-19 18:07:25 +00:00
|
|
|
|
|
|
|
* video recording encoder/muxer
|
|
|
|
In camerabin, video/audio encoder/muxer are selected by passing GstElements to
|
|
|
|
camerabin properties. In camerabin2, a GstEncodingProfile is passed as a
|
|
|
|
property and encodebin manages to instantiate the elements for the format.
|
2011-03-23 20:46:56 +00:00
|
|
|
|
2011-04-29 11:54:56 +00:00
|
|
|
* Previews
|
|
|
|
new "post-previews" property for enabling/disabling preview image posting
|
|
|
|
|
|
|
|
* Configuring resolution and framerate
|
|
|
|
Camerabin2 has new GstCaps type properties for configuring capture and
|
|
|
|
viewfinder formats:
|
|
|
|
video-capture-caps
|
|
|
|
image-capture-caps
|
|
|
|
audio-capture-caps
|
|
|
|
viewfinder-caps
|
|
|
|
|