Re: Prevent SoX from doing the clipping?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Danijel DOMAZET <p-danijel.domazet@xxxxxxxxxxxx> [2020-06-05 09:19]:
> 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?
Does the RAW format support 32bit floats? Would it be possible for you
to rescale volume using the "norm" effect?
> 
> Thanks!
> Danijel Domazet
> 
> -- 
> - Confidential -

also confidential
Peter



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



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux