diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-01-12 15:54:11 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-20 10:23:24 +0100 |
commit | c316c4c77b1bac8e9a77000294d3e8cf0ca45dc7 (patch) | |
tree | 4563231ede0c9c295d2915831d687ae1c3da28ee /fftools/ffmpeg_opt.c | |
parent | 6d17991b7e1bf1a5d104c8a6261709f7e6640d97 (diff) | |
download | ffmpeg-c316c4c77b1bac8e9a77000294d3e8cf0ca45dc7.tar.gz |
fftools/ffmpeg: deprecate -filter_complex_script
It is equivalent to -/filter_complex.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r-- | fftools/ffmpeg_opt.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index ffb2c42421..d5bc7e9c8b 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -1158,6 +1158,7 @@ static int opt_filter_complex(void *optctx, const char *opt, const char *arg) return fg_create(NULL, graph_desc, sch); } +#if FFMPEG_OPT_FILTER_SCRIPT static int opt_filter_complex_script(void *optctx, const char *opt, const char *arg) { Scheduler *sch = optctx; @@ -1165,8 +1166,12 @@ static int opt_filter_complex_script(void *optctx, const char *opt, const char * if (!graph_desc) return AVERROR(EINVAL); + av_log(NULL, AV_LOG_WARNING, "-%s is deprecated, use -/filter_complex %s instead\n", + opt, arg); + return fg_create(NULL, graph_desc, sch); } +#endif void show_help_default(const char *opt, const char *arg) { @@ -1635,9 +1640,11 @@ const OptionDef options[] = { { "lavfi", OPT_TYPE_FUNC, OPT_FUNC_ARG | OPT_EXPERT, { .func_arg = opt_filter_complex }, "create a complex filtergraph", "graph_description" }, +#if FFMPEG_OPT_FILTER_SCRIPT { "filter_complex_script", OPT_TYPE_FUNC, OPT_FUNC_ARG | OPT_EXPERT, { .func_arg = opt_filter_complex_script }, - "read complex filtergraph description from a file", "filename" }, + "deprecated, use -/filter_complex instead", "filename" }, +#endif { "auto_conversion_filters", OPT_TYPE_BOOL, OPT_EXPERT, { &auto_conversion_filters }, "enable automatic conversion filters globally" }, |