Amr_nb - ffmpeg, Amr-nb, 9 amr_nb - ffmpeg – Google Flix Engine Linux Reference Manual User Manual

Page 36: 1 detailed description, Defines

Advertising
background image

30

Flix Engine Linux Module Documentation

5.9

AMR_NB - FFmpeg

5.9.1

Detailed Description

AMR narrowband encoder.

Valid bitrates:

AMR narrowband only supports a fixed set of bitrates:

codec mode | kbps

===================

MR475

| 4.75

MR515

| 5.15

MR59

| 5.90

MR67

| 6.70

MR74

| 7.40

MR795

| 7.95

MR102

| 10.2

MR122

| 12.2

FE2_AMR_BITRATE

will be adjusted as follows, if necessary:

FE2_AMR_BITRATE = 0.0

<= FE2_AMR_BITRATE <

5.0,

MR475

5.0

<= FE2_AMR_BITRATE <

5.9,

MR515

5.9

<= FE2_AMR_BITRATE <

6.7,

MR59

6.7

<= FE2_AMR_BITRATE <= 7.0,

MR67

7.0

<

FE2_AMR_BITRATE <

7.95, MR74

7.95 <= FE2_AMR_BITRATE <

10.0, MR795

10.0 <= FE2_AMR_BITRATE <

12.0, MR102

12.0 <= FE2_AMR_BITRATE,

MR122

Attention:

In addition to the bitrate restrictions above, the sample rate MUST be 8000Hz and the number of
channels MUST be 1.

See also:

Resample

Example Usage:

sc = Flix2_AddCodec(&codec, flix, FE2_CODEC_AMR_NB);

// Use 12.2kbps

if(sc == ON2_OK)

sc = Flix2_CodecSetParam(codec, FE2_AMR_BITRATE, 12.2);

Additional References:

3GPP homepage

AMR-NB Specification detail

FFmpeg project homepage

Defines

• #define

FE2_CODEC_AMR_NB

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising