summaryrefslogtreecommitdiff
path: root/subprojects/gst-plugins-bad/tests
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2024-05-16 14:51:46 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2024-05-16 14:54:40 +0200
commit51c2030efd722df7f063de238adc36d938d9dda7 (patch)
treeda7cd17a986127831106bc463f29f0d3dcaaaa75 /subprojects/gst-plugins-bad/tests
parent7a03813ee9ec95187fd5605ef46fe955e3bada27 (diff)
examples: va: add option for enabling alive stream
This is useful to test va encoding for live streams which should enable output delay. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4359>
Diffstat (limited to 'subprojects/gst-plugins-bad/tests')
-rw-r--r--subprojects/gst-plugins-bad/tests/examples/va/vaenc-dynamic-reconfigure.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-bad/tests/examples/va/vaenc-dynamic-reconfigure.c b/subprojects/gst-plugins-bad/tests/examples/va/vaenc-dynamic-reconfigure.c
index 0961a0cea4..1e4809e48e 100644
--- a/subprojects/gst-plugins-bad/tests/examples/va/vaenc-dynamic-reconfigure.c
+++ b/subprojects/gst-plugins-bad/tests/examples/va/vaenc-dynamic-reconfigure.c
@@ -31,6 +31,7 @@ static GMainLoop *loop = NULL;
static gint width = 640;
static gint height = 480;
static guint rc_ctrl = 0;
+static gboolean alive = FALSE;
G_LOCK_DEFINE_STATIC (input_lock);
@@ -455,6 +456,8 @@ main (gint argc, gchar ** argv)
{"codec", 'c', 0, G_OPTION_ARG_STRING, &codec,
"Codec to test: "
"[ *h264, h265, vp9, av1, h264lp, h265lp, vp9lp, av1lp ]"},
+ {"alive", 'a', 0, G_OPTION_ARG_NONE, &alive,
+ "Set test source as a live stream"},
{NULL}
};
const struct {
@@ -516,7 +519,7 @@ main (gint argc, gchar ** argv)
pipeline = gst_pipeline_new (NULL);
MAKE_ELEMENT_AND_ADD (src, "videotestsrc");
- g_object_set (src, "pattern", 1, NULL);
+ g_object_set (src, "pattern", 1, "is-live", alive, NULL);
MAKE_ELEMENT_AND_ADD (capsfilter, "capsfilter");
MAKE_ELEMENT_AND_ADD (convert, "videoconvert");