Skip to content

Commit d55a954

Browse files
committed
compress/openapv: Set a reasonable default quality
For automatic QP to work the rc_type must be ABR and bitrate must be 0
1 parent c98835c commit d55a954

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/video_compress/openapv.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ void* openapv_compress_init(module */*parent*/, const char *opts) {
393393
return nullptr;
394394
}
395395

396+
s->cdsc.param->qp = OAPVE_PARAM_QP_AUTO;
397+
s->cdsc.param->rc_type = OAPV_RC_ABR;
398+
s->cdsc.param->bitrate = 0;
399+
396400
s->cdsc.max_num_frms = MAX_NUM_FRMS;
397401

398402
if (opts && opts[0] != '\0') {

0 commit comments

Comments
 (0)