Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6629 Discussions

AAC encoder -- Seg Fault on second time GetFrame is called.

ppmenlove
Beginner
139 Views
I am using IPP sample code 6.1.0.047. I compliled all the libraries and use them in my project.
I am running on linux Ubuntu.

Here are my Aac Params:

aacParams.m_info_in.sample_frequency = 48000;
aacParams.m_info_in.channels = 2;
aacParams.m_info_in.bitPerSample = 16;

aacParams.numThreads = iThreads;
aacParams.level = NULL;
aacParams.audioObjectType = AOT_AAC_LC;
aacParams.auxAudioObjectType = AOT_UNDEF;

aacParams.stereo_mode = UMC_AAC_LR_STEREO;
aacParams.ns_mode = 1;
aacParams.outputFormat = UMC_AAC_ADTS;

aacParams.m_info_out.bitrate = bRate;
aacParams.m_info_out.stream_type = UMC::AAC_MPEG4_STREAM;
aacParams.m_info_out.stream_subtype = UMC::AAC_LC_PROFILE;

the ecoder Initializes OK, encodes the first suggested Input size (4096) ok. it returns 19-20 bytes.
I reset DataIn and DataOut for next 4096 bytes and it get a Segmentation Fault in the GetFrame() call.

I have changed the parameter settings, have changed the buffer sizes to be to big, I don't know what to try next.
I have another encoder H264 which works just fine, the code is very similar to the aac encoder.

btw- I did have this working fine in windows, not sure what changed, my code, IPP libraries, sample code, ????

has anyone run into the same problem? Any suggestions?

Thanks for your time
Phil


0 Kudos
2 Replies
ppmenlove
Beginner
139 Views
I finally got this thing to work. I used aac_enc_int library and include files instead of aac_enc library and includes.
Not sure why one works and the other does not..

Can anyone tell me what the difference is?
PaulF_IntelCorp
Employee
139 Views
Hello Phil,

I've submitted your question to engineering. Will post a reply when it becomes available.

Regards,

Paul

Reply