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: Sat, 24 Sep 2016 07:06:23 +0200 Message-ID: <7a8da1cc-5e0c-9fa3-a2cf-ab3b0c588fcf@eckner.net> References: <99482240-79ac-4767-c935-d63238eb374a@eckner.net> <1d05af1827f0efc7968990aea4b54e3e@wingsandbeaks.org.uk> <6C04A1EE-C25C-48BB-AFD9-9D8EEF08E0D1@gmail.com> <52F5EE64-C87E-4A1A-A611-565F42DC1922@gmail.com> Reply-To: sox-users@lists.sourceforge.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1876675457811905402==" X-Trace: blaine.gmane.org 1474693630 9048 195.159.176.226 (24 Sep 2016 05:07:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2016 05:07:10 +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 Sat Sep 24 07:07:06 2016 Return-path: Envelope-to: gcas-sox-users@gmane.org X-ACL-Warn: X-No-Relay: not in my network X-Hashcash: 1:22:160924:sox-users@lists.sourceforge.net::/3B+/ew91l3v0aRR:000000 0000000000000000000000009G4P In-Reply-To: <52F5EE64-C87E-4A1A-A611-565F42DC1922@gmail.com> X-Headers-End: 1bnfAW-0000NY-CE 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:6297 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnfAp-00009L-Nl for gcas-sox-users@gmane.org; Sat, 24 Sep 2016 07:06:52 +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 1bnfAZ-0004wy-5Z; Sat, 24 Sep 2016 05:06:35 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bnfAX-0004wt-VN for sox-users@lists.sourceforge.net; Sat, 24 Sep 2016 05:06:33 +0000 Received: from v1.homerecords.de ([62.141.45.186]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1bnfAW-0000NY-CE for sox-users@lists.sourceforge.net; Sat, 24 Sep 2016 05:06:33 +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 692B42940EB2 for ; Sat, 24 Sep 2016 07:06:25 +0200 (CEST) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1876675457811905402== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9oSv1801hk803665duLsBeWGqCgMpAeVS" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9oSv1801hk803665duLsBeWGqCgMpAeVS Content-Type: multipart/mixed; boundary="2ji6fB65DLhCwW3im7L5NXap0TTlJmv5J"; protected-headers="v1" From: Erich Eckner To: sox-users@lists.sourceforge.net Message-ID: <7a8da1cc-5e0c-9fa3-a2cf-ab3b0c588fcf@eckner.net> Subject: Re: [SoX-users] volume extremely low when combining many files References: <99482240-79ac-4767-c935-d63238eb374a@eckner.net> <1d05af1827f0efc7968990aea4b54e3e@wingsandbeaks.org.uk> <6C04A1EE-C25C-48BB-AFD9-9D8EEF08E0D1@gmail.com> <52F5EE64-C87E-4A1A-A611-565F42DC1922@gmail.com> In-Reply-To: <52F5EE64-C87E-4A1A-A611-565F42DC1922@gmail.com> --2ji6fB65DLhCwW3im7L5NXap0TTlJmv5J Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Bob, can you post the command you used to generate that file? It is indeed not "silent" at the beginning: >sox sound77.wav -n trim 0 9 stats DC offset -0.000002 Min level -0.007812 Max level 0.007812 Pk lev dB -42.14 RMS lev dB -48.17 RMS Pk dB -47.83 RMS Tr dB -48.64 Crest factor 2.00 Flat factor 2.17 Pk count 99.0k Bit-depth 1/8 Num samples 397k Length s 9.000 Scale max 1.000000 Window s 0.050 However, if I do a pad: >sox sound77.wav test.wav pad 10 and analyze the result, it's silent: > sox test.wav -n trim 0 9 stats DC offset 0.000000 Min level 0.000000 Max level 0.000000 Pk lev dB -inf RMS lev dB -inf RMS Pk dB -inf RMS Tr dB -inf Crest factor 1.00 Flat factor 111.97 Pk count 794k Bit-depth 0/0 Num samples 397k Length s 9.000 Scale max 1.000000 Window s 0.050 Something else seems to be wrong. Cheers, Erich On 23.09.2016 23:43, Bob S wrote: >=20 >> On Sep 22, 2016, at 11:56 PM, Erich Eckner wrote: >> >> Hi Bob, >> >> I think the problem is related to "dither". Two suggestions: >> try disabling dither ("-D") in all but the last sox command and >> try to minimize the number of "snippets" you combine, e.g.: put >> non-overlapping sounds in one file in the first step. This way you wil= l >> end up with less dither-noise. >> >> cheers, >> Erich >=20 > Thanks Erich, >=20 > I did figure the problem was just too many overlapping tracks piling u= p, even if they were supposedly silent. I wonder if something else is wr= ong, though =E2=80=94 even in the partial sub-tracks, where a single effe= ct has just been padded to the right length with =E2=80=98pad=E2=80=99, t= he padded part is not silent at all but actually a pretty loud static his= s for something that is supposed to be silence. I tried adding -D, but t= hat did not change anything. Does it go before or after the input file i= n the sox call? Or after the output file? I=E2=80=99ve tried all three w= ith the same results. >=20 > For example, this file is a small sound effect padded with =E2=80=98sil= ence=E2=80=99 for the first ten seconds: > https://dl.dropboxusercontent.com/u/4215526/sound77.wav >=20 > I=E2=80=99ve got to be doing something wrong to get that kind of noise,= aren=E2=80=99t I? >=20 > Anyway, yesterday I rewrote the whole thing to assemble nonoverlapping = tracks, like you say. I had not done that originally because I figured t= hat over time, a big error would be introduced near the end as sounds did= not line up with their correct video frame. But it seems to be OK and n= ow I am only mixing two tracks together, so the problem is not so bad. Th= e noise stays at the level you hear in the sample above. But it=E2=80=99= s still pretty annoying and I=E2=80=99d like to get rid of it. =20 >=20 > Bob > -----------------------------------------------------------------------= ------- > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users >=20 --2ji6fB65DLhCwW3im7L5NXap0TTlJmv5J-- --9oSv1801hk803665duLsBeWGqCgMpAeVS 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 iQIcBAEBCAAGBQJX5gnQAAoJEAruyQdV2ntalQUP/0CVowR96vqXQGb/RTqjhN72 veKENCYrdxoG+Ie36chlixtmrRlaUliiGk8l35QVb7dQ2Qa7srUzAQiMSlCqeT3B vdo2zYKdOAxux1kti5auAjI0SMiS2hPHXSwZk+KAVxiKm4j1dNWm/wkODgYnXnHp /r6FVaRD/UfZKfg9TfqT1FMmCELISuphI4PsbsiJ9dhVDyq9UWmYJT+CqiQzy5so tXiCyMlPLvT+qM7ocXKjkeNpmJe4efZNH3FjUDhRV8OHGXKSvmAHCUTf2Vw8TMsA FBk2FFvwTSM/iN1X7n/OOQyvcX6kmDXC8Lp0sY6pxGPO+l8VLkoBZ9kXXFEneiMI EHU5RG5N7Kp/56IohwEsCUCnRTZDNejAHcjfQeLP3wUuT5xsdOqIfz/xH9dTd+A3 c+jYimKmtX5R58Yq+T+Td8RG22OqENPWtyWW1mao8Wnr3AeOWWrBDpBkF/3xlW5p /BI5yADm5qNlR8Oxkq+5WC/DDBh2QpfUokMo6MY8gTBGUQaRLREIUaUgBQ22JvC7 /DIzBwTImUJPJU3m1nihMIwBYLiqaU2y5pj2eBXvNeXgFqLJBXCLQ62cmsT2XntQ pEapIlHOxvl4NUJ7l4P0k4QTbYgoZWCTCJLuFHa/Ymdnym5r2ofkI1cbIJx6V5Ix Kf/fn6V9UHHoje6Gj04h =798a -----END PGP SIGNATURE----- --9oSv1801hk803665duLsBeWGqCgMpAeVS-- --===============1876675457811905402== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============1876675457811905402== 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 --===============1876675457811905402==--