- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
My device delivers raw AAC frames. They are not packed into ATDS or MP4. Can I decode them using UMC::AACDecoder from IPP 5.2 ?
My device delivers raw AAC frames. They are not packed into ATDS or MP4. Can I decode them using UMC::AACDecoder from IPP 5.2 ?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
there is comment from our expert:
Intel IPPAAC decoder supports 3 packed formats ADIF, ADTS and MP4. For decoder initialization it is necessary to know sampling frequency and Audio Object Type so at least one frame (the first) should has header. If you know sampling frequency and Audio Object Type you can add one ADIF header to the first frame or ADTS header to all frames.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
I found the previous post on AAC on this forum and that solution worked for me. I couldn't understand it on first time, so I'll repeat codec initialization steps below :
MediaData *m_in;
AudioData *m_out;
...
AACDecoderParams cParams;
cParams.m_info_in.stream_type = AAC_MPEG4_STREAM;
...
m_pDecoder->Init( &cParams );
BYTE AudioSpecificConfig[2] = { 0x14, 0x10 }; // profile, sampling rate, channels
m_in->SetBufferPointer( AudioSpecificConfig, 2 );
m_in->SetDataSize( 2 );
m_pDecoder->GetFrame( m_in, m_out /*unused*/ ); // returns UMC_ERR_SYNC
If several frames are packed into single chunk decoder sources have to be modified as in previous post.
I found the previous post on AAC on this forum and that solution worked for me. I couldn't understand it on first time, so I'll repeat codec initialization steps below :
MediaData *m_in;
AudioData *m_out;
...
AACDecoderParams cParams;
cParams.m_info_in.stream_type = AAC_MPEG4_STREAM;
...
m_pDecoder->Init( &cParams );
BYTE AudioSpecificConfig[2] = { 0x14, 0x10 }; // profile, sampling rate, channels
m_in->SetBufferPointer( AudioSpecificConfig, 2 );
m_in->SetDataSize( 2 );
m_pDecoder->GetFrame( m_in, m_out /*unused*/ ); // returns UMC_ERR_SYNC
If several frames are packed into single chunk decoder sources have to be modified as in previous post.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page