sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Bob S <bsabiston@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: volume extremely low when combining many files
Date: Thu, 22 Sep 2016 11:19:38 -0500	[thread overview]
Message-ID: <A9D0303A-A129-43CA-8B65-3DA59CB4D46D@gmail.com> (raw)
In-Reply-To: <99482240-79ac-4767-c935-d63238eb374a@eckner.net>

>> 
>>  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 be played at a certain pitch and volume.  When there are many keyframes, the overall soundtrack volume becomes very low.  I do a first pass to generate a sound file for each keyframe with the sound at the specified volume and pitch and with padding to place it at the right place in the overall soundtrack.  Then in a second pass I assemble all the files. (I was doing this with pipes and one big sox call, but the process was being terminated due to using too many resources on the server.)
>> 
>> I want the volume settings on the individual sounds to be respected, but the overall output file should be normal volume.  Right now even if all my keyframes are full volume, the combined result is very quiet.  
>> 
>> I read a little bit about this in the documentation, and I tried using the —norm argument to normalize the final sound, but it isn’t working. 
>> 
>> My call looks something like this:
>> 
>> sox -V —norm -m sound0.wav sound1.wav sound2.wav sound3.wav … sound100.wav  -r 44100  -e signed -b 16 output.wav trim 0 30.0
>> 
>> 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?  
>> Thanks!
>> Bob

> 
> the problem is, that "norm" is invoked on the input files, which are
> then mixed and decreased in volume to prevent clipping. Try something like
> 
> sox -V -m sound0.wav sound1.wav sound2.wav sound3.wav … 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:

Thanks for the reply.  Actually it sort of started working the way I had it.  I think I had something else wrong.  But the problem now, both with the way I wrote it above and if I try it the way you suggest, is the same:  The volume is loud, but there is also a loud hissing noise all the way through, static where there should be silence.  I also get that same result if I try the ‘mix-power’ argument, and if I set the volume for each track in the final call when I combine them together.

It seems like this might be from raising a low-volume sound way up, but I don’t really know why it would need to do that.  I have like a hundred little tracks being mixed together, and they are all mostly silence except for the part in each one where the sound effect plays.  Anyone have a suggestion for how to fix that?

Thanks,
Bob


------------------------------------------------------------------------------
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2016-09-22 16:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-21 23:10 volume extremely low when combining many files Bob S
2016-09-22  5:35 ` Erich Eckner
2016-09-22 16:19   ` Bob S [this message]
2016-09-22 17:37     ` Jeremy Nicoll - ml sox users
2016-09-22 17:56       ` Bob S
2016-09-23  4:56         ` Erich Eckner
2016-09-23 21:43           ` Bob S
2016-09-24  5:06             ` Erich Eckner
2016-09-24 15:41               ` Jan Stary
2016-09-24 17:14                 ` Erich Eckner
2016-09-27 20:55                   ` Bob S
2016-09-27 21:30                     ` Erich Eckner
2016-09-29 16:40                       ` Bob S
2016-09-29 16:49                       ` Bob S
2016-09-24 17:49               ` Bob S
2016-09-22 18:07       ` Bob S

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=A9D0303A-A129-43CA-8B65-3DA59CB4D46D@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).