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
4371 return 0;4371 return 0;
4372}4372}
4373 4373
4374static 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#define OFFSET(x) offsetof(OptionsContext, x)4381#define OFFSET(x) offsetof(OptionsContext, x)
4375static const OptionDef options[] = {4382static const OptionDef options[] = {
4376 /* main options */4383 /* main options */
@@ -4435,8 +4442,8 @@ static const OptionDef options[] = { · 58 unmodified lines
4435 "use same quantizer as source (implies VBR)" },4442 "use same quantizer as source (implies VBR)" },
4436 { "pass", HAS_ARG | OPT_VIDEO, {(void*)opt_pass}, "select the pass number (1 or 2)", "n" },4443 { "pass", HAS_ARG | OPT_VIDEO, {(void*)opt_pass}, "select the pass number (1 or 2)", "n" },
4437 { "passlogfile", HAS_ARG | OPT_STRING | OPT_VIDEO, {(void*)&pass_logfilename_prefix}, "select two pass log file name prefix", "prefix" },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},4445 { "deinterlace", OPT_EXPERT | OPT_VIDEO, {(void*)opt_deinterlace},
4439 "deinterlace pictures" },4446 "this option is deprecated, use the yadif filter instead" },
4440 { "vstats", OPT_EXPERT | OPT_VIDEO, {(void*)&opt_vstats}, "dump video coding statistics to file" },4447 { "vstats", OPT_EXPERT | OPT_VIDEO, {(void*)&opt_vstats}, "dump video coding statistics to file" },
4441 { "vstats_file", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_vstats_file}, "dump video coding statistics to file", "file" },4448 { "vstats_file", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_vstats_file}, "dump video coding statistics to file", "file" },
4442#if CONFIG_AVFILTER4449#if CONFIG_AVFILTER
doc/avconv.texi+2−0
@@ -528,6 +528,8 @@ How strictly to follow the standards. · 527 unmodified lines
528 528
529@item -deinterlace529@item -deinterlace
530Deinterlace pictures.530Deinterlace pictures.
531This option is deprecated since the deinterlacing is very low quality.
532Use the yadif filter with @code{-filter:v yadif}.
531@item -vstats533@item -vstats
532Dump video coding statistics to @file{vstats_HHMMSS.log}.534Dump video coding statistics to @file{vstats_HHMMSS.log}.
533@item -vstats_file @var{file}535@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