我已在Unity Scene中添加了音频源组件,但无法在其中添加音频剪辑。它引发以下错误:
Errors during import of AudioClip Assets/sound1.ogg:
FSBTool ERROR: The format of the source file is invalid, see output for details.
FSBTool ERROR: Internal error from FMOD sub-system.
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
我正在使用Unity版本2019.3.14f1。我尝试了不同的声源格式(mp3和wav),但是却出现了相同的错误。该如何解决?
答案 0 :(得分:0)
使用媒体格式时,请尝试使用ffmpeg。 ffmpeg适用于Linux和Windows。 一个简单的命令来检查文件是
ffprobe file.ogg
您还可以进行扩展检查,包括转换以修复文件。 有很多方法。只需搜索“ ffmpeg完整性检查”
如果您像我一样懒惰,我只需将其转换为wav文件,然后再次返回到ogg。
ffmpeg -i file.ogg file.wav
ffmpeg -i file.wav file.ogg