Posted: Fri Jul 25, 2008 10:04 am Post subject: [Asterisk-video] mp4save file format
Hey everyone,
I just installed a new machine with the fontventa applications on Asterisk 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
Posted: Fri Jul 25, 2008 12:05 pm Post subject: [Asterisk-video] mp4save file format
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 :
Quote:
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--
Posted: Fri Jul 25, 2008 12:35 pm Post subject: [Asterisk-video] mp4save file format
Hey Borja,
I have patched with AMR. After applying your patch (below) and using 3gp as extension the audio recording is now saved as AMR.
Thanks a lot.
Have a nice weekend!
Rene
On Fri, Jul 25, 2008 at 2:58 PM, Borja SIXTO <borja.sixto@i6net.com (borja.sixto@i6net.com)> wrote:
Quote:
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,
Quote:
I just installed a new machine with the fontventa applications on
Quote:
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
Quote:
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?
Quote:
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
Quote:
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
Quote:
3 audio AMR, 10.320 secs, 13 kbps, 8000 Hz
4 hint Payload AMR for track 3
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum