Menu

#338 Spectrogram of very BIG file

closed-invalid
nobody
None
5
2020-11-14
2020-08-24
No

Hello.
I tried to create a single wav file by doing an "append" from 8 wav files. Each wav file has a duration of 4 hours (14400 seconds).

I ran the command (from WIndows 10):

  • sox * .wav FINAL.WAV

The program created the FINAL.WAV file (6 Gbytes).

Then, from this file I created the Spectrogram with:

  • sox FINAL.WAV -n spectrogram -x 10000

From the spectogram I see that the total duration is not 115200 seconds, but only about 35 kS. Why ?

Thank you.
Giovanni Di Maria

1 Attachments

Discussion

  • Giovanni Di Maria

    I understand.
    The problem is not in the creation of the spectrogram, but in the queuing of the WAV files. They are very long.
    What is a possible solution?
    Thank you.
    Giovanni

     
  • Mans Rullgard

    Mans Rullgard - 2020-08-24

    The WAV format doesn't support file sizes over 4 GB. You have to use some other format for large files.

    If you just want to create the spectrogram, there is no need to save the concatenation at all. Instead, use a command like sox *.wav -n spectrogram ...

     
  • Mans Rullgard

    Mans Rullgard - 2020-11-14
    • status: open --> closed-invalid
     

Log in to post a comment.