sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Prevent SoX from doing the clipping?
@ 2020-06-05  6:54 Danijel DOMAZET
  2020-06-05  8:05 ` Peter P.
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Danijel DOMAZET @ 2020-06-05  6:54 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 798 bytes --]

Hi list,

I have a heavily "overflowed" WAV file (samples written in float 32-bit
format): instead of [-1.0,+1.0], the samples range goes as far as
[-5.0,+5.0].

Using SoX to get raw PCM audio samples from WAV file:

`sox --bits 32 --channels 1 --encoding floating-point --rate 48000
input.wav output.raw`

I get warnings:

    sox WARN sox: `input.wav' input clipped 1163400 samples
    sox WARN sox: `output.raw' output clipped 605664 samples; decrease
volume?

When I look into the output, I see the samples were clipped, and the range
is [-1.0,+1.0] now. However, that is not what I want.

I would like to have exactly the same output as input, just in different
format (RAW instead of WAV). Is there a way to prevent SoX from doing the
clipping?

Thanks!
Danijel Domazet

-- 
- Confidential -

[-- Attachment #1.2: Type: text/html, Size: 1263 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-06 18:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05  6:54 Prevent SoX from doing the clipping? Danijel DOMAZET
2020-06-05  8:05 ` Peter P.
2020-06-05  8:31 ` Måns Rullgård
2020-06-05  8:39   ` Danijel DOMAZET
2020-06-06 18:02 ` Jan Stary
2020-06-06 18:03 ` Jan Stary

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).