Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to add audio clip in audio source in Unity

I have added audio source component in Unity Scene but I am unable to add audio clip in it. It is throwing the following error:

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)

I am using Unity version 2019.3.14f1. I have tried different sound source formats (mp3 and wav) but it is trowing the same error. How to resolve this?

like image 850
shivank01 Avatar asked Oct 19 '25 09:10

shivank01


1 Answers

Try to work with ffmpeg when working with media formats. ffmpeg is available for linux and windows. A simple command to check a file is

ffprobe file.ogg

You can also do extended checks including conversion to fix the file. There are prenty of methods. Just search for "ffmpeg integrity check"

If you are lazy as myself i would simply convert it to a wav file and back to ogg again.

ffmpeg -i file.ogg file.wav
ffmpeg -i file.wav file.ogg
like image 186
Nur1 Avatar answered Oct 22 '25 03:10

Nur1



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!