From aba0b0e90a4e4bbefed54a2afd8cf501060224e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 24 Jan 2023 20:43:35 +0200 Subject: [PATCH] gstreamer: Use stream-format=obu-stream alignment=tu in the caps There is no byte-stream/au format for AV1 but only for H264, and the encoder actually outputs obu-stream/tu instead of the annexb stream-format that is similar to H264 byte-stream format. Without this the encoder can't be used with elements that require a specific AV1 stream-format, e.g. the MP4 or Matroska/WebM muxer. --- subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c index 6caa695d6d..838ff93817 100644 --- a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c +++ b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c @@ -108,8 +108,8 @@ static GstStaticPadTemplate gst_svtav1enc_sink_pad_template = GST_STATIC_PAD_TEM static GstStaticPadTemplate gst_svtav1enc_src_pad_template = GST_STATIC_PAD_TEMPLATE( "src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS("video/x-av1, " - "stream-format = (string) byte-stream, " - "alignment = (string) au, " + "stream-format = (string) obu-stream, " + "alignment = (string) tu, " "width = (int) [64, 3840], " "height = (int) [64, 2160], " "framerate = (fraction) [0, MAX]"));