Parcourir la source

obs-x264: Set timebase

Matches values seen when encoding with FFmpeg.
jpark37 il y a 4 ans
Parent
commit
a52562a98e
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      plugins/obs-x264/obs-x264.c

+ 2 - 0
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_height = height;
 	obsx264->params.i_fps_num = voi->fps_num;
 	obsx264->params.i_fps_num = voi->fps_num;
 	obsx264->params.i_fps_den = voi->fps_den;
 	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.pf_log = log_x264;
 	obsx264->params.p_log_private = obsx264;
 	obsx264->params.p_log_private = obsx264;
 	obsx264->params.i_log_level = X264_LOG_WARNING;
 	obsx264->params.i_log_level = X264_LOG_WARNING;