Skip to content

Commit 599a068

Browse files
author
hu
committed
Expand the range of source devices accepted by the gstreamer pipeline
1 parent da0dd1f commit 599a068

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kinesis-video-gst-demo/kinesis_video_gstreamer_sample_app.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ int gstreamer_init(int argc, char* argv[]) {
334334

335335
/* source filter */
336336
GstCaps *source_caps = gst_caps_new_simple("video/x-raw",
337-
"width", G_TYPE_INT, 1280,
338-
"height", G_TYPE_INT, 720,
339-
"framerate", GST_TYPE_FRACTION, 30, 1,
337+
"width", GST_TYPE_INT_RANGE, 320, 1920,
338+
"height", GST_TYPE_INT_RANGE, 240, 1080,
339+
"framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 30, 1,
340340
NULL);
341341
g_object_set(G_OBJECT (data.source_filter), "caps", source_caps, NULL);
342342
gst_caps_unref(source_caps);
@@ -354,9 +354,9 @@ int gstreamer_init(int argc, char* argv[]) {
354354
"profile", G_TYPE_STRING, "baseline",
355355
"stream-format", G_TYPE_STRING, "avc",
356356
"alignment", G_TYPE_STRING, "au",
357-
"width", G_TYPE_INT, 1280,
358-
"height", G_TYPE_INT, 720,
359-
"framerate", GST_TYPE_FRACTION, 30, 1,
357+
"width", GST_TYPE_INT_RANGE, 320, 1920,
358+
"height", GST_TYPE_INT_RANGE, 240, 1080,
359+
"framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 30, 1,
360360
NULL);
361361
g_object_set(G_OBJECT (data.filter), "caps", h264_caps, NULL);
362362
gst_caps_unref(h264_caps);

0 commit comments

Comments
 (0)