From: Sebastian Dröge Date: Wed, 1 Feb 2023 15:26:57 +0000 (+0200) Subject: aom: Include stream-format and alignment in the AV1 caps X-Git-Tag: 1.22.7~513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85fcde0f987caf8a32a95813e4ab8c538cef3b36;p=platform%2Fupstream%2Fgstreamer.git 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: --- 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 50128fb..92f5ac3 100644 --- a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json +++ b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json @@ -1113,7 +1113,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" }, @@ -1149,7 +1149,7 @@ "presence": "always" }, "src": { - "caps": "video/x-av1:\n alignment: tu\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 cf3339f..3aa1da5 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 4655894..811f7a2 100644 --- a/subprojects/gst-plugins-bad/ext/aom/gstav1enc.c +++ b/subprojects/gst-plugins-bad/ext/aom/gstav1enc.c @@ -285,7 +285,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, alignment = (string) tu") + GST_STATIC_CAPS ("video/x-av1, " + "stream-format = (string) obu-stream, " "alignment = (string) tu") ); static void