From 9ee04be643087e02ff01f8223ce200cab40dd944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 Feb 2023 17:26:57 +0200 Subject: [PATCH] aom: Include stream-format and alignment in the AV1 caps The decoder does not work with arbitrary alignment and annexb stream format and the encoder can give the information that it outputs obu-stream/tu to downstream. Part-of: --- .../gst-plugins-bad/docs/plugins/gst_plugins_cache.json | 4 ++-- subprojects/gst-plugins-bad/ext/aom/gstav1dec.c | 3 ++- subprojects/gst-plugins-bad/ext/aom/gstav1enc.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json index add1c2519d..ea18beab2f 100644 --- a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json +++ b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json @@ -474,7 +474,7 @@ "long-name": "AV1 Decoder", "pad-templates": { "sink": { - "caps": "video/x-av1:\n", + "caps": "video/x-av1:\n stream-format: obu-stream\n alignment: tu\n", "direction": "sink", "presence": "always" }, @@ -510,7 +510,7 @@ "presence": "always" }, "src": { - "caps": "video/x-av1:\n", + "caps": "video/x-av1:\n stream-format: obu-stream\n alignment: tu\n", "direction": "src", "presence": "always" } diff --git a/subprojects/gst-plugins-bad/ext/aom/gstav1dec.c b/subprojects/gst-plugins-bad/ext/aom/gstav1dec.c index 40d6e4e87c..52e3a23c56 100644 --- a/subprojects/gst-plugins-bad/ext/aom/gstav1dec.c +++ b/subprojects/gst-plugins-bad/ext/aom/gstav1dec.c @@ -44,7 +44,8 @@ static GstStaticPadTemplate gst_av1_dec_sink_pad_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-av1") + GST_STATIC_CAPS ("video/x-av1, " + "stream-format = (string) obu-stream, " "alignment = (string) tu") ); static GstStaticPadTemplate gst_av1_dec_src_pad_template = diff --git a/subprojects/gst-plugins-bad/ext/aom/gstav1enc.c b/subprojects/gst-plugins-bad/ext/aom/gstav1enc.c index dbd9547a44..b4b501741f 100644 --- a/subprojects/gst-plugins-bad/ext/aom/gstav1enc.c +++ b/subprojects/gst-plugins-bad/ext/aom/gstav1enc.c @@ -218,7 +218,8 @@ static GstStaticPadTemplate gst_av1_enc_src_pad_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-av1") + GST_STATIC_CAPS ("video/x-av1, " + "stream-format = (string) obu-stream, " "alignment = (string) tu") ); static void