From dd552df15cc01cbb16bdf3480fdc313b90528d66 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sun, 28 Mar 2021 15:59:02 -0700 Subject: [PATCH] obs-x264: Set sample aspect ratio to 1:1 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 5a9a3b178..65c29f226 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -494,6 +494,8 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings, break; } + obsx264->params.vui.i_sar_height = 1; + obsx264->params.vui.i_sar_width = 1; obsx264->params.vui.b_fullrange = info.range == VIDEO_RANGE_FULL; obsx264->params.vui.i_colorprim = get_x264_cs_val(colorprim, x264_colorprim_names);