<div dir="ltr"><div>Hey Borja,</div>
<div> </div>
<div>I have patched with AMR. After applying your patch (below) and using 3gp as extension the audio recording is now saved as AMR.</div>
<div>Thanks a lot.</div>
<div> </div>
<div>Have a nice weekend!</div>
<div> </div>
<div>Rene<br><br></div>
<div class="gmail_quote">On Fri, Jul 25, 2008 at 2:58 PM, Borja SIXTO <<a href="mailto:borja.sixto@i6net.com">borja.sixto@i6net.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>First have you patch your new Asterisk with the AMR support ?<br><br>I have propose to force the AMR recording with the 3GP file extension.<br>
I have made a patch for that proposed in this forum.<br><br>3GP -> Force AMR recording.<br>MP4 -> Authorize linear encoding codecs<br><br>Extract of the app_mp4.c code source :<br><br> /* Lock module */<br> u = ast_module_user_add(chan);<br>
<br> int length = strlen(data);<br> if (!strcmp(&data[length - 4], ".3gp"))<br> {<br> if (ast_set_read_format(chan, AST_FORMAT_AMRNB))<br> ast_log(LOG_WARNING, "mp4_save: Unable to set read format to<br>
AMRNB!\n");<br> }<br> else<br> {<br> if (ast_set_read_format(chan,<br>AST_FORMAT_ULAW|AST_FORMAT_ALAW|AST_FORMAT_AMRNB))<br> ast_log(LOG_WARNING, "mp4_save: Unable to set read format to<br>
ULAW|ALAW|AMRNB!\n");<br> }<br><br> /* Send video update */<br> ast_indicate(chan, AST_CONTROL_VIDUPDATE);<br><br>Regards,<br><br><br>Borja<br><br>Rene van Weert a écrit :<br>
<div class="Ih2E3d">> Hey everyone,<br>><br>> I just installed a new machine with the fontventa applications on<br></div>> Asterisk <a href="http://1.4.18.1/" target="_blank">1.4.18.1</a> <<a href="http://1.4.18.1/" target="_blank">http://1.4.18.1</a>> (rev 222).<br>
<div class="Ih2E3d">> On my other machine I have rev 210 running on Asterisk 1.4.17 and<br>> mp4save would record in h263/amr file format.<br>> With the new machine however it records the sound into ulaw instead of<br>
> amr. Is there a way to change this?<br>><br>> Now -><br>> Track Type Info<br>> 1 video H.263, 19.915 secs, 39 kbps, 176x144 @ 9.389907 fps<br>> 2 hint Payload H263-1998 for track 1<br>
> 3 audio G.711 uLaw, 19.940 secs, 64 kbps, 8000 Hz<br>> 4 hint Payload PCMU for track 3<br>> Before-><br>> Track Type Info<br>> 1 video H.263, 10.210 secs, 43 kbps, 176x144 @ 9.794319 fps<br>
> 2 hint Payload H263-2000 for track 1<br>> 3 audio AMR, 10.320 secs, 13 kbps, 8000 Hz<br>> 4 hint Payload AMR for track 3<br>><br>> Thanks in advance!<br>><br>> With kind regards,<br>
><br>> Rene van Weert<br></div>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--/" target="_blank">http://www.api-digital.com--</a><br>
><br>> asterisk-video mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-video" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-video</a><br>
<br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--/" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-video mailing list<br>
To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-video" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-video</a><br></blockquote></div><br></div>