|
|
|
|
@ -771,14 +771,95 @@ static struct codec_def_s __codec_defs[] = {
|
|
|
|
|
.format_cmp = format_cmp_ignore,
|
|
|
|
|
.codec_type = &codec_type_cn,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "G726-16",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_ADPCM_G726,
|
|
|
|
|
.default_clockrate = 8000,
|
|
|
|
|
.default_channels = 1,
|
|
|
|
|
.default_ptime = 20,
|
|
|
|
|
.minimum_ptime = 20,
|
|
|
|
|
.default_bitrate = 16000,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
.dtx_methods = {
|
|
|
|
|
[DTX_SILENCE] = &dtx_method_silence,
|
|
|
|
|
[DTX_CN] = &dtx_method_cn,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "G726-24",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_ADPCM_G726,
|
|
|
|
|
.default_clockrate = 8000,
|
|
|
|
|
.default_channels = 1,
|
|
|
|
|
.default_ptime = 20,
|
|
|
|
|
.minimum_ptime = 20,
|
|
|
|
|
.default_bitrate = 24000,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
.dtx_methods = {
|
|
|
|
|
[DTX_SILENCE] = &dtx_method_silence,
|
|
|
|
|
[DTX_CN] = &dtx_method_cn,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "G726-32",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_ADPCM_G726,
|
|
|
|
|
.default_clockrate = 8000,
|
|
|
|
|
.default_channels = 1,
|
|
|
|
|
.default_ptime = 20,
|
|
|
|
|
.minimum_ptime = 20,
|
|
|
|
|
.default_bitrate = 32000,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
.dtx_methods = {
|
|
|
|
|
[DTX_SILENCE] = &dtx_method_silence,
|
|
|
|
|
[DTX_CN] = &dtx_method_cn,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "G726-40",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_ADPCM_G726,
|
|
|
|
|
.default_clockrate = 8000,
|
|
|
|
|
.default_channels = 1,
|
|
|
|
|
.default_ptime = 20,
|
|
|
|
|
.minimum_ptime = 20,
|
|
|
|
|
.default_bitrate = 40000,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
.dtx_methods = {
|
|
|
|
|
[DTX_SILENCE] = &dtx_method_silence,
|
|
|
|
|
[DTX_CN] = &dtx_method_cn,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "L16",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_PCM_S16BE,
|
|
|
|
|
.default_clockrate = 44100,
|
|
|
|
|
.default_channels = 1,
|
|
|
|
|
.default_ptime = 20,
|
|
|
|
|
.minimum_ptime = 20,
|
|
|
|
|
.bits_per_sample = 16,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "X-L16",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_PCM_S16LE,
|
|
|
|
|
.default_clockrate = 44100,
|
|
|
|
|
.default_channels = 1,
|
|
|
|
|
.default_ptime = 20,
|
|
|
|
|
.minimum_ptime = 20,
|
|
|
|
|
.bits_per_sample = 16,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
},
|
|
|
|
|
// for file reading and writing
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "PCM-S16LE",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_PCM_S16LE,
|
|
|
|
|
.packetizer = packetizer_passthrough,
|
|
|
|
|
.media_type = MT_AUDIO,
|
|
|
|
|
.codec_type = &codec_type_avcodec,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.rtpname = "PCM-U8",
|
|
|
|
|
.avcodec_id = AV_CODEC_ID_PCM_U8,
|
|
|
|
|
|