AIFF files will not play on iPod, will on iTunes

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity 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.
steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: AIFF files will not play on iPod, will on iTunes

Post by steve » Mon Jul 29, 2013 5:45 am

audio_pete wrote:It would be nicer if it fixed the file for you,
That's jumping to the assumption that the file is "broken" in some way, which at this stage I'd say is far from certain.

Apple support say that the error -39 message indicates that the file may be corrupt, but in this case the file data is clearly not corrupt because the file opens correctly in other applications.

Also, the fact that searching Google brings up lots of issues with AIFF files from other well known applications (such as Logic, ProTools, Ableton Live) strongly suggests that the issue is not specific to Audacity.

Try this file, it's just a 10 second beep.
Does it work in iTunes?
Does it work in Peak LE?
Does it work on your iPod?
test.aiff
(861.41 KiB) Downloaded 57 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: AIFF files will not play on iPod, will on iTunes

Post by Gale Andrews » Mon Jul 29, 2013 12:00 pm

steve wrote:Do we have any direct evidence that Audacity is writing AIFF files that are not compliant to the file specification?
As stated before, if Audacity exports an iTunes-created AIFF file containing NORM and PGAP data, it duplicates the Normalisation information towards the top of the file (but removing the "NORM" designation from both instances) and removes the Gapless (PGAP) information entirely.

AIFF's saved by Audacity or most non-Apple programs will not be identical to those saved by iTunes because of this iTunes-specific metadata.

@audio_pete, I don't think I ever got an answer to this question - if you export from Audacity as AIFF without metadata, then add the metadata in iTunes, does iPod play the files?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: AIFF files will not play on iPod, will on iTunes

Post by Gale Andrews » Mon Jul 29, 2013 12:09 pm

audio_pete wrote:I have attached what Peak LE says about your files.
error 39.png
error 39.png (585.98 KiB) Viewed 1506 times
Generate a minute of tone or record a minute of audio in Audacity. File > Export as AIFF, do not add metadata. Does that give error 39 in Peak?

Now select the first 30 seconds of that audio and File > Export Selection as AIFF, do not add metadata. Does that give error 39 in Peak?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: AIFF files will not play on iPod, will on iTunes

Post by steve » Mon Jul 29, 2013 12:34 pm

Gale Andrews wrote: As stated before, if Audacity exports an iTunes-created AIFF file containing NORM and PGAP data, it duplicates the Normalisation information towards the top of the file (but removing the "NORM" designation from both instances) and removes the Gapless (PGAP) information entirely.
I don't see any reference to either PGAP or NORM in AIFF-1.3 specification.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: AIFF files will not play on iPod, will on iTunes

Post by Gale Andrews » Mon Jul 29, 2013 2:06 pm

steve wrote:I don't see any reference to either PGAP or NORM in AIFF-1.3 specification.
That's why I called it iTunes-specific metadata. My supposition is that if that is missing, it may it make it more difficult for iPod to play the files.

Currently I cannot replicate Audacity removing PGAP on Windows, but it was doing it recently on Mac. I'll have to test more.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: AIFF files will not play on iPod, will on iTunes

Post by steve » Mon Jul 29, 2013 2:25 pm

Gale Andrews wrote:That's why I called it iTunes-specific metadata. My supposition is that if that is missing, it may it make it more difficult for iPod to play the files.
I don't have iTunes or any iTunes files so I need to ask.
Is the "iTunes-specific metadata" in one of the standard chunks, or is it an additional chunk outside of the AIFF specification?
In particular, where are these "NORM" and "PGAP" values?
Is Audacity moving the order of the chunks or is the NORM data moved within the chunk to which it was written by iTunes?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: AIFF files will not play on iPod, will on iTunes

Post by Gale Andrews » Mon Jul 29, 2013 8:33 pm

steve wrote:Is the "iTunes-specific metadata" in one of the standard chunks, or is it an additional chunk outside of the AIFF specification?
In particular, where are these "NORM" and "PGAP" values?
The "NORM" is called iTunNORM and like iTunPGAP, it's an ID3 COM comment tag. In AIFF as written by iTunes, these tags are with the other ID3 tags, at the end of the file in the SSND chunk.

iTunPGAP just refers to gapless or not as far as I know.

Here is some information on iTunNORM http://id3.org/iTunes%20Normalization%20settings .
steve wrote:Is Audacity moving the order of the chunks or is the NORM data moved within the chunk to which it was written by iTunes?
When I saw it happening, iTunNORM was duplicated near the start of SSND but the tag descriptions "iTunNORM" were removed from both. The iTunPGAP description and value was removed (perhaps the entire tag was removed - I don't recall).

I've attached a short AIFF, created by File > Export Selection in Audacity, then saved in iTunes on Windows.


Gale
Attachments
amphetamine.aif
File that was imported into Audacity with iTunes metadata, Export Selection, then converted to AIFF in iTunes to restore iTunes metadata, including iTunPGAP and iTunNORM
(407.54 KiB) Downloaded 52 times
Last edited by Gale Andrews on Fri Apr 24, 2015 4:16 pm, edited 3 times in total.
Reason: Renamed the test amphetamine file with no spaces or parentheses
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

audio_pete
Posts: 215
Joined: Fri Jul 26, 2013 1:03 am
Operating System: Please select

Re: AIFF files will not play on iPod, will on iTunes

Post by audio_pete » Tue Jul 30, 2013 1:19 am

I will run requested tests when I get time

You can think what you want
I KNOW Audacity does NOT write out a proper aiff file.

I began with a personal project to transfer 3 cassette tapes to my iPod.
I completed part of that task yesterday when I moved Tommy by the Who to my iPod.
Most of the work was done in Audacity, the final aiff file came from Amadeus.
Today, I completed Crusin' with the Classics vol 6 using the same workflow.
Seems a shame that Audacity does all the work but Amadeus gets the final credit.
That just leaves the Bluegrass tape which I will complete as soon as I get time.

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

Re: AIFF files will not play on iPod, will on iTunes

Post by waxcylinder » Tue Jul 30, 2013 8:04 am

audio_pete wrote:I began with a personal project to transfer 3 cassette tapes to my iPod.
I completed part of that task yesterday when I moved Tommy by the Who to my iPod.
Are you really sure it's worth the effort - you do realize that you can buy the CD of Tommy quite cheaply these days (Amazon US $8.49, Amazon UK £5.94) - especially as your source material is inherently noisy tape :?
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: AIFF files will not play on iPod, will on iTunes

Post by Gale Andrews » Tue Jul 30, 2013 12:15 pm

audio_pete wrote:You can think what you want
I KNOW Audacity does NOT write out a proper aiff file.
We do not know that yet. I think by "proper" you are talking about an AIFF file that an iPod is capable of playing.

It's quite clear that different iPods behave differently on battery or not, with different AIFF files, and with different versions of iTunes.

I know you have tried to help but we do not have clear steps to reproduce anything at the moment.

Please can you answer these four questions - shouldn't take too long.

1) If you record, then export multiple from Audacity as AIFF without metadata, then add the metadata in iTunes, does iPod play the files?

2) If iPod plays the files in 1), is it playing them in the correct order - if not, exactly what do you have to do in iTunes to make that happen?

3) Can you play 01 Amphetamine (2001 Rework).aif from http://forum.audacityteam.org/viewtopic ... 81#p218881 .

4) What is the serial number of the iPod - can you identify it here please https://en.wikipedia.org/wiki/IPod#Models_and_features as to what generation it is ?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply