Revision f07c9895

View differences:

libavcodec/libvpxenc.c
237 237
    enccfg.rc_target_bitrate = av_rescale_rnd(avctx->bit_rate, 1, 1000,
238 238
                                              AV_ROUND_NEAR_INF);
239 239

  
240
    //convert [1,51] -> [0,63]
241
    enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1;
242
    enccfg.rc_max_quantizer = ((avctx->qmax * 5 + 1) >> 2) - 1;
240
    enccfg.rc_min_quantizer = avctx->qmin;
241
    enccfg.rc_max_quantizer = avctx->qmax;
243 242
    enccfg.rc_dropframe_thresh = avctx->frame_skip_threshold;
244 243

  
245 244
    //_enc_init() will balk if kf_min_dist differs from max w/VPX_KF_AUTO
libavcodec/options.c
117 117
{"delay", NULL, OFFSET(delay), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
118 118
{"qcomp", "video quantizer scale compression (VBR)", OFFSET(qcompress), FF_OPT_TYPE_FLOAT, 0.5, -FLT_MAX, FLT_MAX, V|E},
119 119
{"qblur", "video quantizer scale blur (VBR)", OFFSET(qblur), FF_OPT_TYPE_FLOAT, 0.5, 0, FLT_MAX, V|E},
120
{"qmin", "min video quantizer scale (VBR)", OFFSET(qmin), FF_OPT_TYPE_INT, 2, 1, 63, V|E},
121
{"qmax", "max video quantizer scale (VBR)", OFFSET(qmax), FF_OPT_TYPE_INT, 31, 1, 63, V|E},
120
{"qmin", "min video quantizer scale (VBR)", OFFSET(qmin), FF_OPT_TYPE_INT, 2, 0, 63, V|E},
121
{"qmax", "max video quantizer scale (VBR)", OFFSET(qmax), FF_OPT_TYPE_INT, 31, 0, 63, V|E},
122 122
{"qdiff", "max difference between the quantizer scale (VBR)", OFFSET(max_qdiff), FF_OPT_TYPE_INT, 3, INT_MIN, INT_MAX, V|E},
123 123
{"bf", "use 'frames' B frames", OFFSET(max_b_frames), FF_OPT_TYPE_INT, DEFAULT, 0, FF_MAX_B_FRAMES, V|E},
124 124
{"b_qfactor", "qp factor between p and b frames", OFFSET(b_quant_factor), FF_OPT_TYPE_FLOAT, 1.25, -FLT_MAX, FLT_MAX, V|E},

Also available in: Unified diff