[Asterisk-video] can't hear amr audio

Sergio Garcia Murillo sergio.garcia at fontventa.com
Thu Jul 17 15:20:37 CDT 2008


Hi Klaus and Andrew,

I've just taken a quick look at the code, but I think that the code was 
there to be able to choose between the different codecs offered (without 
transcoding)
Now that we have support for amr in asterisk perhaps could be changed 
for something like ast_get_best_ codec or ast_codec_choose.

BR
Sergio


Klaus Darilion escribió:
> Andrew Buchanan wrote:
>   
>> Hi Klaus,
>>
>> Thanks for your reply.
>>
>> The line 
>> "audioFormat = sdp->audio->formats[i]->format;" (app_rtsp.c)
>> is never processed because the comparision
>> "if (sdp->audio->formats[i]->format & chan->nativeformats)" (app_rtsp.c)
>> fails.
>>     
>
> MAybe the bug is in this line. Actually it should work even if the sdp 
> does not contain a native format as Asterisk can do transcoding - I 
> think to do this the channels format has to be set to AMR (maybe with 
> ast_set_write_format()?)
>
> Can you try changing the code?
>
> regards
> klaus
>
>   
>> the value of format is 0x00002000
>> the value of nativeformats is 0x00580004
>> But the value written by 
>> "ast_set_write_format(chan, audioFormat | videoFormat);"
>> Is nonzero as videoformat has a value  0x00400000
>>
>> Andrew Buchanan
>>     
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-video mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-video
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-video/attachments/20080717/bf0564f9/attachment.htm 


More information about the asterisk-video mailing list