Error message when importing mp3-file

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Error message when importing mp3-file

Post by юра00 » Sat Apr 17, 2021 8:34 am

The problem was solved unexpectedly. I just installed ffmpeg from the page:
https://manual.audacityteam.org/man/ins ... ndows.html
Now the file is imported successfully.

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Error message when importing mp3-file

Post by юра00 » Sat Apr 17, 2021 8:51 am

Please, look! The line "Artist name" is...empty! Why does Audacity erase tag content? As in the imported file the artist name is properly written.
Attachments
Фото.jpg
Фото.jpg (78.24 KiB) Viewed 326 times
Фото1.jpg
Фото1.jpg (82.92 KiB) Viewed 326 times

waxcylinder
Forum Staff
Posts: 14571
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Error message when importing mp3-file

Post by waxcylinder » Sat Apr 17, 2021 9:11 am

I cannot reproduce this error on my W10 PC - the Artist Name is present and correct in Audacity when I export an imported edited .mp3 audio file with metadata.

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Error message when importing mp3-file

Post by юра00 » Sat Apr 17, 2021 3:47 pm

The problem repeated itself for the other file:
https://mega.dp.ua/ru/eN9m4ZxPsz
The line "Artist name" was...erased! Why is just this line and what could have happened? It began after installing ffmpeg.

steve
Site Admin
Posts: 80675
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Error message when importing mp3-file

Post by steve » Sat Apr 17, 2021 4:19 pm

юра00 wrote:
Sat Apr 17, 2021 3:47 pm
The problem repeated itself for the other file:
https://mega.dp.ua/ru/eN9m4ZxPsz
That file has a stream error (The MP3 is slightly malformed).
Because of that error in the file, Audacity's built-in MP3 importer ("libmad") fails and passes the file to FFmpeg so that FFmpeg can try to import it.

FFmpeg is more fault tolerant and is able to import the file successfully.
Unfortunately, FFmpeg's handling of metadata is not as good as libmad, so some of the metadata fails to be imported.

I'll recheck that first file - Now that I know what I'm looking for I'm guessing that has the same problem.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 80675
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Error message when importing mp3-file

Post by steve » Sat Apr 17, 2021 4:22 pm

steve wrote:
Sat Apr 17, 2021 4:19 pm
I'll recheck that first file - Now that I know what I'm looking for I'm guessing that has the same problem.
Yes it has the same problem. Also it has garbage at the end of the file:

Code: Select all

Analyzing file "Rio2.mp3"...
WARNING: "Rio2.mp3" (offset 0x287): MPEG stream error, resynchronized successfully
WARNING: "Rio2.mp3" (offset 0x3d7d05): Garbage at the end of the file
INFO: "Rio2.mp3": 9661 MPEG frames (MPEG 1 Layer III), +ID3v1+ID3v2, CBR, CRC
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Error message when importing mp3-file

Post by юра00 » Sat Apr 17, 2021 5:12 pm

Thank you! But that’s never been such a problem in the version Audacity 2.2.2 (in one of the previous versions about two years ago, I don't remember, may be 2.3.0, 2.3.1). Could it be a downloading error? Site vk.com doesn't allow to download mp3, it's necessary to install a special extension to browser.

jademan
Forum Crew
Posts: 1171
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Please select

Re: Error message when importing mp3-file

Post by jademan » Sat Apr 17, 2021 6:37 pm

юра00 wrote:
Sat Apr 17, 2021 5:12 pm
But that’s never been such a problem in the version Audacity 2.2.2 (in one of the previous versions about two years ago, I don't remember, may be 2.3.0, 2.3.1).
You are correct. :D Older versions of Audacity used to be more tolerant of mp3 encoding errors. But that caused other problems. In 2.4.2(?) file checking was tightened, although in 3.0.0 it has been eased back a little bit. It may be adjusted further in the future.....

steve
Site Admin
Posts: 80675
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Error message when importing mp3-file

Post by steve » Sat Apr 17, 2021 6:44 pm

юра00 wrote:
Sat Apr 17, 2021 5:12 pm
But that’s never been such a problem in the version Audacity 2.2.2 (in one of the previous versions about two years ago, I don't remember, may be 2.3.0, 2.3.1).
You're right (and I don't remember the exact version number either).

In old versions of Audacity, error checking was disabled in Audacity's MP3 importer. However, it was found that some malformed MP3s could cause serious problems, so somewhere around version 2.2.2 error checking was enabled.

Unfortunately we then discovered that malformed MP3s are rather common, and received numerous reports of MP3s failing to import.
In recent versions of Audacity the error checking has been toned down so that most MP3s will still import even if they contain small errors. It is currently being discussed whether the error checking can be reduced further, but we need to be careful prevent badly malformed MP3s from causing serious damage to a project. Turning off error checking entirely would be dangerous.


I've not tried it on Windows, but on Linux I was able to fix the MP3s with "mp3val".
(Mp3val is also available for Windows, but as I said, I've not tried it on Windows http://mp3val.sourceforge.net/)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Error message when importing mp3-file

Post by юра00 » Sat Apr 17, 2021 7:15 pm

No, it's not a solution. Mp3val refuses to import the file:
https://mega.dp.ua/ru/eN9m4ZxPsz
Though the file "Rio" (the first) it corrected. Can you further give the user a choice in preferences to turn off checking imported files? As it does mostly harm rather than good.

Post Reply