Cannot import mp4 file

I cant open mp4 files in audacity like the title says. I have ffmpeg installed on my machine but im still getting the error message when opening an mp4 file. I already looked in the forum but i wasnt able to find any information

My audacity is on version 3.2.1, i have the 64bit Version and ffmpeg is also the 64bit Version. (Installed it from this url)

This is the log after startup

16:37:02: Audacity 3.2.1
16:37:02: sqlite3 message: (1) no such table: project in "SELECT 1 FROM project LIMIT 1;"
16:37:03: Error: Failed to load shared library 'avformat-59.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:37:03: Error: Failed to load shared library 'avformat-58.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:37:03: Error: Failed to load shared library 'avformat-57.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:37:03: FFmpeg libraries loaded successfully from: D:\FFmpeg For Audacity\avformat-55.dll

And the log after trying to open an mp4 file

16:37:02: Audacity 3.2.1
16:37:02: sqlite3 message: (1) no such table: project in "SELECT 1 FROM project LIMIT 1;"
16:37:03: Error: Failed to load shared library 'avformat-59.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:37:03: Error: Failed to load shared library 'avformat-58.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:37:03: Error: Failed to load shared library 'avformat-57.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:37:03: FFmpeg libraries loaded successfully from: D:\FFmpeg For Audacity\avformat-55.dll
16:38:58: File name is E:\Streaming\Recordings\2022-10-25 16-18-57.mp4
16:38:58: Mime type is *
16:38:58: Opening with libav
16:38:58: Error: Failed to load shared library 'avformat-59.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:38:58: Error: Failed to load shared library 'avformat-58.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:38:58: Error: Failed to load shared library 'avformat-57.dll' (error 126: Das angegebene Modul wurde nicht gefunden.)
16:38:58: FFmpeg libraries loaded successfully from: D:\FFmpeg For Audacity\avformat-55.dll
16:38:58: Open(E:\Streaming\Recordings\2022-10-25 16-18-57.mp4) succeeded
16:39:04: Opening with legacyaup
16:39:04: Opening with libsndfile
16:39:04: Opening with liboggvorbis
16:39:04: Opening with libflac
16:39:04: Opening with libmpg123
16:39:04: Opening with lof
16:39:04: Opening with libwavpack
16:39:04: Error: Importer::Import: Opening failed.

I also dont know why audacity is trying to load avfromat 57 to 59, i never had ffmpeg installed anywhere before



16:37:03: FFmpeg libraries loaded successfully from: D:\FFmpeg For Audacity\avformat-55.dll

So this means FFmpeg was loaded OK. The other “errors” are really just “red herrings”, and should probably be reworded. (I get the same “errors” on my machine, yet it loads mp4 files OK).

If you have any custom “rules” set in Edit > Preferences > Import/Export > Extended Import, you can try deleting those custom rules.

You can try converting the file to .WAV using a third party tool such as VLC.

If you want to post the problem file on a public file sharing service, someone will take a look at it and see if they can duplicate your issue.