Menu

#181 Can´t read Large Wave files (No Header)

open
nobody
None
5
2025-11-26
2013-06-09
No

I can´t make sox read large wave files. like 7 hours. It complains (Riff header not found).
It does however work if i choose raw and input all the information (type,bit etc).

But it will not be perfect, as it seems to fail at some samples, probably caused from incorrect reading of the file.

Now i am not sure if this is a limitation in Sox cause it´s so large, or if it´s something else.

Discussion

  • Radikal Den store

    I maybe should add.

    It´s not possible even with Ignore Length. I think the size/duration exceed Wave64.

    It works perfectly on media players of my choice though.

     
  • Ulrich Klauer

    Ulrich Klauer - 2013-08-04

    What do other programs say that the file type is? Could you provide a hexdump of, say, the first 80 bytes or so of an example file?

     
  • Dloneranger

    Dloneranger - 2013-09-09

    One standard that's used by ffdshow and sony/soundforge is wave64
    A pdf spec is at http://www.ambisonia.com/Members/mleese/sony_wave64.pdf
    Or you can just google "sony wave64"

    If you can parse .wav, then it's a tiny difference
    You can make a sample with ffmpeg
    ffmpeg.exe -i "c:\somefile.wav" -vn -acodec pcm_s16le -ac 2 "c:\out.w64"

    Theres also rf64
    https://en.wikipedia.org/wiki/RF64

     

    Last edit: Dloneranger 2013-09-09
  • Ulrich Klauer

    Ulrich Klauer - 2013-09-09

    Dloneranger, SoX is already able to read both W64 and RF64 via libsndfile.

     
  • Martin Guy

    Martin Guy - 2025-11-26

    Yes, it can read and write w64 files, and so can sox-14.4.1 (Feb 2013)

    $ sox_ng -n somefile.w64 trim 0 7:00:00
    $ ls -l somefile.w64 
    -rw-rw-r-- 1 martin martin 4838400104 Nov 26 18:45 somefile.w64
    $ file !$
    file somefile.w64
    somefile.w64: Sony Wave64 RIFF data, WAVE 64 audio, mono 48000 Hz
    $ soxi somefile.w64
    
    Input File     : 'somefile.w64'
    Channels       : 1
    Sample Rate    : 48000
    Precision      : 32-bit
    Duration       : 07:00:00.00 = 1209600000 samples ~ 1.89e+06 CDDA sectors
    File Size      : 4.84G
    Bit Rate       : 1.54M
    Sample Encoding: 32-bit Signed Integer PCM
    
    $ sox_ng somefile.w64 somefile.flac
    $ soxi somefile.flac
    
    Input File     : 'somefile.flac'
    Channels       : 1
    Sample Rate    : 48000
    Precision      : 24-bit
    Duration       : 07:00:00.00 = 1209600000 samples ~ 1.89e+06 CDDA sectors
    File Size      : 4.41M
    Bit Rate       : 1.40k
    Sample Encoding: 24-bit FLAC
    Comment        : 'Comment=Processed by SoX'
    
     

Log in to post a comment.