• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
AsteriskGuru Archives
Mailing List Archives
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Asterisk-video] mp4save file format

 
   AsteriskGuru Archives Forum Index -> Asterisk-Video
View previous topic :: View next topic  
Author Message
rvweert at gmail.com
Guest





PostPosted: 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
 
Thanks in advance!
 
With kind regards,
 
Rene van Weert
Back to top
borja.sixto at i6net.com
Guest





PostPosted: 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--

asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-video

_______________________________________________
--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
Back to top
rvweert at gmail.com
Guest





PostPosted: 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

Thanks in advance!

With kind regards,
>

Quote:
Rene van Weert

Quote:
------------------------------------------------------------------------

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
>

Quote:
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-video

_______________________________________________
--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
Back to top
Display posts from previous:   
   AsteriskGuru Archives Forum Index -> Asterisk-Video All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™