Its quality is horrible, yadif should always be used instead.
Unified · Split
| @@ -4371,6 +4371,13 @@ static int opt_vsync(const char *opt, const char *arg) · 4370 unmodified lines | ||
| 4371 | 4371 | return 0; |
| 4372 | 4372 | } |
| 4373 | 4373 | |
| 4374 | +static int opt_deinterlace(const char *opt, const char *arg) | |
| 4375 | +{ | |
| 4376 | + av_log(NULL, AV_LOG_WARNING, "-%s is deprecated, use -filter:v yadif instead\n", opt); | |
| 4377 | + do_deinterlace = 1; | |
| 4378 | + return 0; | |
| 4379 | +} | |
| 4380 | + | |
| 4374 | 4381 | #define OFFSET(x) offsetof(OptionsContext, x) |
| 4375 | 4382 | static const OptionDef options[] = { |
| 4376 | 4383 | /* main options */ |
| @@ -4435,8 +4442,8 @@ static const OptionDef options[] = { · 58 unmodified lines | ||
| 4435 | 4442 | "use same quantizer as source (implies VBR)" }, |
| 4436 | 4443 | { "pass", HAS_ARG | OPT_VIDEO, {(void*)opt_pass}, "select the pass number (1 or 2)", "n" }, |
| 4437 | 4444 | { "passlogfile", HAS_ARG | OPT_STRING | OPT_VIDEO, {(void*)&pass_logfilename_prefix}, "select two pass log file name prefix", "prefix" }, |
| 4438 | − { "deinterlace", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&do_deinterlace}, | |
| 4439 | − "deinterlace pictures" }, | |
| 4445 | + { "deinterlace", OPT_EXPERT | OPT_VIDEO, {(void*)opt_deinterlace}, | |
| 4446 | + "this option is deprecated, use the yadif filter instead" }, | |
| 4440 | 4447 | { "vstats", OPT_EXPERT | OPT_VIDEO, {(void*)&opt_vstats}, "dump video coding statistics to file" }, |
| 4441 | 4448 | { "vstats_file", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_vstats_file}, "dump video coding statistics to file", "file" }, |
| 4442 | 4449 | #if CONFIG_AVFILTER |
| @@ -528,6 +528,8 @@ How strictly to follow the standards. · 527 unmodified lines | ||
| 528 | 528 | |
| 529 | 529 | @item -deinterlace |
| 530 | 530 | Deinterlace pictures. |
| 531 | +This option is deprecated since the deinterlacing is very low quality. | |
| 532 | +Use the yadif filter with @code{-filter:v yadif}. | |
| 531 | 533 | @item -vstats |
| 532 | 534 | Dump video coding statistics to @file{vstats_HHMMSS.log}. |
| 533 | 535 | @item -vstats_file @var{file} |