Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: afconvert creating files that will not play



I can reproduce this problem (QT thinks its a bad file) by using Tink:
% afconvert -f adts -v /System/Library/Sounds/Tink.aiff /tmp/out.aac
...
% afinfo /tmp/out.aac
File: /tmp/out.aac
File type ID: adts
Data format: 2 ch, 22050 Hz, 'aac ' (0x00000000) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame
Channel layout: Stereo (L R)
estimated duration: 0.139 sec
audio bytes: 351
audio packets: 3
bit rate: 20155 bits per second
packet size upper bound: 231
audio data file offset: 0
optimized
format list:
[ 0] format: 2 ch, 22050 Hz, 'aac ' (0x00000000) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame
Channel layout: Stereo (L R)
----


and using afplay, I can play it:

% afplay /tmp/out.aac

So, I think this is a bug in QT (as the file is fine). Can you verify the above steps with your file and then file a bug report (http://bugreporter.apple.com )

Thanks

Bill

On Jan 24, 2008, at 11:20 AM, David Brennan wrote:

Hi,

I am using the sample app afconvert to convert aiff to AAC. It seems
to work for large files, but when I try it on small files, the result
will not play.

Here is how I call afconvert

afconvert -f adts -v /Users/david/Desktop/small.aiff
/Users/david/Desktop/small.aac

This is it's output

Input file: small.aiff, 18297 frames
Formats:
 Input file     1 ch,  22050 Hz, 'lpcm' (0x0000000E) 16-bit
big-endian signed integer
 Output file    1 ch,  22050 Hz, 'aac ' (0x00000000) 0 bits/channel,
0 bytes/packet, 1024 frames/packet, 0 bytes/frame
                Mono
 Output client  1 ch,  22050 Hz, 'lpcm' (0x0000000E) 16-bit
big-endian signed integer
AudioConverter 0x810a34 [0x124420]:
 PCMConverter 0x128640
   Input:    1 ch,  22050 Hz, 'lpcm' (0x0000000E) 16-bit big-endian
signed integer
   Output:   1 ch,  22050 Hz, 'lpcm' (0x0000000C) 16-bit
little-endian signed integer
 CodecConverter 0x1286c0
   Input:    1 ch,  22050 Hz, 'lpcm' (0x0000000C) 16-bit
little-endian signed integer
   Output:   1 ch,  22050 Hz, 'aac ' (0x00000000) 0 bits/channel, 0
bytes/packet, 1024 frames/packet, 0 bytes/frame
   Input layout tag: 640001
   Output layout tag: 640001
Output file: small.aac, 20480 frames


And when I try to play the file with QuickTime Player I get an error message saying: The movie could not be opened. The file is not a movie file.

What am I doing wrong?

Kind regards,
Dave.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >afconvert creating files that will not play (From: "David Brennan" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.