Hi,
we have implemented most of the infrastructure to decode audio, but the last open issue is configuring the Transcoder. When we try to open it after configuration, we get the following error codes:
open transcoder1: Unsupported format (facility:5 code:7)
Using the following error function:
void AvBlockPoc::printError(const wchar_t* action, const primo::avblocks::ErrorInfo* e)
{
if (action)
{
wcout << action << L": ";
}
if (ErrorFacility::Success == e->facility())
{
wcout << L"Success" << endl;
return;
}
// AVBlocks only defines primo::ustring
#ifdef __linux__
wcout << ustring( e->message() ) << L" (facility:" << e->facility() << L" code:" << e->code() << L")" << endl;
#else
wcout << e->message() << L" (facility:" << e->facility() << L" code:" << e->code() << L")" << endl;
#endif
}
My question: how should we configure the transcoder when we have as input:
- G726 ADPCM,
- a sample rate of 8000
- a bitRate of 32000
- 1 channel
- signed (likely, not entirely sure yet).
And as output:- PCM
- with the same sampleRate (so 8000)
- 16 bits per sample,
- little-endian,
- 1 channel,
- signed.
I have attached our approached, simplified from the code, so there might be small typing mistakes, in simplification.txt.
Greetings,
Sander Borsboom