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 D2237408DE for ; Sun, 3 Apr 2022 15:54:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EABA668B250; Sun, 3 Apr 2022 18:54:47 +0300 (EEST) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4F17C68AD96 for ; Sun, 3 Apr 2022 18:54:41 +0300 (EEST) Received: by mail-ej1-f52.google.com with SMTP id ot30so5350822ejb.12 for ; Sun, 03 Apr 2022 08:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uxYlRag89ju4fS+UDLgNvwigYqigoLW6mOgvHy0cCdI=; b=TferCISPHTFTAHCY9i3aFe/pXg0usYoD7zycz6keTKXAmDIfjvhhCJxsc5YTr8qeG1 dQriFGBEF8GQfX2HFCIfiCEAEWWIki61sOOfG3nOBe3bHkg02UjevFsVCu7eysfMv8cH gUDKKR+uUd3cWzAGwLx0HU/HZPX0NPnO45pA6iQqwp2NbQeYI22uJMdLAeQtv3sN4dNv Q1bPck3ro9FJeJVQOdu/BLo8W31PQjlpq+0ifi3YRpXUOrmMPPz3WuQfm0kLEAdbYgCk VTT9yQJ1iucyHzW0aGGnLGd+Vwik4xwKWNi8Tml9VCDWSoKxiXKNBe8XSHIaVq/X1cjJ CeZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uxYlRag89ju4fS+UDLgNvwigYqigoLW6mOgvHy0cCdI=; b=sGgQ+INBgBZG3I8nUdfl4ns7DWWCnZnR/v8AsfVD6P4s/KvaxIZGHia6A9oexxY2h4 gkKcpchxa+DykCV1LwnF7W6lP/k5AVgMSBfPCR0DdA97ev8PJAIDfOQV7OW7STBtUTo/ dJg3UIEyC7ouyDXvrQED7Hw2sM96Pvg2Y7glNvH87QAXrajCrv9pREXjsFLM8vGBS6jB K74ipLiD/h/1KBfjFwWMU6osVT25frlPzh59fkykYMzr7v5H2M3rJxTuMvNiXCmQ9MXZ H3+GmG6od2+Q3KcrVT8QxQ67XD0DuOatXdEV32flUoAv5xluZ4h7DofaMHw3WDmhYMcq uDfA== X-Gm-Message-State: AOAM533QrQyK9zg+RFzVZ6VxpiNP+5tuuoMn2psiGo3o2GROLTYBuHZb JgiM4Si6v5/sh33p8mKJ/8GmZCxQcaTHMA== X-Google-Smtp-Source: ABdhPJxm8HnCi5R76izILovgbVM9PDGB14QfyHwdNn4d/RYQD+s+Yb9yFNRlKBfORUAV81QGwtM0Yw== X-Received: by 2002:a17:906:cccf:b0:6e7:5336:8bd7 with SMTP id ot15-20020a170906cccf00b006e753368bd7mr3927481ejb.583.1649001280487; Sun, 03 Apr 2022 08:54:40 -0700 (PDT) Received: from mariano (dynamic-adsl-78-14-80-42.clienti.tiscali.it. [78.14.80.42]) by smtp.gmail.com with ESMTPSA id z2-20020a1709063a0200b006e05b7ce3efsm3351769eje.107.2022.04.03.08.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 08:54:39 -0700 (PDT) Received: by mariano (Postfix, from userid 1000) id 8F940BFA62; Sun, 3 Apr 2022 17:27:06 +0200 (CEST) From: Stefano Sabatini To: FFmpeg development discussions and patches Date: Sun, 3 Apr 2022 17:27:06 +0200 Message-Id: <20220403152706.311651-1-stefasab@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [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 Cc: Stefano Sabatini Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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, +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" }, /* video options */ { "vframes", OPT_VIDEO | HAS_ARG | OPT_PERFILE | OPT_OUTPUT, { .func_arg = opt_video_frames }, -- 2.25.1 _______________________________________________ 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".