mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avconv: remove stubs of crop* and pad* options
This commit is contained in:
parent
ed5b13265e
commit
c922816d31
20
avconv.c
20
avconv.c
@ -2480,12 +2480,6 @@ static int opt_frame_rate(const char *opt, const char *arg)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int opt_frame_crop(const char *opt, const char *arg)
|
|
||||||
{
|
|
||||||
fprintf(stderr, "Option '%s' has been removed, use the crop filter instead\n", opt);
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int opt_frame_size(const char *opt, const char *arg)
|
static int opt_frame_size(const char *opt, const char *arg)
|
||||||
{
|
{
|
||||||
if (av_parse_video_size(&frame_width, &frame_height, arg) < 0) {
|
if (av_parse_video_size(&frame_width, &frame_height, arg) < 0) {
|
||||||
@ -2495,11 +2489,6 @@ static int opt_frame_size(const char *opt, const char *arg)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int opt_pad(const char *opt, const char *arg) {
|
|
||||||
fprintf(stderr, "Option '%s' has been removed, use the pad filter instead\n", opt);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int opt_frame_pix_fmt(const char *opt, const char *arg)
|
static int opt_frame_pix_fmt(const char *opt, const char *arg)
|
||||||
{
|
{
|
||||||
if (strcmp(arg, "list")) {
|
if (strcmp(arg, "list")) {
|
||||||
@ -4104,15 +4093,6 @@ static const OptionDef options[] = {
|
|||||||
{ "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set frame size (WxH or abbreviation)", "size" },
|
{ "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set frame size (WxH or abbreviation)", "size" },
|
||||||
{ "aspect", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_aspect_ratio}, "set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)", "aspect" },
|
{ "aspect", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_aspect_ratio}, "set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)", "aspect" },
|
||||||
{ "pix_fmt", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_frame_pix_fmt}, "set pixel format, 'list' as argument shows all the pixel formats supported", "format" },
|
{ "pix_fmt", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_frame_pix_fmt}, "set pixel format, 'list' as argument shows all the pixel formats supported", "format" },
|
||||||
{ "croptop", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_crop}, "Removed, use the crop filter instead", "size" },
|
|
||||||
{ "cropbottom", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_crop}, "Removed, use the crop filter instead", "size" },
|
|
||||||
{ "cropleft", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_crop}, "Removed, use the crop filter instead", "size" },
|
|
||||||
{ "cropright", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_crop}, "Removed, use the crop filter instead", "size" },
|
|
||||||
{ "padtop", HAS_ARG | OPT_VIDEO, {(void*)opt_pad}, "Removed, use the pad filter instead", "size" },
|
|
||||||
{ "padbottom", HAS_ARG | OPT_VIDEO, {(void*)opt_pad}, "Removed, use the pad filter instead", "size" },
|
|
||||||
{ "padleft", HAS_ARG | OPT_VIDEO, {(void*)opt_pad}, "Removed, use the pad filter instead", "size" },
|
|
||||||
{ "padright", HAS_ARG | OPT_VIDEO, {(void*)opt_pad}, "Removed, use the pad filter instead", "size" },
|
|
||||||
{ "padcolor", HAS_ARG | OPT_VIDEO, {(void*)opt_pad}, "Removed, use the pad filter instead", "color" },
|
|
||||||
{ "vn", OPT_BOOL | OPT_VIDEO, {(void*)&video_disable}, "disable video" },
|
{ "vn", OPT_BOOL | OPT_VIDEO, {(void*)&video_disable}, "disable video" },
|
||||||
{ "vdt", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_discard}, "discard threshold", "n" },
|
{ "vdt", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_discard}, "discard threshold", "n" },
|
||||||
{ "qscale", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qscale}, "use fixed video quantizer scale (VBR)", "q" },
|
{ "qscale", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qscale}, "use fixed video quantizer scale (VBR)", "q" },
|
||||||
|
@ -274,20 +274,6 @@ form @var{num}:@var{den}, where @var{num} and @var{den} are the
|
|||||||
numerator and denominator of the aspect ratio. For example "4:3",
|
numerator and denominator of the aspect ratio. For example "4:3",
|
||||||
"16:9", "1.3333", and "1.7777" are valid argument values.
|
"16:9", "1.3333", and "1.7777" are valid argument values.
|
||||||
|
|
||||||
@item -croptop @var{size}
|
|
||||||
@item -cropbottom @var{size}
|
|
||||||
@item -cropleft @var{size}
|
|
||||||
@item -cropright @var{size}
|
|
||||||
All the crop options have been removed. Use -vf
|
|
||||||
crop=width:height:x:y instead.
|
|
||||||
|
|
||||||
@item -padtop @var{size}
|
|
||||||
@item -padbottom @var{size}
|
|
||||||
@item -padleft @var{size}
|
|
||||||
@item -padright @var{size}
|
|
||||||
@item -padcolor @var{hex_color}
|
|
||||||
All the pad options have been removed. Use -vf
|
|
||||||
pad=width:height:x:y:color instead.
|
|
||||||
@item -vn
|
@item -vn
|
||||||
Disable video recording.
|
Disable video recording.
|
||||||
@item -bt @var{tolerance}
|
@item -bt @var{tolerance}
|
||||||
|
Loading…
Reference in New Issue
Block a user