ima4 AIFF-C file of unknown origin decodes incorrectly in libsndfile #2
Closed
Description
ima4 AIFF-C file of unknown origin decodes incorrectly in libsndfile
Happens on Mac OSX 10.6 as well as on Win 7 x64 with the .dlls found on the mega-nerd site. I don't know the origin of this file other than I downloaded it from the internet some time ago when testing the AIFF-C importer we wrote for Adobe Audition.
Here is the file that shows the issue in libsndfile: http://dl.dropbox.com/u/24880982/pawhistoriestrinity.aifc.zip (~240 MB)
Here is the file decoded to a PCM WAV by Apple's afconvert
terminal command: http://dl.dropbox.com/u/24880982/pawhistoriestrinity.wav.zip (~890 MB)
The expectation is for libsndfile to be able to decode this file similar to how QuickTime and Apple's AudioToolbox framework can decode it.
output from sndfile-info
SoundStream:~ cvanwink$ sndfile-info /Users/cvanwink/Desktop/untitled\ folder/pawhistoriestrinity.aifc
Version : libsndfile-1.0.24
File : /Users/cvanwink/Desktop/untitled folder/pawhistoriestrinity.aifc
Length : 283401230
FORM : 283401222
AIFC
FVER : 4
COMM : 30
Sample Rate : 44100
Frames : 4167664
Channels : 2
Sample Size : 16
Encoding : ima4 => unknown
SSND : 283401160
Offset : 0
Block Size : 0
still need to check block count
Sample Rate : 44100
Frames : 266730496
Channels : 2
Format : 0x00020012
Sections : 1
Seekable : TRUE
Duration : 01:40:48.311
Output from OSX's terminal command afinfo
SoundStream:~ cvanwink$ afinfo /Users/cvanwink/Desktop/untitled\ folder/pawhistoriestrinity.aifc
File: /Users/cvanwink/Desktop/untitled folder/pawhistoriestrinity.aifc
File type ID: AIFC
Data format: 2 ch, 44100 Hz, 'ima4' (0x00000000) 0 bits/channel, 68 bytes/packet, 64 frames/packet, 0 bytes/frame
no channel layout.
estimated duration: 6048.310567 sec
audio bytes: 283401152
audio packets: 4167664
bit rate: 374850 bits per second
packet size upper bound: 68
audio data file offset: 78
optimized
Metadata
Assignees
Labels
No labels