Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

selecting channel while mp3 encoding

Dmitry_Z_1
Beginner
854 Views

Hello.

I have two RTP data streams ( PCM 8kHz mono ) and I want to record them into one stereo mp3 file using MP3Encoder. I want one stream to be a left channel and another stream to be a right channel. Now my settings for mp3 encoder are

m_mp3_params.stereo_mode = UMC_MPA_LR_STEREO;
m_mp3_params.mode = UMC_MPAENC_CBR;
m_mp3_params.m_info.audioInfo.m_iSampleFrequency = 8000;
m_mp3_params.m_info.audioInfo.m_iChannels = 2;
m_mp3_params.m_info.iBitrate = 16000;

and then I use GetFrame function to get regular mp3 encoded frame

status = m_mp3_encoder.GetFrame(&m_packet_data, &m_mp3_data_block)

but I don't understand how to specify channel? 

Now I have the same sound in both channels of recorded mp3 file.

0 Kudos
1 Reply
Jonghak_K_Intel
Employee
854 Views

Hi Dmitry,

 You might want to post Audio codec related question to Media sdk forum : https://software.intel.com/en-us/forums/intel-media-sdk

 Audio features from IPP has been deprecated and is not supported currently.

 

Thank you

0 Kudos
Reply