Re: manualy setting output as for .s32 extension

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

 



Danijel DOMAZET <p-danijel.domazet@xxxxxxxxxxxx> writes:

> Hi SoX users,
>
> This command works for me:
> 1) sox --channels 1 --rate 48000 in_signal.wav in_signal.s32
>
> Now, I'd like to change the output filename extension. In that case SoX
> can't deduce the format from the extension, so I have to tell it the
> details. I tried the following line:
> 2) sox --bits 32 --channels 1 --encoding signed-integer --rate 48000
> in_signal.wav --type raw in_signal.q31
>
> However, I am not getting the same output as using the first command.
>
> What's done wrong in the second command?

You're options you've added apply to the input file, not the output, and
probably don't do what you want.  With a WAV input, you should not
normally need to specify channel count or sample rate unless the file
header is incorrect (it happens).

All you need to do here is say --type s32 before the output file
(instead of raw).

-- 
Måns Rullgård


_______________________________________________
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