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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3873>
This commit is contained in:
Sebastian Dröge 2023-02-01 17:26:57 +02:00 committed by GStreamer Marge Bot
parent ba91964a70
commit 85fcde0f98
3 changed files with 6 additions and 4 deletions

View file

@ -1113,7 +1113,7 @@
"long-name": "AV1 Decoder", "long-name": "AV1 Decoder",
"pad-templates": { "pad-templates": {
"sink": { "sink": {
"caps": "video/x-av1:\n", "caps": "video/x-av1:\n stream-format: obu-stream\n alignment: tu\n",
"direction": "sink", "direction": "sink",
"presence": "always" "presence": "always"
}, },
@ -1149,7 +1149,7 @@
"presence": "always" "presence": "always"
}, },
"src": { "src": {
"caps": "video/x-av1:\n alignment: tu\n", "caps": "video/x-av1:\n stream-format: obu-stream\n alignment: tu\n",
"direction": "src", "direction": "src",
"presence": "always" "presence": "always"
} }

View file

@ -44,7 +44,8 @@ static GstStaticPadTemplate gst_av1_dec_sink_pad_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_ALWAYS, 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 = static GstStaticPadTemplate gst_av1_dec_src_pad_template =

View file

@ -285,7 +285,8 @@ static GstStaticPadTemplate gst_av1_enc_src_pad_template =
GST_STATIC_PAD_TEMPLATE ("src", GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, 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 static void