• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: afconvert producing 4K stubs in Leopard, but converting properly in Tiger...Need a hand!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: afconvert producing 4K stubs in Leopard, but converting properly in Tiger...Need a hand!


  • Subject: Re: afconvert producing 4K stubs in Leopard, but converting properly in Tiger...Need a hand!
  • From: Joe Holt <email@hidden>
  • Date: Fri, 29 Aug 2008 09:42:38 -0400

A few weeks ago Rob Martin asked about an afconvert encoding problem he was having. I'm seeing the same problem. Some AIF files generate empty output files. Rob said that this is changed behavior in Leopard, that the same audio source files encode fine on Tiger. I haven't been able to test this as I don't have any Tiger machines left. It's definitely annoying. Here's what verbose afconvert reports:

$/usr/bin/afconvert -v -f m4af -d 'aac ' -s 3 -u vbrq 64 input.aif output.m4a
Input file: input.aif, 0 frames
strategy = 3
user property 'qrbv' = 64
Formats:
  Input file     2 ch,  48000 Hz, 'lpcm' (0x0000000E) 16-bit big-endian signed integer
  Output file    2 ch,  32000 Hz, 'aac ' (0x00000000) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame
                 Stereo
  Output client  2 ch,  48000 Hz, 'lpcm' (0x0000000E) 16-bit big-endian signed integer
AudioConverter 0x814a34 [0x11b520]:
  PCMConverter 0x120570
    Input:    2 ch,  48000 Hz, 'lpcm' (0x0000000E) 16-bit big-endian signed integer
    Output:   2 ch,  48000 Hz, 'lpcm' (0x0000000C) 16-bit little-endian signed integer
  CodecConverter 0x1205f0
    Input:    2 ch,  48000 Hz, 'lpcm' (0x0000000C) 16-bit little-endian signed integer
    Output:   2 ch,  32000 Hz, 'aac ' (0x00000000) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame
    Input layout tag: 650002
    Output layout tag: 650002
Output file: output.m4a, 0 frames

It's curious that it thinks the input file has 0 frames. That would explain the empty output file!

The same file run through LAME is encoded to mp3 properly. But it's interesting that FLAC complains and generates no output file:

$ /usr/bin/flac --best -s -f -o output.flac input.aif
input.aif: ERROR: got partial sample

Makes me think there's something "off" about the AIF file that the Tiger version of afconvert is able to ignore or work around, but that Leopard is tripping over.

The AIF file was generated in iTunes from a test mp3. I can't find any AIF analysis tools so I'm stuck with wondering what's up with these particular files. Any help would be appreciated. I'm building a transcoder farm for an audio company with mixed Mac and Linux servers. I'd rather not downgrade to Tiger.

Joe

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: afconvert producing 4K stubs in Leopard, but converting properly in Tiger...Need a hand!
      • From: Robert Martin <email@hidden>
  • Prev by Date: Re: MP3 Packet Description Problem
  • Next by Date: Re: afconvert producing 4K stubs in Leopard, but converting properly in Tiger...Need a hand!
  • Previous by thread: Re: 10.2.8 compatible Audio Unit compilation on Leopard.
  • Next by thread: Re: afconvert producing 4K stubs in Leopard, but converting properly in Tiger...Need a hand!
  • Index(es):
    • Date
    • Thread