From a52562a98eae46dae3e0928dafc06a4e66a32400 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sun, 28 Mar 2021 15:58:27 -0700 Subject: [PATCH] obs-x264: Set timebase Matches values seen when encoding with FFmpeg. --- plugins/obs-x264/obs-x264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index dfaa9f715..5a9a3b178 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -460,6 +460,8 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings, obsx264->params.i_height = height; obsx264->params.i_fps_num = voi->fps_num; obsx264->params.i_fps_den = voi->fps_den; + obsx264->params.i_timebase_num = voi->fps_den; + obsx264->params.i_timebase_den = voi->fps_num; obsx264->params.pf_log = log_x264; obsx264->params.p_log_private = obsx264; obsx264->params.i_log_level = X264_LOG_WARNING;