我在 Unity 场景中添加了音频源组件,但我无法在其中添加音频剪辑。它抛出以下错误:
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),但它出现了同样的错误。如何解决?
最佳答案
尝试使用 ffmpeg在处理媒体格式时。 ffmpeg 可用于 linux 和 windows。 一个检查文件的简单命令是
ffprobe file.ogg
您还可以进行扩展检查,包括转换以修复文件。 有很多方法。只需搜索“ffmpeg 完整性检查”
如果你像我一样懒惰,我会简单地将它转换为 wav 文件,然后再返回到 ogg。
ffmpeg -i file.ogg file.wav
ffmpeg -i file.wav file.ogg
关于unity3d - 无法在 Unity 的音频源中添加音频剪辑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62210200/