Failed to open file.wav file as WAV due to file not starting with RIFF identifier

I get this error when trying to open a RIFF file (which, as I understand it, this is a WAV type) in python.

Failed to open file file.wav as a WAV due to: file does not start with RIFF id 

When I test it with various tools that make me believe that it is a WAV / RIFF file.

 $ file file.wav file.wav: MBWF/RF64 audio, stereo 96000 Hz $ file -i file.wav file.wav: audio/x-wav; charset=binary $ mediainfo file.wav General Complete name : file.wav Format : Wave Format profile : RF64 File size : 4.10 GiB Duration : 2h 7mn Overall bit rate mode : Constant Overall bit rate : 4 608 Kbps Audio Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : 1 Duration : 2h 7mn Bit rate mode : Constant Bit rate : 4 608 Kbps Channel(s) : 2 channels Sampling rate : 96.0 KHz Bit depth : 24 bits Stream size : 4.10 GiB (100%) 
0
source share
2 answers

You have a 64-bit RIFF . wave does not support 64-bit RIFF files.

+1
source

I have a word, I will rename the suffix of the file to "mp3" and convert it to "wav", after which I could read it.

 subprocess.call(['ffmpeg', '-i', 'XXX.mp3', 'XXX.wav']) 
0
source

All Articles