From patchwork Sun Aug 19 21:57:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Scholz X-Patchwork-Id: 10029 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:12c4:0:0:0:0:0 with SMTP id 65-v6csp1841293jap; Sun, 19 Aug 2018 14:57:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwFpThza3A2kVHa6rb581pBXIXiMKLa89V67AVJlwNrljw9pTSmoRVuoralS7iwBD0pXPrh X-Received: by 2002:a1c:9d02:: with SMTP id g2-v6mr22158398wme.122.1534715849285; Sun, 19 Aug 2018 14:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534715849; cv=none; d=google.com; s=arc-20160816; b=u/wbR58A8AjRldANp8FIC8cCrZOa1+Ue5U0TIgyZb8xr76YEI+X9tEI40GP6bsHNmp qFEMS9q7uAwJ5G0HX0u6ElAdyc4jjE/KbyPEkZFUvEFL4VR7vznbkhcqPYmcc2gwK30R ah93oQDmHrYnbiLKv2ZVyfWlMJSSs9JLyiSr/kDELUCITt20wjDJbndvSHh9W2wIJZvZ sQhMFXU7TsH1a29FBm1+i9v+a0pEwlOD4T8llolsApH+lumaIKaqMhk8C+NWASX1K8j4 9V42aIIRozif1lV854ZKpqmX9HrEhjlHgLsg3cEsMbXmMfMKIRUX+nWfqCmF/57CybH3 X16w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=vi0wMGCWIM5flnTqzeJqt+jS38YrxKrJ+HgBt7qwU1Q=; b=xnEFdDhBzcqgX6tCqyk1d+Cw+w+SvbDNPdFeEOVKNPD7xX+Ge0AvUoVc3zkzFf/FRl UP3opUkyYHgo8e8ThN37UGB+H2rn0n1MsinZvJ0LpPB6AEiOW5juGSoz06gMD6tXYP0x BQ4ZOhPB/6WR/XSZdHtiXn2mT6p3t0OetqepazMJC0RmDjeHqbLjRUfcB02He8oj0uGu A6yHhSrgFhE/4OpooTrVfCkI0QpNP/Rz5o3cOuGTX3ly2T+Q4Tyw8sYmJdFUkcTMNcwN e+kC9XwtcB8Tc97QFxgbO2sMgCYf6Q44z7nScMk8j+QKeyGhZALEMNu6HbyzPSJLe9Fv QtNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="T/KWMiZ8"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y12-v6si5933493wrr.254.2018.08.19.14.57.28; Sun, 19 Aug 2018 14:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="T/KWMiZ8"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E4ACC689A81; Mon, 20 Aug 2018 00:57:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3C031689A5A for ; Mon, 20 Aug 2018 00:56:54 +0300 (EEST) Received: by mail-wr1-f49.google.com with SMTP id o37-v6so2501441wrf.6 for ; Sun, 19 Aug 2018 14:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yZh3CJ0HynPJt5DI4JXZi/rmgvjSGPGMAYnpntN0lUQ=; b=T/KWMiZ8eNy4C9CGaLAyoomWEGekfiCx7FtHVxsN7+FhvTS3FTOXKl/kTOeMXvesCq DPYkrD9IptaGXViyqmX+8jS7xwDC4bNdZmEKgZpjFNKyq0LoGWJwLZa6KSYFkqWUddNv rSYk/Ae6ZlIJyMy8qK859yVCbP6+e/XtyYFyk1bExJ8gJBe5mGxSVEN7x3B2dTGeFS5m 39mUMMWe383d+VHezK0wuys522m5sowQMtNhCxmHxRMYiwAFSvWk6VUASp1zyWEh5Ktv 9P5Xk8YdzvI1dI62Y/Bzqm6yLxtek2MuIflMEcz5PxWPSkyWOFXo6xAfdKuNOi8bJ3/W YfcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yZh3CJ0HynPJt5DI4JXZi/rmgvjSGPGMAYnpntN0lUQ=; b=eNWxTaS4p/f49qtuezHGtqd9d6Ljxx6UgO2RSm5ozC0JadmnFFyLIYhrB/fd9bG3Or mi98sP31r132EmqZuSxgShRhtxnbIDOEjgh9jayPSNpKkgHuSjySM2eIwv8/L9aIqKTw C2FmoMqtS8FMi8Ph+jPFMzbabQLM5dvHrl1phlffinSh43Zxw1gQgUzMVsxQ7U3iaeMu W7FmIocmTtgzZrLeZIyu93UOtLuti4X61zboStwTqWCJdiAXrs0t1oS4JMegMBVOf8YN aMcQYpLoDcrzGV8JTgKMiqX51FE9pysKYR7VGa8qIcO+l6I3v6AQDpMqsr106CJi6fpS gFLg== X-Gm-Message-State: APzg51A9uwQRhM3qCP3XhgKDpskmBJCiCaZxAS9dzaO3n1K9FDbJhh/u Yi1lGcLA25+am/iywVD8W3oYT3iE X-Received: by 2002:adf:f608:: with SMTP id t8-v6mr6491783wrp.186.1534715840357; Sun, 19 Aug 2018 14:57:20 -0700 (PDT) Received: from localhost.localdomain (178.112.160.118.wireless.dyn.drei.com. [178.112.160.118]) by smtp.gmail.com with ESMTPSA id y184-v6sm8439344wmg.17.2018.08.19.14.57.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Aug 2018 14:57:19 -0700 (PDT) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Sun, 19 Aug 2018 23:57:00 +0200 Message-Id: <20180819215700.33041-1-epirat07@gmail.com> X-Mailer: git-send-email 2.17.0 (Apple Git-106) In-Reply-To: <20180819193354.31123-1-epirat07@gmail.com> References: <20180819193354.31123-1-epirat07@gmail.com> Subject: [FFmpeg-devel] [PATCH v2] doc/filters: Add double-pass example for loudnorm X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Marvin Scholz MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- Changes compared to v1: - Change example loudnorm value to match EBU128 - Change file names to "input" and "output" doc/filters.texi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 32c95b591c..dfc0d91008 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3659,6 +3659,29 @@ Set print format for stats. Options are summary, json, or none. Default value is none. @end table +@subsection Examples + +For double pass processing you need to first run the filter with +@code{print_format} set to either @code{json} or @code{summary}, then read +the values in the output and pass it to the next run of the filter: + +@example +$ ffmpeg -i input -map 0:a -af loudnorm=I=-23:TP=-1:print_format=summary -f null - + +[...] +Input Integrated: -9.0 LUFS +Input True Peak: +1.5 dBTP +Input LRA: 9.4 LU +Input Threshold: -19.5 LUFS +@end example + +Then pass the input measurements to the next run that produces the result: + +@example +ffmpeg -i input -af loudnorm=I=-23:TP=-1:measured_I=-9.0:measured_TP=1.5:measured_LRA=9.4:measured_thresh=-19.5:print_format=summary output +@end example + + @section lowpass Apply a low-pass filter with 3dB point frequency.