New upstream version 24.0.3+dfsg1
This commit is contained in:
parent
5a730d6ec3
commit
52fa83f147
16 changed files with 213 additions and 32 deletions
|
|
@ -449,6 +449,8 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
|
|||
if (lookahead && nv_get_cap(enc, NV_ENC_CAPS_SUPPORT_LOOKAHEAD)) {
|
||||
config->rcParams.lookaheadDepth = 8;
|
||||
config->rcParams.enableLookahead = 1;
|
||||
} else {
|
||||
lookahead = false;
|
||||
}
|
||||
|
||||
/* psycho aq */
|
||||
|
|
@ -461,7 +463,8 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
|
|||
/* rate control */
|
||||
|
||||
enc->can_change_bitrate =
|
||||
nv_get_cap(enc, NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE);
|
||||
nv_get_cap(enc, NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE) &&
|
||||
!lookahead;
|
||||
|
||||
config->rcParams.rateControlMode = twopass ? NV_ENC_PARAMS_RC_VBR_HQ
|
||||
: NV_ENC_PARAMS_RC_VBR;
|
||||
|
|
|
|||
|
|
@ -93,9 +93,6 @@ static void ffmpeg_source_defaults(obs_data_t *settings)
|
|||
obs_data_set_default_bool(settings, "looping", false);
|
||||
obs_data_set_default_bool(settings, "clear_on_media_end", true);
|
||||
obs_data_set_default_bool(settings, "restart_on_activate", true);
|
||||
#if defined(_WIN32)
|
||||
obs_data_set_default_bool(settings, "hw_decode", true);
|
||||
#endif
|
||||
obs_data_set_default_int(settings, "buffering_mb", 2);
|
||||
obs_data_set_default_int(settings, "speed_percent", 100);
|
||||
}
|
||||
|
|
@ -321,16 +318,12 @@ static void ffmpeg_source_update(void *data, obs_data_t *settings)
|
|||
s->is_looping = obs_data_get_bool(settings, "looping");
|
||||
s->close_when_inactive =
|
||||
obs_data_get_bool(settings, "close_when_inactive");
|
||||
|
||||
obs_source_set_async_unbuffered(s->source, true);
|
||||
} else {
|
||||
input = (char *)obs_data_get_string(settings, "input");
|
||||
input_format =
|
||||
(char *)obs_data_get_string(settings, "input_format");
|
||||
s->is_looping = false;
|
||||
s->close_when_inactive = true;
|
||||
|
||||
obs_source_set_async_unbuffered(s->source, false);
|
||||
}
|
||||
|
||||
s->input = input ? bstrdup(input) : NULL;
|
||||
|
|
|
|||
|
|
@ -225,7 +225,8 @@ static void stinger_transition_start(void *data)
|
|||
|
||||
proc_handler_call(ph, "get_duration", &cd);
|
||||
proc_handler_call(ph, "get_nb_frames", &cd);
|
||||
s->duration_ns = (uint64_t)calldata_int(&cd, "duration");
|
||||
s->duration_ns =
|
||||
(uint64_t)calldata_int(&cd, "duration") + 500000000ULL;
|
||||
s->duration_frames = (uint64_t)calldata_int(&cd, "num_frames");
|
||||
|
||||
if (s->transition_point_is_frame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue