Revision 0eba70ac ffmpeg.c

View differences:

ffmpeg.c
107 107
static int frame_rate = 25;
108 108
static int frame_rate_base = 1;
109 109
static float video_qscale = 0;
110
static int video_lmin = 2*FF_QP2LAMBDA;
111 110
static int video_mb_lmin = 2*FF_QP2LAMBDA;
112 111
static int video_mb_lmax = 31*FF_QP2LAMBDA;
113 112
static int video_qdiff = 3;
......
2323 2322
    }
2324 2323
}
2325 2324

  
2326
static void opt_lmin(const char *arg)
2327
{
2328
    video_lmin = atof(arg)*FF_QP2LAMBDA;
2329
}
2330

  
2331 2325
static void opt_mb_lmin(const char *arg)
2332 2326
{
2333 2327
    video_mb_lmin = atof(arg)*FF_QP2LAMBDA;
......
2887 2881
        if(inter_matrix)
2888 2882
            video_enc->inter_matrix = inter_matrix;
2889 2883

  
2890
        video_enc->lmin = video_lmin;
2891 2884
        video_enc->mb_lmin = video_mb_lmin;
2892 2885
        video_enc->mb_lmax = video_mb_lmax;
2893 2886
        video_enc->max_qdiff = video_qdiff;
......
3811 3804
    { "vn", OPT_BOOL | OPT_VIDEO, {(void*)&video_disable}, "disable video" },
3812 3805
    { "vdt", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_discard}, "discard threshold", "n" },
3813 3806
    { "qscale", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qscale}, "use fixed video quantiser scale (VBR)", "q" },
3814
    { "lmin", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_lmin}, "min video lagrange factor (VBR)", "lambda" },
3815 3807
    { "mblmin", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_mb_lmin}, "min macroblock quantiser scale (VBR)", "q" },
3816 3808
    { "mblmax", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_mb_lmax}, "max macroblock quantiser scale (VBR)", "q" },
3817 3809
    { "qdiff", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qdiff}, "max difference between the quantiser scale (VBR)", "q" },

Also available in: Unified diff