x264enc: Allow maximum quantizer value of 63 instead of 51
authorSebastian Dröge <sebastian@centricular.com>
Fri, 21 Aug 2020 07:35:11 +0000 (10:35 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 24 Aug 2020 22:23:43 +0000 (23:23 +0100)
QP_MAX_SPEC in x264 is set to 63 nowadays and in theory it allows even
up to 81 (QP_MAX) but that seems to be outside the spec.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/67>

docs/gst_plugins_cache.json
ext/x264/gstx264enc.c

index 304fbcf..fb6d824 100644 (file)
                         "construct-only": false,
                         "controllable": false,
                         "default": "51",
-                        "max": "51",
+                        "max": "63",
                         "min": "0",
                         "mutable": "null",
                         "readable": true,
                         "construct-only": false,
                         "controllable": false,
                         "default": "10",
-                        "max": "51",
+                        "max": "63",
                         "min": "0",
                         "mutable": "null",
                         "readable": true,
                         "construct-only": false,
                         "controllable": false,
                         "default": "4",
-                        "max": "50",
+                        "max": "63",
                         "min": "0",
                         "mutable": "null",
                         "readable": true,
index c6248fe..4490181 100644 (file)
@@ -1137,18 +1137,18 @@ gst_x264_enc_class_init (GstX264EncClass * klass)
   g_string_append_printf (x264enc_defaults, ":cabac=%d", ARG_CABAC_DEFAULT);
   g_object_class_install_property (gobject_class, ARG_QP_MIN,
       g_param_spec_uint ("qp-min", "Minimum Quantizer",
-          "Minimum quantizer", 0, 51, ARG_QP_MIN_DEFAULT,
+          "Minimum quantizer", 0, 63, ARG_QP_MIN_DEFAULT,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_string_append_printf (x264enc_defaults, ":qpmin=%d", ARG_QP_MIN_DEFAULT);
   g_object_class_install_property (gobject_class, ARG_QP_MAX,
       g_param_spec_uint ("qp-max", "Maximum Quantizer",
-          "Maximum quantizer", 0, 51, ARG_QP_MAX_DEFAULT,
+          "Maximum quantizer", 0, 63, ARG_QP_MAX_DEFAULT,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_string_append_printf (x264enc_defaults, ":qpmax=%d", ARG_QP_MAX_DEFAULT);
   g_object_class_install_property (gobject_class, ARG_QP_STEP,
       g_param_spec_uint ("qp-step", "Maximum Quantizer Difference",
           "Maximum quantizer difference between frames",
-          0, 50, ARG_QP_STEP_DEFAULT,
+          0, 63, ARG_QP_STEP_DEFAULT,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_string_append_printf (x264enc_defaults, ":qpstep=%d", ARG_QP_STEP_DEFAULT);
   g_object_class_install_property (gobject_class, ARG_IP_FACTOR,