From patchwork Mon Aug 20 21:48:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Scholz X-Patchwork-Id: 10046 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:12c4:0:0:0:0:0 with SMTP id 65-v6csp3004434jap; Mon, 20 Aug 2018 14:54:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbFVUPf4oBj2zic8l53bqKuRm1XpPNCZTetxtlDvZDAwbJHo1RcHUkd1tcDQXrO7Hn7pB0z X-Received: by 2002:adf:8b98:: with SMTP id o24-v6mr2406422wra.110.1534802066303; Mon, 20 Aug 2018 14:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534802066; cv=none; d=google.com; s=arc-20160816; b=kQJp0F4iaHOzP488QQ4wFr3nac86XHox0JRLOj/YRcKs5rwEEk0J7/fJBnaeV4MLza 7LMvi2gaN8N2GZZZa0CXwCUc4yS9YtE569nWtFa9+RfyTkO6ZsPryvzQHTmD56rB64tu mJ9DoCElv6StT/VjPRKE04UjxiO8PbOP/5HpBL5sgkVJ4je+rR3yDvaji8VDSIbjruNz e+D9+5Uj8HzGPkid7UJ9Ds5+ybxYQPiFXotfbn5bi60UgQ9cNcTmj1i9MFfjy7G7qr80 +Xn0kfuCBO9bI/ux6wBD3uMoA5mwp5x6gCECIThtnEgYjHl5gX1cc2M5Td0TqbMBgu3R v6vw== 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=J0S4zo+N4HzCZ+nI4leGPoSCNcgFS6PF78yx4Z7yl60=; b=wuNJPotztEtrTfZHS6P7693mvqmYxXbuC5nBthkUQahaY1JIV8xISOi3UZB4HxgbH7 hxosuhOHHVm1RAGn1FGtQRDj5bslXaw2xu0ASr4Wdtd2Y6ah1+o2/rtSecKJ1EnHVl5+ kKqBENH8BQ+Bu7hg23ozfLXANB4CheFemJHBOjVnlnORCa2GBW8rq9y2I4evHsvLE9yt jcNFqwmxU2l82m16+Sbc8pWpoi5lScFzeiNgkoElhrADWxeIvuWJ7FAxMy11H9mXmWAN S4fXcNQAS4KMdH3yBX5wOlBZZNZIfZeUmAjSj1nuiZCyEQKFJ/hVUo2CV8+7uGUcHsCR zCSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=iqD0D+M0; 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 m9-v6si8113938wru.90.2018.08.20.14.54.25; Mon, 20 Aug 2018 14:54:26 -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=iqD0D+M0; 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 BA908689C72; Tue, 21 Aug 2018 00:53:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 38020689AA1 for ; Tue, 21 Aug 2018 00:53:51 +0300 (EEST) Received: by mail-wm0-f52.google.com with SMTP id f21-v6so966648wmc.5 for ; Mon, 20 Aug 2018 14:54:18 -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=NRwPPnUnrN7tZ2FoCjlCrt/mr3glW+1l9ugIf1zjFnQ=; b=iqD0D+M0Rahg1COMKQMn9OSA9F61Ym736BLzGWooRYNkNlcf17TOh4CKJ0VA54G4Cy zJGlnL1TBWVYqAxjtNb42NpOXV7qS7KPhaA0KjzSGZY9szOq++9SzIosaC/392zZFGDr DYTP8u/2/BVMBJxro/E64mNgO5PJQryRd6WoYpxNKJjUZ48e/eqqmsvFakj1AW8Rs/lB R2PSwNuM3X2bc/L5qXpdXt2dQltzDRdB3kktBzUGLeC3y/WZI6SGeLoQCN0mF3sjY5Zu ONRbrMsdSBAHy7wCvgGCkSuCig5JHuqgAE2kVrWUytuiNLudYRVsytdWU0252TeK2KCK nOPQ== 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=NRwPPnUnrN7tZ2FoCjlCrt/mr3glW+1l9ugIf1zjFnQ=; b=SqEnu/nC3xCIDS6piBUjhAftTM/ayeif7KMGSD7R5iuM3T+dz4evKhs0aUhGpgzm8h UciPH5qnI7uOcxQuGJ3x4Gaof784H6ENRUmmFFYaq4dhVpWHMXGpvEVlNGRSzPbsZhEi J1TUaWRmKqP9nvEXWEzpxAB3yhbP6lRKm8LzNWjRHn5dsVCoC+/Andh6i4dxFiryNgIZ q+khrCXtkOItp232X3BG+l0AmPBKrZuD4CJCIP9G4tJAp8EaFafkT9m/HXJ1Efg92Axg LbYJRW4rsSreT8+Ty4dLsVjt7/fwx96BYUUMsvni4wqPSqQcVIZ8szAxUwz1m3elLmpw fxFQ== X-Gm-Message-State: APzg51B7MmU5x9kUbz0BX/asJQTIh+HGG1V2HdhbyYWz2TOISBo2cs+h fYgaim3OSXXoLSk2OcG4r+lML8Df X-Received: by 2002:a1c:7dca:: with SMTP id y193-v6mr854918wmc.91.1534801729044; Mon, 20 Aug 2018 14:48:49 -0700 (PDT) Received: from localhost.localdomain (178.113.191.106.wireless.dyn.drei.com. [178.113.191.106]) by smtp.gmail.com with ESMTPSA id q1-v6sm9107251wrw.42.2018.08.20.14.48.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Aug 2018 14:48:48 -0700 (PDT) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Mon, 20 Aug 2018 23:48:39 +0200 Message-Id: <20180820214839.34521-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 v3] 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 to v2: - Removed -map option to prevent filter to affect all audio channels in the first pass example doc/filters.texi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 32c95b591c..f082d55d32 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 -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.