mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gstreamer: Set force_key_frames=true
in CQP/CRF mode
Other modes don't support that so keyframes can't be requested at arbitrary times.
This commit is contained in:
parent
f24643b48f
commit
90fd191392
1 changed files with 3 additions and 0 deletions
|
@ -358,6 +358,9 @@ static void gst_svtav1enc_set_property(GObject *object, guint property_id, const
|
||||||
case PROP_PRESET: svtav1enc->svt_config->enc_mode = g_value_get_uint(value); break;
|
case PROP_PRESET: svtav1enc->svt_config->enc_mode = g_value_get_uint(value); break;
|
||||||
case PROP_RATE_CONTROL_MODE:
|
case PROP_RATE_CONTROL_MODE:
|
||||||
svtav1enc->svt_config->rate_control_mode = g_value_get_enum(value);
|
svtav1enc->svt_config->rate_control_mode = g_value_get_enum(value);
|
||||||
|
// Forcing keyframes is only support in CQP/CRF mode
|
||||||
|
svtav1enc->svt_config->force_key_frames = (svtav1enc->svt_config->rate_control_mode ==
|
||||||
|
SVT_AV1_RC_MODE_CQP_OR_CRF);
|
||||||
break;
|
break;
|
||||||
case PROP_TARGET_BITRATE:
|
case PROP_TARGET_BITRATE:
|
||||||
svtav1enc->svt_config->target_bit_rate = g_value_get_uint(value) * 1000;
|
svtav1enc->svt_config->target_bit_rate = g_value_get_uint(value) * 1000;
|
||||||
|
|
Loading…
Reference in a new issue