Segmentation Fault when converting 24bit aif to alac with afconvert
Segmentation Fault when converting 24bit aif to alac with afconvert
- Subject: Segmentation Fault when converting 24bit aif to alac with afconvert
- From: Robert Martin <email@hidden>
- Date: Fri, 6 Feb 2009 12:14:45 +0100
I'm sure I'm missing something simple, but I can't seem to convert
24bit AIF files to 'alac' using afconvert (the installed version of
the tool on 10.5.6).
If I convert the file to 16bit, I have no problems.
I'm using the command: afconvert -d alac <path> <newPath>
I keep getting 'Segmentation Fault' errors, is there anything I am
doing wrong?
Thanks, Rob
-------------------
Here's the afinfo on the file:
File type ID: AIFF
Data format: 2 ch, 44100 Hz, 'lpcm' (0x0000000E) 24-bit big-
endian signed integer
no channel layout.
estimated duration: 739.169 sec
audio bytes: 195584106
audio packets: 32597351
bit rate: 2116800 bits per second
packet size upper bound: 6
audio data file offset: 106
not optimized
0 markers; SMPTE time type 0
-----------------------
Here is the backtrace:
OS Version: Mac OS X 10.5.6 (9G55)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000005ab000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0xffff08a0 __memcpy + 256
(cpu_capabilities.h:246)
1 ....audio.toolbox.AudioToolbox 0x958f742c
CABufferList::AllocateBuffersAndCopyFrom(unsigned long, CABufferList*,
CABufferList*) + 396
2 ....audio.toolbox.AudioToolbox 0x9589bc97
AudioConverterChain::FillBufferFromInputProc(unsigned long*,
CABufferList*) + 167
3 ....audio.toolbox.AudioToolbox 0x9589bbe4
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&,
CABufferList const*&) + 212
4 ....audio.toolbox.AudioToolbox 0x9589ba6d
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned
long&, AudioStreamPacketDescription*) + 125
5 ....audio.toolbox.AudioToolbox 0x9589b7dc
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&,
AudioStreamPacketDescription*) + 236
6 ....audio.toolbox.AudioToolbox 0x9589bbb1
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&,
CABufferList const*&) + 161
7 ....audio.toolbox.AudioToolbox 0x958a75c2
CodecConverter::CallInputProc(unsigned long&) + 242
8 ....audio.toolbox.AudioToolbox 0x9590a210
CodecConverter::EncoderFillBuffer(unsigned long&, AudioBufferList&,
AudioStreamPacketDescription*) + 1664
9 ....audio.toolbox.AudioToolbox 0x9589b964
AudioConverterChain::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*) + 100
10 ....audio.toolbox.AudioToolbox 0x9589b7dc
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&,
AudioStreamPacketDescription*) + 236
11 ....audio.toolbox.AudioToolbox 0x958b2b73
AudioConverterFillComplexBuffer + 275
12 ....audio.toolbox.AudioToolbox 0x9593c459
ExtAudioFile::WritePacketsFromCallback(long (*)(OpaqueAudioConverter*,
unsigned long*, AudioBufferList*, AudioStreamPacketDescription**,
void*), void*) + 121
13 ....audio.toolbox.AudioToolbox 0x9593c6c9
ExtAudioFile::FlushEncoder() + 57
14 ....audio.toolbox.AudioToolbox 0x9593d0b9 ExtAudioFile::Close() +
537
15 ....audio.toolbox.AudioToolbox 0x9593d208
ExtAudioFile::~ExtAudioFile() + 40
16 ....audio.toolbox.AudioToolbox 0x9592fa38
XExtAudioFile::~XExtAudioFile() + 72
17 ....audio.toolbox.AudioToolbox 0x9592f0c5 ExtAudioFileDispose + 37
18 afconvert 0x00004fec
CAAudioFileConverter
::ConvertFile(CAAudioFileConverter::ConversionParameters const&) + 4172
19 afconvert 0x00002b4d AFConvertTool::main(int,
char const**) + 2909
20 afconvert 0x00008630 main + 62
21 afconvert 0x00001eda start + 54
_______________________________________________
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