From 0f85a46148bb8458bca21adb368cb6e104bf4ab2 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 21 Jan 2022 00:49:33 +0100 Subject: [PATCH] encoding-profile: ignore more output caps fields chroma-format, bit-depth-chroma, bit-depth-luma are all informative fields set by the H265 and H265 parser upon receiving an SPS. They shouldn't be constrained downstream of the parser, instead if a user wants those to ultimately match certain values they should do so by constraining a profile. In this case however, we also always remove the profile constraint in order to let encoders pick a suitable one as a function of the raw input video format and their own capabilities. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c index 98123bb..65fd107 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c @@ -2193,7 +2193,7 @@ create_stream_profile_recurse (GstEncodingProfile * toplevel, gst_structure_remove_fields (s, "codec_data", "streamheader", "parsed", "colorimetry", "framed", "stream-format", "alignment", "tier", "level", - "profile", NULL); + "profile", "chroma-format", "bit-depth-luma", "bit-depth-chroma", NULL); GST_LOG ("Stream: %" GST_PTR_FORMAT, caps); if (GST_IS_DISCOVERER_AUDIO_INFO (sinfo)) { -- 2.7.4