Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

HELP: G729 encoder

hmaple
Beginner
461 Views
Hi everyone,
I am using IPP4.1.
I want to use the sample G729 encoder to convert 8K, 16 bits, mono PCM file into G729 format. But the sample program doesn't work well. The result file can't be played out.
I found the following parameterinitialization function. I don't know how to modify them for my case. And I don't know what elseI should change.
uscg729i.c:
static USC_Status GetInfo(USC_Handle handle, USC_CodecInfo *pInfo)
{
pInfo->name = "G729";
if (handle == NULL) {
pInfo->params = &params;
pInfo->pcmType = &pcmType;
pInfo->params->modes.bitrate = G729_CODEC;
pInfo->params->modes.truncate = 0;
pInfo->params->direction = 0;
pInfo->params->modes.vad = G729Encode_VAD_Disabled;
}
pInfo->pcmType->sample_frequency = 8000;
pInfo->pcmType->bitPerSample = 8;
pInfo->maxbitsize = BITSTREAM_SIZE;
pInfo->params->modes.hpf = 0;
pInfo->params->modes.pf = 0;
pInfo->params->law = 0;
return USC_NoError;
}
Who can help me? Thank you in advance!
0 Kudos
2 Replies
hmaple
Beginner
461 Views

:smileyvery-happy:

I got the answer!

The sample program works well. But every bit in the output file is represented as a 16-bit int.

For reference:

http://softwareforums.intel.com/ids/board/message?board.id=IPP&message.id=1404

Thanks!

0 Kudos
Vyacheslav_Baranniko
New Contributor II
461 Views

You can also try latest IPP 5.0library and new USC speech-coding samples. The USC codec now supports all coding specs enabled in IPP,able to compress WAV inputand produces theoutput file inIntel in-homecompressed format (RIFF compatible) used uniformly across all specs.

Vyacheslav

0 Kudos
Reply