Re: convert raw file to wav file

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

 



I believe I have some Bat-cording on my Bat-utility belt, which is in the Bat-cave at the moment.  ;-)

On Tue, 2 Jan 2024 at 08:11, Thomas Förster via Sox-users <sox-users@xxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Markus,

here is an example for sox commandline for my special use. Please adapt it to your need and correct your windows-batch-code:

sox -r 44100 -b 24 -c 2 -e signed-integer input.raw -t wavpcm output_24bit.wav
sox -r 88200 -b 24 -c 2 -e float input.raw outputput_24bit.wav

Regards
Thomas


Am 29.12.23 um 10:09 schrieb markus.blaschke--- via Sox-users:
Hello,

I want to convert raw files from a Bat cording system to wav-files for the Bat analysing system.
And I found the Program SOX where I saw that it works with this to file formats.

I work with Windows 10

an I know from the Internet page of the Bat cording systeme that the

RAW files have no header

samplerate 500 kHz
little endien format
PCM 16-bits

other WAV files from an other Bat-cording system have

Channels       : 1
Sample Rate    : 312500
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

so i tried a batchfile to convert

@echo
cd C:\temp\sox-14-4-2
for %%i in (C:\temp\*.raw); do (sox.exe -r 500k −b 16 -L −c 1 %%i -r 312500 -b 16 -L -c 1 .\converted\%%i.wav)
pause


but i get this back:

sox.exe FAIL formats: bad input format for file `C:\temp\20230523-N091_B0220-000014.raw': sampling rate was not specified

I thought the "-r 500k" is the information for the sampling rate.

Does anybody can give me an Idea to understand the line?
Thank you for all your Help

Markus


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

_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users
_______________________________________________
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