From c704b75a09d5c3298347522475bee75d7912809f Mon Sep 17 00:00:00 2001 From: Hopper262 Date: Fri, 20 Dec 2024 20:44:46 -0500 Subject: [PATCH] libvpx wants bitrate in kbps --- Source_Files/FFmpeg/Movie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source_Files/FFmpeg/Movie.cpp b/Source_Files/FFmpeg/Movie.cpp index 42a04f4a7..50a706153 100644 --- a/Source_Files/FFmpeg/Movie.cpp +++ b/Source_Files/FFmpeg/Movie.cpp @@ -277,7 +277,7 @@ bool Movie::Setup() cfg.g_timebase.num = 1; cfg.g_timebase.den = fps; cfg.rc_end_usage = vq == 100 ? VPX_VBR : VPX_CQ; - cfg.rc_target_bitrate = bitrate; + cfg.rc_target_bitrate = bitrate / 1000; cfg.rc_max_quantizer = ScaleQuality(vq, 63, 63, 50); cfg.rc_min_quantizer = ScaleQuality(vq, 10, 4, 0); if (vpx_codec_enc_init(&(av->codec), cif, &cfg, 0)) { ThrowUserError("Failed to initialize vpx encoder"); return false; }