[asterisk-users] Record in mp3

Danny Nicholas danny at debsinc.com
Fri Apr 24 12:40:45 CDT 2009


I’m sure someone will correct this if I’m wrong – Asterisk can’t make direct
mp3 records because it’s not a supported codec.  Typically Asterisk records
anything as a gsm, ulaw or alaw file, depending on the codec used to run the
connection to the phone.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jose Enes
Mateus
Sent: Friday, April 24, 2009 12:30 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Record in mp3

 



The recording I want is to save some reminders that my users can record. It
is not to save a conversation. So I think that there is not an overhead in
converting the audio on the fly in this case.But the question is: Asterisk
suport generate mp3 files directly?



--- Em sex, 24/4/09, Geraint Lee <geraint at gmail.com> escreveu:


De: Geraint Lee <geraint at gmail.com>
Assunto: Re: [asterisk-users] Record in mp3
Para: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Data: Sexta-feira, 24 de Abril de 2009, 11:50

you probably don't want to record directly to mp3 as there will be an
overhead in converting the audio on the fly and this will probably break
your call recordings... you should either record in the codec you are using
for phone calls (i think?) or in .wav and then convert afterwards (correct
me if i'm wrong someone!).

2009/4/24 Jose Enes Mateus <jemateus at yahoo.com.br>



But have you tried to record directly in mp3, without to covert the file?


--- Em qui, 23/4/09, Danny Nicholas <danny at debsinc.com> escreveu:


De: Danny Nicholas <danny at debsinc.com>
Assunto: Re: [asterisk-users] Record in mp3
Para: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
<asterisk-users at lists.digium.com>
Data: Quinta-feira, 23 de Abril de 2009, 17:33

 

The way I read to do this is to use sox to create a wav file, then use lame
to convert the wav to mp3.  I did this for some MOH files.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jose Enes
Mateus
Sent: Thursday, April 23, 2009 3:28 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Record in mp3

 


Somebody knows if I can save files in mp3 with the Record command on
Asterisk?
I try to recompile sox to suport mp3 but Asterisk return the folowing
message when I use the Record command:

- Executing [*40 at liberado15:15] Record("SIP/1201-083453c8",
"/var/spool/asterisk/alarme/alarme-1201-200905121212:mp3") in new stack
    -- <SIP/1201-083453c8> Playing 'beep' (language 'pt_BR')
[Apr 23 17:22:36] ERROR[4494]: format_mp3.c:283 mp3_rewrite: I Can't write
MP3 only read them.
[Apr 23 17:22:36] WARNING[4494]: file.c:378 fn_wrapper: Unable to rewrite
format mp3
[Apr 23 17:22:36] WARNING[4494]: file.c:1092 ast_writefile: Unable to
rewrite /var/spool/asterisk/alarme/alarme-1201-200905121212.mp3
[Apr 23 17:22:36] WARNING[4494]: app_record.c:272 record_exec: Could not
create file /var/spool/asterisk/alarme/alarme-1201-200905121212

I'am doing something wrong?

Thanks

 

  _____  

Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
>  - Celebridades
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
celebridades/>  - Música
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
m%C3%BAsica/>  - Esportes
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
esportes/> 

 

-----Anexo incorporado-----

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

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

 

  _____  

Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
>  - Celebridades
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
celebridades/>  - Música
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
m%C3%BAsica/>  - Esportes
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
esportes/> 


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

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

 


-----Anexo incorporado-----

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

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

 

  _____  

Veja quais são os assuntos do momento no Yahoo! + Buscados: Top
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
>  10 - Celebridades
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
celebridades/>  - Música
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
m%C3%BAsica/>  - Esportes
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
esportes/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090424/715954ee/attachment.htm 


More information about the asterisk-users mailing list