aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_opt.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-12-22 12:50:43 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-20 10:37:32 +0100
commitd8173cfcafac3019cd05b0c92af5631f6b27dd3a (patch)
tree8d2ad4831ab563321ebe037f07449e1820eb519d /fftools/ffmpeg_opt.c
parent08bebeb1bed3feee99d30cd6066d3466291dc8ed (diff)
downloadffmpeg-d8173cfcafac3019cd05b0c92af5631f6b27dd3a.tar.gz
fftools/cmdutils: hide some information listing options from basic help
They are for advanced usage only and should not clutter basic output.
Diffstat (limited to 'fftools/ffmpeg_opt.c')
-rw-r--r--fftools/ffmpeg_opt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 6d20288554..b94887cbdb 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1198,7 +1198,10 @@ void show_help_default(const char *opt, const char *arg)
"\n", program_name);
show_help_options(options, "Print help / information / capabilities:",
- OPT_EXIT, 0, 0);
+ OPT_EXIT, OPT_EXPERT, 0);
+ if (show_advanced)
+ show_help_options(options, "Advanced information / capabilities:",
+ OPT_EXIT | OPT_EXPERT, 0, 0);
show_help_options(options, "Global options (affect whole program "
"instead of just one file):",
@@ -1807,7 +1810,7 @@ const OptionDef options[] = {
{ "hwaccel_output_format", OPT_TYPE_STRING, OPT_VIDEO | OPT_EXPERT | OPT_SPEC | OPT_INPUT,
{ .off = OFFSET(hwaccel_output_formats) },
"select output format used with HW accelerated decoding", "format" },
- { "hwaccels", OPT_TYPE_FUNC, OPT_EXIT,
+ { "hwaccels", OPT_TYPE_FUNC, OPT_EXIT | OPT_EXPERT,
{ .func_arg = show_hwaccels },
"show available HW acceleration methods" },
{ "autorotate", OPT_TYPE_BOOL, OPT_SPEC | OPT_EXPERT | OPT_INPUT,