mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 09:41:07 +00:00
lcevch264enc: Set 'byte-stream' format and 'au' alignment in output caps
This is because the LCEVC EIL SDK from V-Nova always outputs encoded video in that format. This also avoids using the parser in some scenarios. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7750>
This commit is contained in:
parent
03b6226772
commit
04af62b70f
1 changed files with 8 additions and 3 deletions
|
@ -23,10 +23,16 @@
|
||||||
|
|
||||||
#include "gstlcevch264enc.h"
|
#include "gstlcevch264enc.h"
|
||||||
|
|
||||||
|
#define GST_LCEVC_H264_ENC_CAPS \
|
||||||
|
"video/x-h264, " \
|
||||||
|
"lcevc = (boolean) true, " \
|
||||||
|
"stream-format = (string) byte-stream, " \
|
||||||
|
"alignment = (string) au"
|
||||||
|
|
||||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/x-h264, lcevc = (boolean) true")
|
GST_STATIC_CAPS (GST_LCEVC_H264_ENC_CAPS)
|
||||||
);
|
);
|
||||||
|
|
||||||
struct _GstLcevcH264Enc
|
struct _GstLcevcH264Enc
|
||||||
|
@ -49,8 +55,7 @@ gst_lecevc_h264_enc_get_eil_plugin_name (GstLcevcEncoder * enc)
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
gst_lecevc_h264_enc_get_output_caps (GstLcevcEncoder * enc)
|
gst_lecevc_h264_enc_get_output_caps (GstLcevcEncoder * enc)
|
||||||
{
|
{
|
||||||
return gst_caps_new_simple ("video/x-h264",
|
return gst_static_caps_get (&src_template.static_caps);
|
||||||
"lcevc", G_TYPE_BOOLEAN, TRUE, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue