mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-19 20:46:22 +00:00
fdkaacenc: add support for AAC-LD
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1785>
This commit is contained in:
parent
8cda666cb0
commit
d8b1ff4668
1 changed files with 5 additions and 2 deletions
|
@ -74,7 +74,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
"rate = (int) { " SAMPLE_RATES " }, "
|
"rate = (int) { " SAMPLE_RATES " }, "
|
||||||
"channels = (int) {1, 2, 3, 4, 5, 6, 8}, "
|
"channels = (int) {1, 2, 3, 4, 5, 6, 8}, "
|
||||||
"stream-format = (string) { adts, adif, raw }, "
|
"stream-format = (string) { adts, adif, raw }, "
|
||||||
"profile = (string) { lc, sbr, ps }, " "framed = (boolean) true")
|
"profile = (string) { lc, sbr, ps, ld }, " "framed = (boolean) true")
|
||||||
);
|
);
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_fdkaacenc_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_fdkaacenc_debug);
|
||||||
|
@ -256,7 +256,7 @@ gst_fdkaacenc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
|
||||||
|
|
||||||
if ((str = gst_structure_get_string (s, "profile"))) {
|
if ((str = gst_structure_get_string (s, "profile"))) {
|
||||||
if (strcmp (str, "lc") == 0) {
|
if (strcmp (str, "lc") == 0) {
|
||||||
GST_DEBUG_OBJECT (self, "using LC profile for output");
|
GST_DEBUG_OBJECT (self, "using AAC-LC profile for output");
|
||||||
aot = AOT_AAC_LC;
|
aot = AOT_AAC_LC;
|
||||||
} else if (strcmp (str, "sbr") == 0) {
|
} else if (strcmp (str, "sbr") == 0) {
|
||||||
GST_DEBUG_OBJECT (self, "using SBR (HE-AAC) profile for output");
|
GST_DEBUG_OBJECT (self, "using SBR (HE-AAC) profile for output");
|
||||||
|
@ -264,6 +264,9 @@ gst_fdkaacenc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
|
||||||
} else if (strcmp (str, "ps") == 0) {
|
} else if (strcmp (str, "ps") == 0) {
|
||||||
GST_DEBUG_OBJECT (self, "using PS (HE-AACv2) profile for output");
|
GST_DEBUG_OBJECT (self, "using PS (HE-AACv2) profile for output");
|
||||||
aot = AOT_PS;
|
aot = AOT_PS;
|
||||||
|
} else if (strcmp (str, "ld") == 0) {
|
||||||
|
GST_DEBUG_OBJECT (self, "using AAC-LD profile for output");
|
||||||
|
aot = AOT_ER_AAC_LD;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue