mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-04 12:39:56 +00:00
commit current progress
This commit is contained in:
parent
540edb80e7
commit
e1b048fa53
@ -115,7 +115,13 @@ void encodeThread(
|
||||
av_dict_set(&options, "preset", config::video.preset.c_str(), 0);
|
||||
av_dict_set(&options, "tune", config::video.tune.c_str(), 0);
|
||||
|
||||
if(config::video.crf != 0) {
|
||||
if(config.bitrate > 500) {
|
||||
ctx->rc_max_rate = 2000000;
|
||||
ctx->rc_buffer_size = 2000000;
|
||||
ctx->bit_rate = config.bitrate * 1000;
|
||||
// av_dict_set_int(&options, "qp", config::video.qp, 0);
|
||||
}
|
||||
else if(config::video.crf != 0) {
|
||||
av_dict_set_int(&options, "crf", config::video.crf, 0);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user