History

avconv: deprecate the -deinterlace option

Its quality is horrible, yadif should always be used instead.

Anton Khirnov committed 14 years ago

Commit d7edd351 parent c9b309e2 files · +11 −2Browse files

Unified · Split

2 files
  1. avconv.c +9 −2
  2. doc/avconv.texi +2 −0
avconv.c+9−2
@@ -4371,6 +4371,13 @@ static int opt_vsync(const char *opt, const char *arg) · 4370 unmodified lines
43714371 return 0;
43724372 }
43734373
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+
43744381 #define OFFSET(x) offsetof(OptionsContext, x)
43754382 static const OptionDef options[] = {
43764383 /* main options */
@@ -4435,8 +4442,8 @@ static const OptionDef options[] = { · 58 unmodified lines
44354442 "use same quantizer as source (implies VBR)" },
44364443 { "pass", HAS_ARG | OPT_VIDEO, {(void*)opt_pass}, "select the pass number (1 or 2)", "n" },
44374444 { "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" },
44404447 { "vstats", OPT_EXPERT | OPT_VIDEO, {(void*)&opt_vstats}, "dump video coding statistics to file" },
44414448 { "vstats_file", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_vstats_file}, "dump video coding statistics to file", "file" },
44424449 #if CONFIG_AVFILTER
doc/avconv.texi+2−0
@@ -528,6 +528,8 @@ How strictly to follow the standards. · 527 unmodified lines
528528
529529 @item -deinterlace
530530 Deinterlace pictures.
531+This option is deprecated since the deinterlacing is very low quality.
532+Use the yadif filter with @code{-filter:v yadif}.
531533 @item -vstats
532534 Dump video coding statistics to @file{vstats_HHMMSS.log}.
533535 @item -vstats_file @var{file}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t