MP3Importer has problems in Linux

Hey everyone!

When I try to load a sound file (MP3) on Linux, I get the following output:

/home/user/Desktop/Game/Content/Audio/file1.mp3 /bin/chmod: cannot access 'linux/ffprobe': No such file or directory /home/user/Desktop/Game/Content/Audio/file1.mp3: error: Importer 'Mp3Importer' had unexpected failure! Microsoft.Xna.Framework.Content.Pipeline.InvalidContentException: Failed to open file file1. Ensure the file is a valid audio file and is not DRM protected. ---> System.ComponentModel.Win32Exception: ApplicationName='linux/ffprobe', CommandLine='-i "/home/user/Desktop/Game/Content/Audio/file1.mp3" -show_format -show_entries streams -v quiet -of flat', CurrentDirectory='', Native error= Cannot find the specified file at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <2703bbaa0a6e4686b6033c2dddb1a363>:0 at System.Diagnostics.Process.Start () [0x0003a] in <2703bbaa0a6e4686b6033c2dddb1a363>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() at Microsoft.Xna.Framework.Content.Pipeline.ExternalTool.Run (System.String command, System.String arguments, System.String& stdout, System.String& stderr, System.String stdin) [0x000ab] in :0 at Microsoft.Xna.Framework.Content.Pipeline.Audio.DefaultAudioProfile.ProbeFormat (System.String sourceFile, Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioFileType& audioFileType, Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioFormat& audioFormat, System.TimeSpan& duration, System.Int32& loopStart, System.Int32& loopLength) [0x00010] in :0 at Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioContent..ctor (System.String audioFileName, Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioFileType audioFileType) [0x00015] in :0 --- End of inner exception stack trace --- at Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioContent..ctor (System.String audioFileName, Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioFileType audioFileType) [0x0023b] in :0 at Microsoft.Xna.Framework.Content.Pipeline.Mp3Importer.Import (System.String filename, Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext context) [0x0003f] in :0 at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1[T].Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import (System.String filename, Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext context) [0x0001c] in :0 at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent (MonoGame.Framework.Content.Pipeline.Builder.PipelineBuildEvent pipelineEvent) [0x00079] in :0

I found a solution for somebody who had the problem that he had no rights for executing ffprobe, but in my case it says that the file does not even exist.

Hi bud :slight_smile: If it says it doesn’t exist, maybe you don’t have ffmpeg installed in your machine?

sudo add-apt-repository ppa:jonathonf/ffmpeg-4

then

sudo apt install ffmpeg

check if it installed successfully: ffmpeg -version

If it doesn’t work, try to start a new project following this topic. I too had this issue and fixed it: