[Asterisk-video] mp4save file format

Borja SIXTO borja.sixto at i6net.com
Fri Jul 25 07:58:26 CDT 2008


Hi,

First have you patch your new Asterisk with the AMR support ?

I have propose to force the AMR recording with the 3GP file extension.
I have made a patch for that proposed in this forum.

3GP -> Force AMR recording.
MP4 -> Authorize linear encoding codecs

Extract of the app_mp4.c code source :

    /* Lock module */
    u = ast_module_user_add(chan);

       int length = strlen(data);
       if (!strcmp(&data[length - 4], ".3gp"))
       {
     if (ast_set_read_format(chan, AST_FORMAT_AMRNB))
        ast_log(LOG_WARNING, "mp4_save: Unable to set read format to 
AMRNB!\n");
       }
       else
       {
     if (ast_set_read_format(chan, 
AST_FORMAT_ULAW|AST_FORMAT_ALAW|AST_FORMAT_AMRNB))
        ast_log(LOG_WARNING, "mp4_save: Unable to set read format to 
ULAW|ALAW|AMRNB!\n");
       }    

    /* Send video update */
    ast_indicate(chan, AST_CONTROL_VIDUPDATE);

Regards,


Borja

Rene van Weert a écrit :
> Hey everyone,
>  
> I just installed a new machine with the fontventa applications on 
> Asterisk 1.4.18.1 <http://1.4.18.1> (rev 222).
> On my other machine I have rev 210 running on Asterisk 1.4.17 and 
> mp4save would record in h263/amr file format.
> With the new machine however it records the sound into ulaw instead of 
> amr. Is there a way to change this?
>  
> Now ->
> Track   Type    Info
> 1       video   H.263, 19.915 secs, 39 kbps, 176x144 @ 9.389907 fps
> 2       hint    Payload H263-1998 for track 1
> 3       audio   G.711 uLaw, 19.940 secs, 64 kbps, 8000 Hz
> 4       hint    Payload PCMU for track 3
> Before->
> Track   Type    Info
> 1       video   H.263, 10.210 secs, 43 kbps, 176x144 @ 9.794319 fps
> 2       hint    Payload H263-2000 for track 1
> 3       audio   AMR, 10.320 secs, 13 kbps, 8000 Hz
> 4       hint    Payload AMR for track 3
>  
> Thanks in advance!
>  
> With kind regards,
>  
> Rene van Weert
> ------------------------------------------------------------------------
>
> _______________________________________________
> --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



More information about the asterisk-video mailing list