AMR_NB - FFmpeg
[Audio Codecs]


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:


Defines

#define FE2_CODEC_AMR_NB
 AMR Narrowband. Codec name for use with Flix2_AddCodec().
#define FE2_AMR_BITRATE
 Alias for FE2_CODECPARAM_BITRATE.

Define Documentation

#define FE2_AMR_BITRATE

Alias for FE2_CODECPARAM_BITRATE.

Codec parameter for stream bitrate.

Compressed stream bitrate in kbits/sec.

Note:
Default: 12.2kbps

Definition at line 80 of file amr.h.

#define FE2_CODEC_AMR_NB

AMR Narrowband. Codec name for use with Flix2_AddCodec().

Definition at line 73 of file amr.h.


On2 Technologies, Inc Flix Engine Linux documentation, generated on Tue Nov 2 16:53:00 2010 by doxygen 1.5.5