sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: fmiser <fmiser@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: normalize across multiple files in one go?
Date: Wed, 30 Nov 2016 17:25:04 -0600	[thread overview]
Message-ID: <583F5FD0.6060306@gmail.com> (raw)
In-Reply-To: <20161130101700.ffui6s4n6ehwtteb@fastmail.com>

> Peter wrote:

> I am trying to normalize multiple files while keeping their
> relative levels intact. Is there a way to do this with SoX in
> one call?

Hmmm.  I don't think in one call.

> How could it be done with multiple calls (eg. analyze first,
> then raise gain of all files)?


Idea 1.
wavegain can do this sort of batch process.  It calls in "album" mode - 
but it is not "normalizing", rather it is calculating replay-gain.

Idea 2.
You could use soxi (or the effect "stat" or "stats") to figure out
the value for each.

Idea 3.
If the files aren't too big, may concatenate them, then figure the
normalize value for the big file, the apply that amount of gain to
each of the pieces.

The details of the last two ideas are going to be system and/or
shell dependent.  Wavegain I know works on Linux, and may compile
to other platforms, but I don't know.

------------------------------------------------------------------------------

  parent reply	other threads:[~2016-11-30 23:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-30 10:17 normalize across multiple files in one go? Peter P.
2016-11-30 16:22 ` Graff, David E
2016-11-30 23:25 ` fmiser [this message]
2016-12-01  0:01 ` Eric Wong
2016-12-01 18:50   ` Peter P.

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-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=583F5FD0.6060306@gmail.com \
    --to=sox-users@lists.sourceforge.net \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).