Audio snippets corrupting ID3 tags

Feedback and Reviews for Audacity 2.x
Forum rules
This board is ONLY for general feedback and discussion about Audacity 2.X.

If you require help, or think you have found a "bug", please post on the forum board relevant to your operating system.
Windows
Mac OS X
GNU/Linux and Unix-like
vtor67
Posts: 5
Joined: Tue Apr 17, 2018 12:39 am
Operating System: Windows 10

Audio snippets corrupting ID3 tags

Post by vtor67 » Tue Apr 17, 2018 1:18 am

Hey,

I've come across a weird bug when trying to export certain songs. I use audacity to rip my vinyl records, and today, I noticed that the beginning and/or end of certain songs was preventing Audacity from properly creating ID3 tags in the exported audio file. When I exported the audio file, the tags were missing, and I would get errors if I tried to edit the ID3 tags. If I deleted a couple thousand samples off the beginning or end of the affected files, the ID3 tags would be created properly. Deleting just one sample off either end would not work. In either case, as far as I could tell, the actual audio data exported properly. A few notes:

1) I was only able to replicate this issue on projects with mono audio at 96khz.
2) The issue only happened when trying to export 24-bit wav files.

I created a video here: https://www.youtube.com/watch?v=2vB0lzz6ThY

I would upload the affected projects, but they contain copyrighted audio.

vtor67
Posts: 5
Joined: Tue Apr 17, 2018 12:39 am
Operating System: Windows 10

Re: Audio snippets corrupting ID3 tags

Post by vtor67 » Tue Apr 17, 2018 1:55 pm

A few other notes:

1) This is happening on version 2.2.2 on both macOS and Windows.
2) Copying the audio to a blank project and re-exporting did NOT fix the issue

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

Re: Audio snippets corrupting ID3 tags

Post by steve » Tue Apr 17, 2018 4:07 pm

Try this:
1) Do whatever steps are necessary to produce the problem
2) Close Audacity
3) Restart Audacity
4) Look in the Metadata Editor and check that the metadata is empty
5) Import the problem file.
6) Open the Metadata Editor

At step 6, is the metadata present or absent?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

vtor67
Posts: 5
Joined: Tue Apr 17, 2018 12:39 am
Operating System: Windows 10

Re: Audio snippets corrupting ID3 tags

Post by vtor67 » Tue Apr 17, 2018 4:33 pm

At step 6, the metadata is present.

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

Re: Audio snippets corrupting ID3 tags

Post by steve » Tue Apr 17, 2018 4:58 pm

OK, and I'm guessing that if you right click on the file (in Windows), select "Properties" and then "details", you will see most of the metadata (last time I looked, Windows could not read all of the tags, but got most of them).

I also expect that if you use a good audio player (such as foobar2000), you will see all of the tags that Audacity writes.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

vtor67
Posts: 5
Joined: Tue Apr 17, 2018 12:39 am
Operating System: Windows 10

Re: Audio snippets corrupting ID3 tags

Post by vtor67 » Wed Apr 18, 2018 2:44 am

Negative on all counts. Metadata does not appear in Windows Properties or foobar2000 (which is what I was using when I first noticed the issue)

Same file loaded in Windows Properties, foobar2000, and Audacity: https://imgur.com/a/aANgG

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

Re: Audio snippets corrupting ID3 tags

Post by steve » Wed Apr 18, 2018 10:25 am

Strange,
I can make the problem happen with Groove Music (not surprising because Google shows that lots of people have problems with metadata in Groove Music).
I don't see the problem in either "Properties" or Foobar2000.

Are you able to find step by step instructions to reliably reproduce this problem.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

vtor67
Posts: 5
Joined: Tue Apr 17, 2018 12:39 am
Operating System: Windows 10

Re: Audio snippets corrupting ID3 tags

Post by vtor67 » Wed Apr 18, 2018 3:45 pm

I'm not sure how to reliably reproduce the specific audio that causes this issue -- in my few years I've been digitizing records, I just came across this issue for the first time. However, I can reliably reproduce the missing metadata issue with the affected audio. All you have to do is export the affected audio as a 24-bit/96khz wav. The audio export will succeed, but without metadata that any audio player can read.

Can I PM you the audio to see if that would help diagnose the issue?

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

Re: Audio snippets corrupting ID3 tags

Post by steve » Wed Apr 18, 2018 3:55 pm

vtor67 wrote:Can I PM you the audio to see if that would help diagnose the issue?
Please do.
The forum will probably not accept a large attachment, but you could perhaps upload the file to dropbox, sendspace or similar, and PM the link to me.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Audio snippets corrupting ID3 tags

Post by steve » Thu Apr 19, 2018 2:16 pm

Thanks, got it.

On Linux, (my usual machine), the tags show up correctly in all applications that I've tried (Audacity, Thunar, MediaInfo, Kid3 and VLC).
On Windows 10, the tags show correctly in Audacity, MediaInfo and MP3Tag, but not File Explorer, Groove Music or Foobar2000.

I don't see anything "wrong" with the tags in that file. My guess at the moment is that the applications that can't read the tags on Windows are all using the same tag library, and that it expects there to a specific byte alignment, which is sometimes not present for 24-bit (3 bytes per sample) WAV files. Diagnosing the problem is difficult because the Microsoft WAV format specification does not specify metadata (for a long time tags in WAV files were not supported at all on Windows).

I'll experiment further when I'm next on Windows.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply