From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id EE1BC40929 for ; Sun, 3 Apr 2022 17:45:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6EE1E68B284; Sun, 3 Apr 2022 20:45:22 +0300 (EEST) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7A38968B254 for ; Sun, 3 Apr 2022 20:45:13 +0300 (EEST) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4KWhBd0pJgz9sTH for ; Sun, 3 Apr 2022 19:45:13 +0200 (CEST) Message-ID: <48ad04a4-738a-052c-0c15-5fea64d156b7@gyani.pro> Date: Sun, 3 Apr 2022 23:14:55 +0530 MIME-Version: 1.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220403152706.311651-1-stefasab@gmail.com> From: Gyan Doshi In-Reply-To: <20220403152706.311651-1-stefasab@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH] ffmpeg: document -d option X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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".