[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sox-users
Subject:    Re: [SoX-users] convert raw file to wav file
From:       Jeff Learman <jjlearman () gmail ! com>
Date:       2024-01-11 16:11:39
Message-ID: CAGyjer5LP9RFQ6PPKrTFS2AsHrZ=FT6kTyX+CEc2XdCfrdStwg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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=C3=B6rster via Sox-users <
sox-users@lists.sourceforge.net> wrote:

> Hi Markus,
>
> here is an example for sox commandline for my special use. Please adapt i=
t
> 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 th=
e
> 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 =E2=88=92b 16 -L =E2=88=
=92c 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 listSox-users@lists.sourceforge.nethttps://lists.source=
forge.net/lists/listinfo/sox-users
>
>
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>

[Attachment #5 (text/html)]

<div dir="ltr">I believe I have some Bat-cording on my Bat-utility belt, which is in \
the Bat-cave at the moment.   ;-)<br></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Tue, 2 Jan 2024 at 08:11, Thomas Förster via \
Sox-users &lt;<a href="mailto:sox-users@lists.sourceforge.net">sox-users@lists.sourceforge.net</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <font face="Helvetica, Arial, sans-serif">Hi Markus,<br>
      <br>
      here is an example for sox commandline for my special use. Please
      adapt it to your need and correct your windows-batch-code:<br>
      <br>
      sox -r 44100 -b 24 -c 2 -e signed-integer input.raw -t wavpcm
      output_24bit.wav<br>
      sox -r 88200 -b 24 -c 2 -e float input.raw outputput_24bit.wav<br>
      <br>
      Regards<br>
      Thomas</font><br>
    <br>
    <div>Am 29.12.23 um 10:09 schrieb
      markus.blaschke--- via Sox-users:<br>
    </div>
    <blockquote type="cite">
      
      <div style="font-family:arial,helvetica,sans-serif;font-size:12px">
        
        Hello,<br>
        <br>
        I want to convert raw files from a Bat cording system to
        wav-files for the Bat analysing system.<br>
        And I found the Program SOX where I saw that it works with this
        to file formats.<br>
        <br>
        I work with Windows 10<br>
        <br>
        an I know from the Internet page of the Bat cording systeme that
        the<br>
        <br>
        RAW files have no header<br>
        <br>
        samplerate 500 kHz<br>
        little endien format<br>
        PCM 16-bits<br>
        <br>
        other WAV files from an other Bat-cording system have<br>
        <br>
        Channels             : 1<br>
        Sample Rate       : 312500<br>
        Precision           : 16-bit<br>
        Sample Encoding: 16-bit Signed Integer PCM<br>
        <br>
        so i tried a batchfile to convert<br>
        <br>
        @echo<br>
        cd C:\temp\sox-14-4-2<br>
        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)<br>
        pause<br>
        <br>
        <br>
        but i get this back:<br>
        <br>
        sox.exe FAIL formats: bad input format for file
        `C:\temp\20230523-N091_B0220-000014.raw&#39;: sampling rate was not
        specified<br>
        <br>
        I thought the &quot;-r 500k&quot; is the information for the sampling
        rate.<br>
        <br>
        Does anybody can give me an Idea to understand the line?<br>
        Thank you for all your Help<br>
        <br>
        Markus</div>
      <br>
      <fieldset></fieldset>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Sox-users mailing list
<a href="mailto:Sox-users@lists.sourceforge.net" \
target="_blank">Sox-users@lists.sourceforge.net</a> <a \
href="https://lists.sourceforge.net/lists/listinfo/sox-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/sox-users</a> </pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
Sox-users mailing list<br>
<a href="mailto:Sox-users@lists.sourceforge.net" \
target="_blank">Sox-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/sox-users" rel="noreferrer" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/sox-users</a><br> \
</blockquote></div>





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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic