From: Gyan Doshi <ffmpeg@gyani.pro>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] ffmpeg: document -d option
Date: Sun, 3 Apr 2022 23:14:55 +0530
Message-ID: <48ad04a4-738a-052c-0c15-5fea64d156b7@gyani.pro> (raw)
In-Reply-To: <20220403152706.311651-1-stefasab@gmail.com>
On 2022-04-03 08:57 pm, Stefano Sabatini wrote:
> Option was added in commit 39aafa5ee90e10382e.
>
> Fix trac issue: http://trac.ffmpeg.org/ticket/1698
> ---
> doc/ffmpeg.texi | 12 ++++++++++++
> fftools/ffmpeg_opt.c | 3 +++
> 2 files changed, 15 insertions(+)
>
> diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
> index 164419cad3..bf738da0c1 100644
> --- a/doc/ffmpeg.texi
> +++ b/doc/ffmpeg.texi
> @@ -845,6 +845,18 @@ ffmpeg -dump_attachment:t "" -i INPUT
> Technical note -- attachments are implemented as codec extradata, so this
> option can actually be used to extract extradata from any stream, not just
> attachments.
> +
> +@item -d (@emph{global})
> +
> +Run ffmpeg in daemon mode. This options should be only specified as fist option,
s/fist/first
> +or it will be ignored, for example as:
> +@example
> +ffmpeg -d ...
> +@end example
> +
> +This option disables log and detaches the @code{ffmpeg} process from the
> +terminal.
> +
> @end table
>
> @section Video Options
> diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
> index 22c88287df..e3c93d1980 100644
> --- a/fftools/ffmpeg_opt.c
> +++ b/fftools/ffmpeg_opt.c
> @@ -186,6 +186,7 @@ static int ignore_unknown_streams = 0;
> static int copy_unknown_streams = 0;
> static int recast_media = 0;
> static int find_stream_info = 1;
> +static int daemon = 0;
>
> static void uninit_options(OptionsContext *o)
> {
> @@ -3713,6 +3714,8 @@ const OptionDef options[] = {
> { "bits_per_raw_sample", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_SPEC | OPT_OUTPUT,
> { .off = OFFSET(bits_per_raw_sample) },
> "set the number of bits per raw sample", "number" },
> + { "d", OPT_BOOL | OPT_EXPERT, { &daemon },
> + "run in daemon mode, can only be specified as first option" },
If you're going to add this, might as well use the var instead of
strcmp(argv[1]) and remove the positional constraint.
Regards,
Gyan
_______________________________________________
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:[~2022-04-03 17:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-03 15:27 Stefano Sabatini
2022-04-03 17:44 ` Gyan Doshi [this message]
2022-04-05 5:23 ` Anton Khirnov
2022-04-05 21:27 ` Stefano Sabatini
2022-04-06 14:43 ` Michael Niedermayer
2022-04-07 22:37 ` Stefano Sabatini
2022-06-09 19:00 ` Marton Balint
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=48ad04a4-738a-052c-0c15-5fea64d156b7@gyani.pro \
--to=ffmpeg@gyani.pro \
--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