Re: [solved] Convert multichannel raw file to wav

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

 



On Apr 22 10:55:46, rodolfo.medina@xxxxxxxxx wrote:
> Rodolfo Medina <rodolfo.medina@xxxxxxxxx> writes:
> 
> > I'm converting to wav format a raw file that comes from this:
> >
> >  $ pacat --record -d
> > alsa_input.usb-BEHRINGER_UMC404HD_192k-00.analog-surround-40 > dump.raw
> >
> > because it's the result of a three-microphone live recording using my
> > four-channel Behringer audio interface.  I expect the result to be a
> > three-channel file: what will the right sox command be?  The following:
> >
> >  $ sox -t raw -r 44100 -e signed-integer -L -b 16 -c 2 dump.raw output.wav
> >
> > produces a two-channel file: please help.  Instead, if I record with:
> >
> >  $ sox -t alsa hw:2,0 output.wav
> >
> > I get a four-channel file.  But I'd prefer using pacat.  Please help.  Thanks.
> 
> Sorry, it was a pacat problem, not sox's: the proper syntax for the pacat
> command is:
> 
>  $ pacat --record -d alsa_input.usb-BEHRINGER_UMC404HD_192k-00.analog-surround-40 --channels=4 --channel-map=aux0,aux1,aux2,aux3 > dump2.raw

That still does not specify the smaple rate and the encoding.
Repeat the questions:

Why don't you specify the format explicitly?
Why do you record multichannel input into a raw file?

> and then sox:
>  $ sox -t raw -r 44100 -e signed-integer -L -b 16 -c 4 dump2.raw output2.wav
> This way it seems to work. Do you tink it's correct?

How would anyone but you know?
Is the recording's sample rate actualy 44100?
Is the encoding actualy signed 16bit integers?
If so, why don't you say that explicitly in your pacat command?

> ...number 4 is due to the fact that Behringer UMC404HD is a four-channel audio
> interface.

The -c 4 tells SoX that dump2.raw is a 4 channel file.
By then, the Behringer has nothing to do with it.

	Jan



_______________________________________________
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