由于文件未以RIFF ID开头,因此无法以WAV格式打开文件file.wav [英] Failed to open file file.wav as a WAV due to: file does not start with RIFF id

查看:2139
本文介绍了由于文件未以RIFF ID开头,因此无法以WAV格式打开文件file.wav的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在python中打开RIFF文件(据我所知是WAV类型)时出现此错误.

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

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

当我使用各种工具对其进行检查时,使我相信它确实是一个WAV/RIFF文件.

When I inspect it with various tools which leads me to believe that it is really 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%)

推荐答案

您拥有的是 64位RIFF . wave不支持64位RIFF文件.

What you have is a 64-bit RIFF. wave does not support 64-bit RIFF files.

这篇关于由于文件未以RIFF ID开头,因此无法以WAV格式打开文件file.wav的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆