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.
This commit is contained in:
Sebastian Dröge 2023-01-24 20:43:35 +02:00 committed by Hassene Tmar
parent 80e364876b
commit aba0b0e90a

View file

@ -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]"));