- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 = ¶ms;
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;
}
{
pInfo->name = "G729";
if (handle == NULL) {
pInfo->params = ¶ms;
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!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
: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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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