Revision f3356e9c ffmpeg.c

View differences:

ffmpeg.c
136 136
static int video_inter_quant_bias= FF_DEFAULT_QUANT_BIAS;
137 137
static int me_method = ME_EPZS;
138 138
static int video_disable = 0;
139
static int video_discard = 0;
139 140
static int video_codec_id = CODEC_ID_NONE;
140 141
static int video_codec_tag = 0;
141 142
static int same_quality = 0;
......
2902 2903
            audio_channels = enc->channels;
2903 2904
            audio_sample_rate = enc->sample_rate;
2904 2905
            if(audio_disable)
2905
                ic->streams[i]->discard= 1;
2906
                ic->streams[i]->discard= AVDISCARD_ALL;
2906 2907
            break;
2907 2908
        case CODEC_TYPE_VIDEO:
2908 2909
            frame_height = enc->height;
......
2937 2938

  
2938 2939
            enc->rate_emu = rate_emu;
2939 2940
            if(video_disable)
2940
                ic->streams[i]->discard= 1;
2941
                ic->streams[i]->discard= AVDISCARD_ALL;
2942
            else if(video_discard)
2943
                ic->streams[i]->discard= video_discard;
2941 2944
            break;
2942 2945
        case CODEC_TYPE_DATA:
2943 2946
            break;
......
3947 3950
    { "g", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_gop_size}, "set the group of picture size", "gop_size" },
3948 3951
    { "intra", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&intra_only}, "use only intra frames"},
3949 3952
    { "vn", OPT_BOOL | OPT_VIDEO, {(void*)&video_disable}, "disable video" },
3953
    { "vdt", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_discard}, "discard threshold" },
3950 3954
    { "qscale", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qscale}, "use fixed video quantiser scale (VBR)", "q" },
3951 3955
    { "qmin", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qmin}, "min video quantiser scale (VBR)", "q" },
3952 3956
    { "qmax", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qmax}, "max video quantiser scale (VBR)", "q" },

Also available in: Unified diff