Skip to content

Commit

Permalink
libvpx wants bitrate in kbps
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopper262 committed Dec 21, 2024
1 parent 801500b commit c704b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source_Files/FFmpeg/Movie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit c704b75

Please sign in to comment.