From: Anton Khirnov <anton@khirnov.net>
To: ffmpeg-devel@ffmpeg.org
Subject: [FFmpeg-devel] [PATCH 4/8] fftools/ffmpeg_opt: add more structure to long help output
Date: Wed, 17 Jan 2024 13:40:31 +0100
Message-ID: <20240117124036.7877-4-anton@khirnov.net> (raw)
In-Reply-To: <20240117124036.7877-1-anton@khirnov.net>
Split the "Per-file main options" section into
* per-file input and output
* per-file input-only
* per-file output-only
* per-stream
---
fftools/ffmpeg_opt.c | 43 ++++++++++++++++++++++++++++++++++++++-----
1 file changed, 38 insertions(+), 5 deletions(-)
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 919e1eae46..4abdd457d3 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1209,12 +1209,45 @@ void show_help_default(const char *opt, const char *arg)
show_help_options(options, "Advanced global options:", OPT_EXPERT,
OPT_PERFILE | OPT_EXIT);
- show_help_options(options, "Per-file main options:", OPT_PERFILE,
- OPT_EXPERT | OPT_AUDIO | OPT_VIDEO | OPT_SUBTITLE | OPT_DATA |
- OPT_EXIT);
+ show_help_options(options, "Per-file options (input and output):",
+ OPT_PERFILE | OPT_INPUT | OPT_OUTPUT,
+ OPT_EXIT | OPT_FLAG_PERSTREAM | OPT_EXPERT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
if (show_advanced)
- show_help_options(options, "Advanced per-file options:",
- OPT_EXPERT | OPT_PERFILE, OPT_AUDIO | OPT_VIDEO | OPT_SUBTITLE);
+ show_help_options(options, "Advanced per-file options (input and output):",
+ OPT_PERFILE | OPT_INPUT | OPT_OUTPUT | OPT_EXPERT,
+ OPT_EXIT | OPT_FLAG_PERSTREAM |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
+
+ show_help_options(options, "Per-file options (input-only):",
+ OPT_PERFILE | OPT_INPUT,
+ OPT_EXIT | OPT_FLAG_PERSTREAM | OPT_OUTPUT | OPT_EXPERT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
+ if (show_advanced)
+ show_help_options(options, "Advanced per-file options (input-only):",
+ OPT_PERFILE | OPT_INPUT | OPT_EXPERT,
+ OPT_EXIT | OPT_FLAG_PERSTREAM | OPT_OUTPUT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
+
+ show_help_options(options, "Per-file options (output-only):",
+ OPT_PERFILE | OPT_OUTPUT,
+ OPT_EXIT | OPT_FLAG_PERSTREAM | OPT_INPUT | OPT_EXPERT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
+ if (show_advanced)
+ show_help_options(options, "Advanced per-file options (output-only):",
+ OPT_PERFILE | OPT_OUTPUT | OPT_EXPERT,
+ OPT_EXIT | OPT_FLAG_PERSTREAM | OPT_INPUT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
+
+ show_help_options(options, "Per-stream options:",
+ OPT_FLAG_PERSTREAM,
+ OPT_EXIT | OPT_EXPERT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
+ if (show_advanced)
+ show_help_options(options, "Advanced per-stream options:",
+ OPT_FLAG_PERSTREAM | OPT_EXPERT,
+ OPT_EXIT |
+ OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
show_help_options(options, "Video options:",
OPT_VIDEO, OPT_EXPERT | OPT_AUDIO | OPT_SUBTITLE | OPT_DATA);
--
2.42.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-01-17 12:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 12:40 [FFmpeg-devel] [PATCH 1/8] fftools/cmdutils: hide some information listing options from basic help Anton Khirnov
2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 2/8] fftools/cmdutils: add a flag for per-stream options Anton Khirnov
2024-01-17 13:01 ` Michael Niedermayer
2024-01-17 14:57 ` Anton Khirnov
2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 3/8] fftools/cmdutils: drop alt_flags parameter from show_help_options() Anton Khirnov
2024-01-17 12:40 ` Anton Khirnov [this message]
2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 5/8] fftools/cmdutils: indicate specifiers in option syntax in help output Anton Khirnov
2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 6/8] fftools/ffmpeg_opt: briefly mention stream specifier " Anton Khirnov
2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 7/8] fftools/cmdutils: surround option arguments by <> " Anton Khirnov
2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 8/8] fftools/ffmpeg_opt: improve wording in option descriptions Anton Khirnov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240117124036.7877-4-anton@khirnov.net \
--to=anton@khirnov.net \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git