From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 8/8] fftools/ffmpeg_opt: improve wording in option descriptions Date: Wed, 17 Jan 2024 13:40:35 +0100 Message-ID: <20240117124036.7877-8-anton@khirnov.net> (raw) In-Reply-To: <20240117124036.7877-1-anton@khirnov.net> --- fftools/ffmpeg_opt.c | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index bdb71d4283..6ff1cb229d 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -1476,7 +1476,7 @@ const OptionDef options[] = { CMDUTILS_COMMON_OPTIONS { "f", OPT_TYPE_STRING, OPT_OFFSET | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(format) }, - "force format", "fmt" }, + "force container format (auto-detected otherwise)", "fmt" }, { "y", OPT_TYPE_BOOL, 0, { &file_overwrite }, "overwrite output files" }, @@ -1494,11 +1494,11 @@ const OptionDef options[] = { "allow recasting stream type in order to force a decoder of different media type" }, { "c", OPT_TYPE_STRING, OPT_PERSTREAM | OPT_INPUT | OPT_OUTPUT | OPT_HAS_CANON, { .off = OFFSET(codec_names) }, - "codec name", "codec", + "select encoder/decoder ('copy' to copy stream without reencoding)", "codec", .u1.name_canon = "codec", }, { "codec", OPT_TYPE_STRING, OPT_PERSTREAM | OPT_INPUT | OPT_OUTPUT | OPT_EXPERT | OPT_HAS_ALT, { .off = OFFSET(codec_names) }, - "codec name", "codec", + "alias for -c (select encoder/decoder)", "codec", .u1.names_alt = alt_codec, }, { "pre", OPT_TYPE_STRING, OPT_PERSTREAM | OPT_OUTPUT | OPT_EXPERT | OPT_HAS_ALT, { .off = OFFSET(presets) }, @@ -1517,17 +1517,18 @@ const OptionDef options[] = { "set chapters mapping", "input_file_index" }, { "t", OPT_TYPE_TIME, OPT_OFFSET | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(recording_time) }, - "record or transcode \"duration\" seconds of audio/video", + "stop transcoding after specified duration", "duration" }, { "to", OPT_TYPE_TIME, OPT_OFFSET | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(stop_time) }, - "record or transcode stop time", "time_stop" }, + "stop transcoding after specified time is reached", + "time_stop" }, { "fs", OPT_TYPE_INT64, OPT_OFFSET | OPT_OUTPUT | OPT_EXPERT, { .off = OFFSET(limit_filesize) }, "set the limit file size in bytes", "limit_size" }, { "ss", OPT_TYPE_TIME, OPT_OFFSET | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(start_time) }, - "set the start time offset", "time_off" }, + "start transcoding at specified time", "time_off" }, { "sseof", OPT_TYPE_TIME, OPT_OFFSET | OPT_INPUT | OPT_EXPERT, { .off = OFFSET(start_time_eof) }, "set the start time offset relative to EOF", "time_off" }, @@ -1551,7 +1552,7 @@ const OptionDef options[] = { "set the recording timestamp ('now' to set the current time)", "time" }, { "metadata", OPT_TYPE_STRING, OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(metadata) }, - "add metadata", "string=string" }, + "add metadata", "key=value" }, { "program", OPT_TYPE_STRING, OPT_SPEC | OPT_EXPERT | OPT_OUTPUT, { .off = OFFSET(program) }, "add program with specified streams", "title=string:st=number..." }, @@ -1659,7 +1660,7 @@ const OptionDef options[] = { "set profile", "profile" }, { "filter", OPT_TYPE_STRING, OPT_PERSTREAM | OPT_OUTPUT | OPT_HAS_ALT, { .off = OFFSET(filters) }, - "set stream filtergraph", "filter_graph", + "apply specified filters to audio/video", "filter_graph", .u1.names_alt = alt_filter, }, { "filter_threads", OPT_TYPE_FUNC, OPT_FUNC_ARG | OPT_EXPERT, { .func_arg = opt_filter_threads }, @@ -1751,7 +1752,7 @@ const OptionDef options[] = { .u1.name_canon = "frames", }, { "r", OPT_TYPE_STRING, OPT_VIDEO | OPT_PERSTREAM | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(frame_rates) }, - "set frame rate (Hz value, fraction or abbreviation)", "rate" }, + "override input framerate/convert to given output framerate (Hz value, fraction or abbreviation)", "rate" }, { "fpsmax", OPT_TYPE_STRING, OPT_VIDEO | OPT_PERSTREAM | OPT_OUTPUT | OPT_EXPERT, { .off = OFFSET(max_frame_rates) }, "set max frame rate (Hz value, fraction or abbreviation)", "rate" }, @@ -1784,7 +1785,7 @@ const OptionDef options[] = { "rate control override for specific intervals", "override" }, { "vcodec", OPT_TYPE_FUNC, OPT_VIDEO | OPT_FUNC_ARG | OPT_PERFILE | OPT_INPUT | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_video_codec }, - "force video codec ('copy' to copy stream)", "codec", + "alias for -c:v (select encoder/decoder for video streams)", "codec", .u1.name_canon = "codec", }, { "timecode", OPT_TYPE_FUNC, OPT_VIDEO | OPT_FUNC_ARG | OPT_PERFILE | OPT_OUTPUT | OPT_EXPERT, { .func_arg = opt_timecode }, @@ -1806,7 +1807,7 @@ const OptionDef options[] = { "Version of the vstats format to use."}, { "vf", OPT_TYPE_FUNC, OPT_VIDEO | OPT_FUNC_ARG | OPT_PERFILE | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_video_filters }, - "set video filters", "filter_graph", + "alias for -filter:v (apply filters to video streams)", "filter_graph", .u1.name_canon = "filter", }, { "intra_matrix", OPT_TYPE_STRING, OPT_VIDEO | OPT_EXPERT | OPT_PERSTREAM | OPT_OUTPUT, { .off = OFFSET(intra_matrices) }, @@ -1879,11 +1880,11 @@ const OptionDef options[] = { "disable audio" }, { "acodec", OPT_TYPE_FUNC, OPT_AUDIO | OPT_FUNC_ARG | OPT_PERFILE | OPT_INPUT | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_audio_codec }, - "force audio codec ('copy' to copy stream)", "codec", + "alias for -c:a (select encoder/decoder for audio streams)", "codec", .u1.name_canon = "codec", }, { "ab", OPT_TYPE_FUNC, OPT_AUDIO | OPT_FUNC_ARG | OPT_PERFILE | OPT_OUTPUT, { .func_arg = opt_bitrate }, - "audio bitrate (please use -b:a)", "bitrate" }, + "alias for -b:a (select bitrate for audio streams)", "bitrate" }, { "atag", OPT_TYPE_FUNC, OPT_AUDIO | OPT_FUNC_ARG | OPT_EXPERT | OPT_PERFILE | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_old2new }, "force audio tag/fourcc", "fourcc/tag", @@ -1901,7 +1902,7 @@ const OptionDef options[] = { .u1.name_canon = "channel_layout", }, { "af", OPT_TYPE_FUNC, OPT_AUDIO | OPT_FUNC_ARG | OPT_PERFILE | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_audio_filters }, - "set audio filters", "filter_graph", + "alias for -filter:a (apply filters to audio streams)", "filter_graph", .u1.name_canon = "filter", }, { "guess_layout_max", OPT_TYPE_INT, OPT_AUDIO | OPT_PERSTREAM | OPT_EXPERT | OPT_INPUT, { .off = OFFSET(guess_layout_max) }, @@ -1913,7 +1914,7 @@ const OptionDef options[] = { "disable subtitle" }, { "scodec", OPT_TYPE_FUNC, OPT_SUBTITLE | OPT_FUNC_ARG | OPT_PERFILE | OPT_INPUT | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_subtitle_codec }, - "force subtitle codec ('copy' to copy stream)", "codec", + "alias for -c:s (select encoder/decoder for subtitle streams)", "codec", .u1.name_canon = "codec", }, { "stag", OPT_TYPE_FUNC, OPT_SUBTITLE | OPT_FUNC_ARG | OPT_EXPERT | OPT_PERFILE | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_old2new } @@ -1978,7 +1979,7 @@ const OptionDef options[] = { /* data codec support */ { "dcodec", OPT_TYPE_FUNC, OPT_FUNC_ARG | OPT_DATA | OPT_PERFILE | OPT_EXPERT | OPT_INPUT | OPT_OUTPUT | OPT_HAS_CANON, { .func_arg = opt_data_codec }, - "force data codec ('copy' to copy stream)", "codec", + "alias for -c:d (select encoder/decoder for data streams)", "codec", .u1.name_canon = "codec", }, { "dn", OPT_TYPE_BOOL, OPT_DATA | OPT_OFFSET | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(data_disable) }, "disable 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".
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 ` [FFmpeg-devel] [PATCH 4/8] fftools/ffmpeg_opt: add more structure to long help output Anton Khirnov 2024-01-17 12:40 ` [FFmpeg-devel] [PATCH 5/8] fftools/cmdutils: indicate specifiers in option syntax in " 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 ` Anton Khirnov [this message]
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-8-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