- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
: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!
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite