h264section: set min bit rate on target file size

This commit is contained in:
itsmattkc
2021-04-06 12:38:31 +10:00
parent 4066fcba90
commit 57ddae8920
4 changed files with 23 additions and 1 deletions
+4
View File
@@ -517,6 +517,10 @@ bool FFmpegEncoder::InitializeStream(AVMediaType type, AVStream** stream_ptr, AV
codec_ctx->bit_rate = params().video_bit_rate();
}
if (params().video_min_bit_rate() > 0) {
codec_ctx->rc_min_rate = params().video_min_bit_rate();
}
if (params().video_max_bit_rate() > 0) {
codec_ctx->rc_max_rate = params().video_max_bit_rate();
}