From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Erich Eckner Newsgroups: gmane.comp.audio.sox Subject: Re: volume extremely low when combining many files Date: Thu, 22 Sep 2016 07:35:09 +0200 Message-ID: <99482240-79ac-4767-c935-d63238eb374a@eckner.net> References: Reply-To: sox-users@lists.sourceforge.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7856098731810595166==" X-Trace: blaine.gmane.org 1474522553 2060 195.159.176.226 (22 Sep 2016 05:35:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2016 05:35:53 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 To: sox-users@lists.sourceforge.net Original-X-From: sox-users-bounces@lists.sourceforge.net Thu Sep 22 07:35:49 2016 Return-path: Envelope-to: gcas-sox-users@gmane.org X-ACL-Warn: X-No-Relay: not in my network X-Hashcash: 1:22:160922:sox-users@lists.sourceforge.net::fuHcsqLSPoC9w732:000000 0000000000000000000000001PY+ In-Reply-To: X-Headers-End: 1bmwfF-0004Su-D8 X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-users-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox:6279 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmwfY-0006vy-GP for gcas-sox-users@gmane.org; Thu, 22 Sep 2016 07:35:36 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bmwfI-00027p-IV; Thu, 22 Sep 2016 05:35:20 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bmwfH-00027j-5Y for sox-users@lists.sourceforge.net; Thu, 22 Sep 2016 05:35:19 +0000 Received: from v1.homerecords.de ([62.141.45.186]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1bmwfF-0004Su-D8 for sox-users@lists.sourceforge.net; Thu, 22 Sep 2016 05:35:18 +0000 Received: from [192.168.0.12] (cable-86-56-88-136.cust.telecolumbus.net [86.56.88.136]) by v1.homerecords.de (Postfix) with ESMTPSA id 9521C29414E5 for ; Thu, 22 Sep 2016 07:35:10 +0200 (CEST) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============7856098731810595166== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cIl1uFklNM7RHBkHQXfTQ6eaHbdSkWCTL" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cIl1uFklNM7RHBkHQXfTQ6eaHbdSkWCTL Content-Type: multipart/mixed; boundary="SD8DhwgGjGewPcmBNeWA2UfSoMSHjwWdt"; protected-headers="v1" From: Erich Eckner To: sox-users@lists.sourceforge.net Message-ID: <99482240-79ac-4767-c935-d63238eb374a@eckner.net> Subject: Re: [SoX-users] volume extremely low when combining many files References: In-Reply-To: --SD8DhwgGjGewPcmBNeWA2UfSoMSHjwWdt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, the problem is, that "norm" is invoked on the input files, which are then mixed and decreased in volume to prevent clipping. Try something lik= e sox -V -m sound0.wav sound1.wav sound2.wav sound3.wav =E2=80=A6 sound100.= wav -r 44100 -e signed -b 16 output.wav trim 0 30.0 norm instead. Cheers, Erich On 22.09.2016 01:10, Bob S wrote: > Hello, >=20 > I am using sox to automatically assemble a soundtrack which described= by a bunch of keyframes, each of which specifies a small sound file to b= e played at a certain pitch and volume. When there are many keyframes, t= he overall soundtrack volume becomes very low. I do a first pass to gene= rate a sound file for each keyframe with the sound at the specified volum= e and pitch and with padding to place it at the right place in the overal= l soundtrack. Then in a second pass I assemble all the files. (I was doi= ng this with pipes and one big sox call, but the process was being termin= ated due to using too many resources on the server.) >=20 > I want the volume settings on the individual sounds to be respected, b= ut the overall output file should be normal volume. Right now even if al= l my keyframes are full volume, the combined result is very quiet. =20 >=20 > I read a little bit about this in the documentation, and I tried using = the =E2=80=94norm argument to normalize the final sound, but it isn=E2=80= =99t working.=20 >=20 > My call looks something like this: >=20 > sox -V =E2=80=94norm -m sound0.wav sound1.wav sound2.wav sound3.wav =E2= =80=A6 sound100.wav -r 44100 -e signed -b 16 output.wav trim 0 30.0 >=20 > Can anyone tell me what I am doing wrong? Should I not try to set the = volume on each sub-file and then set the volume when I am doing the final= combine? =20 > Thanks! > Bob >=20 >=20 > -----------------------------------------------------------------------= ------- > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users >=20 --SD8DhwgGjGewPcmBNeWA2UfSoMSHjwWdt-- --cIl1uFklNM7RHBkHQXfTQ6eaHbdSkWCTL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX422NAAoJEAruyQdV2ntaCLAP/2LXHq+NVTctEFZKc12MNdDr 704pvUjRW5u/tCvd35pQvE7nzQ1zsJAqVmWnZMcMfJb5JU+sI60GoKp22JGnne/C +klv6gCxpLDrb7JDwgWf3IsfRakwJDu9or9dyicBwVT5YDyQpq2mqRHTLqNWuMkD RieipwDev19jkvX8VxYN90sLbxJTiJxvdVUhroh1VAkBpZiB8XxYjowPTfcbrmPt uHpKuDFOKeSINHmXDA6sq8rgUfLUgNdMs65nVY0HaF1RGZmfUnD8jb9Ebk+c+pGZ m4kkpesVAB0sR+gc6doafFkL7IUX4KKzbeR8/hhK4zvUf5rfYSl6kOykD+ei9MAd pI/xtB5kL15oaj4B1lsMmQsC4pIrqJtjmfPhCsZXsTHkoQId3fVftmXpJSRwSJk/ hroVJRF+dHUoLj0lyD77DK4pNIymr9T8dWn91WnPrgLuhEBfAnWB7qXfgvgYsQKg KhAtfsoVWck1/xAhXtV/fG6QJmVfNN7K6+Q6SKEgOBt1zYSoQrW61BoWnq2FL3sv ye3pPRTrzPD9UwBzmDMP2iJC+ZYD1NmmIwvD+qOFimig9uJuBgw6bBzEgmG6Jgit GozYHBkvQqCLOY3/uETqXkbScHD9xBitEelOkMXDJ8fYw1PP4/ThSM5JvTqU7wLG ImdjKKcmKgNr2ZeVtKW6 =6+5r -----END PGP SIGNATURE----- --cIl1uFklNM7RHBkHQXfTQ6eaHbdSkWCTL-- --===============7856098731810595166== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============7856098731810595166== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============7856098731810595166==--