aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Swain2011-06-30 04:09:44 -0500
committerThiago Santos2011-08-02 11:39:17 -0500
commit2609427ada306d6cc9ce9b96b91d4d5406d5c81c (patch)
tree27933eb9415778750ecfd8b01604a662751a31a2 /tests
parentdae8d8fd5ac03ee1a295b74297cb5f0522091e49 (diff)
downloadgst-plugins-bad0-10-2609427ada306d6cc9ce9b96b91d4d5406d5c81c.tar.gz
gst-plugins-bad0-10-2609427ada306d6cc9ce9b96b91d4d5406d5c81c.tar.xz
gst-plugins-bad0-10-2609427ada306d6cc9ce9b96b91d4d5406d5c81c.zip
camerabin2: Add flags prop to toggle encodebin conversion elements
A flags property has been added to encodebin to toggle whether the conversion elements (ffmpegcolorspace, videoscale, audioconvert, audioresample, audiorate) are created and linked into the appropriate branches of encodebin. Not including these elements avoids some slow caps negotiation and allows the first buffers to flow through encodebin much more quickly. However, it imposes that the uncompressed input is appropriate for the target profile and elements selected to meet that profile.
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/camerabin2/gst-camerabin2-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examples/camerabin2/gst-camerabin2-test.c b/tests/examples/camerabin2/gst-camerabin2-test.c
index abeeb9d02..4e7492764 100644
--- a/tests/examples/camerabin2/gst-camerabin2-test.c
+++ b/tests/examples/camerabin2/gst-camerabin2-test.c
@@ -217,6 +217,7 @@ static gchar *viewfinder_caps_str = NULL;
217static gchar *video_capture_caps_str = NULL; 217static gchar *video_capture_caps_str = NULL;
218static gboolean performance_measure = FALSE; 218static gboolean performance_measure = FALSE;
219static gchar *performance_targets_str = NULL; 219static gchar *performance_targets_str = NULL;
220static gchar *camerabin2_flags = NULL;
220 221
221 222
222#define MODE_VIDEO 2 223#define MODE_VIDEO 2
@@ -676,6 +677,8 @@ setup_pipeline (void)
676 677
677 GST_INFO_OBJECT (camerabin, "camerabin2 created"); 678 GST_INFO_OBJECT (camerabin, "camerabin2 created");
678 679
680 gst_util_set_object_arg (camerabin, "flags", camerabin2_flags);
681
679 if (videosrc_name) { 682 if (videosrc_name) {
680 GstElement *wrapper; 683 GstElement *wrapper;
681 GstElement *videosrc; 684 GstElement *videosrc;
@@ -1234,6 +1237,8 @@ main (int argc, char *argv[])
1234 ", shot to snapshot, shot to shot, preview to shot, shot to buffer. " 1237 ", shot to snapshot, shot to shot, preview to shot, shot to buffer. "
1235 "e.g. 3.5,1.0,5.0,2.5,5.0,1.5,1.0", 1238 "e.g. 3.5,1.0,5.0,2.5,5.0,1.5,1.0",
1236 NULL}, 1239 NULL},
1240 {"flags", '\0', 0, G_OPTION_ARG_STRING, &camerabin2_flags,
1241 "camerabin2 element flags (default = 0)", NULL},
1237 {NULL} 1242 {NULL}
1238 }; 1243 };
1239 1244