Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-09-01 Thread Seven Du
I run into this problem before. Don't remember the exact error but  
might be segfault of lame runing in freeswitch-lua.

If you use Linux you would like to try iwatch. It's a perl program  
watching your file system and can execute the lame command as soon as  
it got the CLOSE_WRITE(or other)  filesystem event.

On Aug 26, 2009, at 4:44 PM, Michael Jerris wrote:
 Running out of stack space?  The stack space we run freeswitch in is
 fairly small.  Programs launched from the freeswitch process inherit
 this.

 Mike

 On Aug 26, 2009, at 4:28 AM, Alberto Escudero-Pascual (lists) wrote:

 I ran strace from freeswitch and from the command line. lame  
 segfaults
 when run from system FS.

 The only obvious different i see is in the execve() /* XX vars */
 apart
 from the final Segfault

 From
 execve(/usr/local/freeswitch/bin/lame,
 [/usr/local/freeswitch/bin/lame, /tmp/foo.wav, /tmp/foo.mp3, -
 S],
 [/* 16 vars */]) = 0


 From FS
 execve(/usr/local/freeswitch/bin/lame,
 [/usr/local/freeswitch/bin/lame, /tmp/foo.wav,
 /tmp/fooo.mp3, -S], [/* 14 vars */]) = 0

 I am attaching the full straces in case they are of any help. Not
 sure if
 this deserves a jira

 /aep
 -- 
 Stopping junk mailers is good for the environment

 maybe it's writing some err to stderr that is being suppressed
 somehow

 On Tue, Aug 25, 2009 at 3:46 PM, Alberto Escudero-Pascual (lists) 
 aep.li...@it46.se wrote:

 Hi Brian,

 From the CLI

 freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2
 /tmp/foo.wav
 /tmp/foo.mp3 -S
 2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.wav


 and running the command from the command line:


 open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3
 -Sopen46:/tmp# ls
 foo.mp3  foo.wav


 If I do the same with lame397

 freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
 /tmp/foo.wav /tmp/foo.mp3 -S
 2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.mp3  foo.wav


 Highly paranormal! Sorry for hijacking the previous thread.

 /aep

 --
 Stopping junk mailers is good for the environment

 Try running it at the CLI and see if you see any errors.  Also
 please
 do not hijack threads.  The original thread [Freeswitch-users]
 XML-
 RPC on different ip than 0.0.0.0 which was hijacked by clicking
 reply, changing the subject and clicking send.  Please in the
 future
 do not do that as it clutters up the threading and could get your
 query lost in the noise.

 Thanks,
 Brian

 On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists)
 wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file  
 never
 appears, if I use version 3.97 (older version), it does!.


 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/
 freeswitch-users
 http://www.freeswitch.org





 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
 users
 http://www.freeswitch.org




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com MSN
 %3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.comPAYPAL
 %3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip
 %3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3Aconf
 %2b...@conference.freeswitch.org
 pstn:213-799-1400
 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
 users
 http://www.freeswitch.org

 lame_strace.txt___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
 users
 http://www.freeswitch.org


 ___
 FreeSWITCH-users mailing list
 

Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-09-01 Thread Alberto Escudero
Hi Steven,

Sounds like a very good tip. Do you have any example available to share? I
will be happy to upload it to the wiki when i put it up and running.

/aep
-- 
Stopping junk mailers is good for the environment

 I run into this problem before. Don't remember the exact error but
 might be segfault of lame runing in freeswitch-lua.

 If you use Linux you would like to try iwatch. It's a perl program
 watching your file system and can execute the lame command as soon as
 it got the CLOSE_WRITE(or other)  filesystem event.

 On Aug 26, 2009, at 4:44 PM, Michael Jerris wrote:
 Running out of stack space?  The stack space we run freeswitch in is
 fairly small.  Programs launched from the freeswitch process inherit
 this.

 Mike

 On Aug 26, 2009, at 4:28 AM, Alberto Escudero-Pascual (lists) wrote:

 I ran strace from freeswitch and from the command line. lame
 segfaults
 when run from system FS.

 The only obvious different i see is in the execve() /* XX vars */
 apart
 from the final Segfault

 From
 execve(/usr/local/freeswitch/bin/lame,
 [/usr/local/freeswitch/bin/lame, /tmp/foo.wav, /tmp/foo.mp3, -
 S],
 [/* 16 vars */]) = 0


 From FS
 execve(/usr/local/freeswitch/bin/lame,
 [/usr/local/freeswitch/bin/lame, /tmp/foo.wav,
 /tmp/fooo.mp3, -S], [/* 14 vars */]) = 0

 I am attaching the full straces in case they are of any help. Not
 sure if
 this deserves a jira

 /aep
 --
 Stopping junk mailers is good for the environment

 maybe it's writing some err to stderr that is being suppressed
 somehow

 On Tue, Aug 25, 2009 at 3:46 PM, Alberto Escudero-Pascual (lists) 
 aep.li...@it46.se wrote:

 Hi Brian,

 From the CLI

 freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2
 /tmp/foo.wav
 /tmp/foo.mp3 -S
 2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.wav


 and running the command from the command line:


 open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3
 -Sopen46:/tmp# ls
 foo.mp3  foo.wav


 If I do the same with lame397

 freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
 /tmp/foo.wav /tmp/foo.mp3 -S
 2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.mp3  foo.wav


 Highly paranormal! Sorry for hijacking the previous thread.

 /aep

 --
 Stopping junk mailers is good for the environment

 Try running it at the CLI and see if you see any errors.  Also
 please
 do not hijack threads.  The original thread [Freeswitch-users]
 XML-
 RPC on different ip than 0.0.0.0 which was hijacked by clicking
 reply, changing the subject and clicking send.  Please in the
 future
 do not do that as it clutters up the threading and could get your
 query lost in the noise.

 Thanks,
 Brian

 On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists)
 wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file
 never
 appears, if I use version 3.97 (older version), it does!.


 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/
 freeswitch-users
 http://www.freeswitch.org





 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
 users
 http://www.freeswitch.org




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com MSN
 %3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.comPAYPAL
 %3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip
 %3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3Aconf
 %2b...@conference.freeswitch.org
 pstn:213-799-1400
 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
 users
 http://www.freeswitch.org

 lame_strace.txt___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 

Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-08-26 Thread Alberto Escudero-Pascual (lists)
I ran strace from freeswitch and from the command line. lame segfaults
when run from system FS.

The only obvious different i see is in the execve() /* XX vars */ apart
from the final Segfault

From
execve(/usr/local/freeswitch/bin/lame,
[/usr/local/freeswitch/bin/lame, /tmp/foo.wav, /tmp/foo.mp3, -S],
[/* 16 vars */]) = 0


From FS
execve(/usr/local/freeswitch/bin/lame,
[/usr/local/freeswitch/bin/lame, /tmp/foo.wav,
/tmp/fooo.mp3, -S], [/* 14 vars */]) = 0

I am attaching the full straces in case they are of any help. Not sure if
this deserves a jira

/aep
-- 
Stopping junk mailers is good for the environment

 maybe it's writing some err to stderr that is being suppressed somehow

 On Tue, Aug 25, 2009 at 3:46 PM, Alberto Escudero-Pascual (lists) 
 aep.li...@it46.se wrote:

 Hi Brian,

 From the CLI

 freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2
 /tmp/foo.wav
 /tmp/foo.mp3 -S
 2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.wav


 and running the command from the command line:


 open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3
 -Sopen46:/tmp# ls
 foo.mp3  foo.wav


 If I do the same with lame397

 freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
 /tmp/foo.wav /tmp/foo.mp3 -S
 2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.mp3  foo.wav


 Highly paranormal! Sorry for hijacking the previous thread.

 /aep

 --
 Stopping junk mailers is good for the environment

  Try running it at the CLI and see if you see any errors.  Also please
  do not hijack threads.  The original thread [Freeswitch-users] XML-
  RPC on different ip than 0.0.0.0 which was hijacked by clicking
  reply, changing the subject and clicking send.  Please in the future
  do not do that as it clutters up the threading and could get your
  query lost in the noise.
 
  Thanks,
  Brian
 
  On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:
 
  Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
  appears, if I use version 3.97 (older version), it does!.
 
 
  ___
  FreeSWITCH-users mailing list
  FreeSWITCH-users@lists.freeswitch.org
  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
  http://www.freeswitch.org
 
 



 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
 pstn:213-799-1400
 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org

FROM COMMAND LINE
==

[1]+  Stopped /usr/local/freeswitch/bin/freeswitch  (wd: 
/usr/local/freeswitch/conf)
(wd now: /usr/local/freeswitch/bin)
.wav /tmp/foo.mp3 -Seeswitch/bin# strace /usr/local/freeswitch/bin/lame 
/tmp/foo.
execve(/usr/local/freeswitch/bin/lame, [/usr/local/freeswitch/bin/lame, 
/tmp/foo.wav, /tmp/foo.mp3, -S], [/* 16 vars */]) = 0
brk(0)  = 0xa012000
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f5f000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=63289, ...}) = 0
mmap2(NULL, 63289, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f4f000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/lib/libncurses.so.5, O_RDONLY)  = 3
read(3, 

Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-08-26 Thread Michael Jerris
Running out of stack space?  The stack space we run freeswitch in is  
fairly small.  Programs launched from the freeswitch process inherit  
this.

Mike

On Aug 26, 2009, at 4:28 AM, Alberto Escudero-Pascual (lists) wrote:

 I ran strace from freeswitch and from the command line. lame segfaults
 when run from system FS.

 The only obvious different i see is in the execve() /* XX vars */  
 apart
 from the final Segfault

 From
 execve(/usr/local/freeswitch/bin/lame,
 [/usr/local/freeswitch/bin/lame, /tmp/foo.wav, /tmp/foo.mp3, - 
 S],
 [/* 16 vars */]) = 0


 From FS
 execve(/usr/local/freeswitch/bin/lame,
 [/usr/local/freeswitch/bin/lame, /tmp/foo.wav,
 /tmp/fooo.mp3, -S], [/* 14 vars */]) = 0

 I am attaching the full straces in case they are of any help. Not  
 sure if
 this deserves a jira

 /aep
 -- 
 Stopping junk mailers is good for the environment

 maybe it's writing some err to stderr that is being suppressed  
 somehow

 On Tue, Aug 25, 2009 at 3:46 PM, Alberto Escudero-Pascual (lists) 
 aep.li...@it46.se wrote:

 Hi Brian,

 From the CLI

 freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2
 /tmp/foo.wav
 /tmp/foo.mp3 -S
 2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.wav


 and running the command from the command line:


 open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3
 -Sopen46:/tmp# ls
 foo.mp3  foo.wav


 If I do the same with lame397

 freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
 /tmp/foo.wav /tmp/foo.mp3 -S
 2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing
 command:
 /usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.mp3  foo.wav


 Highly paranormal! Sorry for hijacking the previous thread.

 /aep

 --
 Stopping junk mailers is good for the environment

 Try running it at the CLI and see if you see any errors.  Also  
 please
 do not hijack threads.  The original thread [Freeswitch-users]  
 XML-
 RPC on different ip than 0.0.0.0 which was hijacked by clicking
 reply, changing the subject and clicking send.  Please in the  
 future
 do not do that as it clutters up the threading and could get your
 query lost in the noise.

 Thanks,
 Brian

 On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists)  
 wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
 appears, if I use version 3.97 (older version), it does!.


 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/ 
 freeswitch-users
 http://www.freeswitch.org





 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- 
 users
 http://www.freeswitch.org




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com MSN 
 %3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.comPAYPAL 
 %3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip 
 %3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3Aconf 
 %2b...@conference.freeswitch.org
 pstn:213-799-1400
 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- 
 users
 http://www.freeswitch.org

 lame_strace.txt___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- 
 users
 http://www.freeswitch.org


___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Alberto Escudero-Pascual (lists)
Dear all,

In one of the applications I am writing I need to convert a recorded wav
to mp3.

After using

session.recordFile() and obtaining a foo.wav file, I am calling

session.execute(system,lmLameCmd);

to invoke lame for the conversion.

The system command looks like this:
lmLameCmd = /usr/local/freeswitch/bin/lame -V2 foo.wav foo.mp3 -S;


Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
appears, if I use version 3.97 (older version), it does!.

If I execute the conversion from the command line, i get the mp3 with both
3.97 and 3.98.2

In fact, i am considering doing the conversions as background job, but I
am very curious to hear if this behavior has a pseudo-scientific
explanation

/aep

-- 
Stopping junk mailers is good for the environment



___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Brian West
Try running it at the CLI and see if you see any errors.  Also please  
do not hijack threads.  The original thread [Freeswitch-users] XML- 
RPC on different ip than 0.0.0.0 which was hijacked by clicking  
reply, changing the subject and clicking send.  Please in the future  
do not do that as it clutters up the threading and could get your  
query lost in the noise.

Thanks,
Brian

On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
 appears, if I use version 3.97 (older version), it does!.


___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Alberto Escudero-Pascual (lists)
Hi Brian,

From the CLI

freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
/tmp/foo.mp3 -S
2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing command:
/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
/tmp/foo.mp3 -S)] output:
+OK

open46:/tmp# ls
foo.wav


and running the command from the command line:


open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3
-Sopen46:/tmp# ls
foo.mp3  foo.wav


If I do the same with lame397

freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
/tmp/foo.wav /tmp/foo.mp3 -S
2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing command:
/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
/tmp/foo.mp3 -S)] output:
+OK

open46:/tmp# ls
foo.mp3  foo.wav


Highly paranormal! Sorry for hijacking the previous thread.

/aep

-- 
Stopping junk mailers is good for the environment

 Try running it at the CLI and see if you see any errors.  Also please
 do not hijack threads.  The original thread [Freeswitch-users] XML-
 RPC on different ip than 0.0.0.0 which was hijacked by clicking
 reply, changing the subject and clicking send.  Please in the future
 do not do that as it clutters up the threading and could get your
 query lost in the noise.

 Thanks,
 Brian

 On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:

 Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
 appears, if I use version 3.97 (older version), it does!.


 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org





___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey

2009-08-25 Thread Anthony Minessale
maybe it's writing some err to stderr that is being suppressed somehow

On Tue, Aug 25, 2009 at 3:46 PM, Alberto Escudero-Pascual (lists) 
aep.li...@it46.se wrote:

 Hi Brian,

 From the CLI

 freeswi...@open46 system /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S
 2009-08-25 22:41:51.556484 [NOTICE] mod_commands.c:3386 Executing command:
 /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.wav


 and running the command from the command line:


 open46:/tmp#  /usr/local/freeswitch/bin/lame -V2 /tmp/foo.wav /tmp/foo.mp3
 -Sopen46:/tmp# ls
 foo.mp3  foo.wav


 If I do the same with lame397

 freeswi...@open46 system /usr/local/freeswitch/bin/lame397 -V2
 /tmp/foo.wav /tmp/foo.mp3 -S
 2009-08-25 22:44:32.743998 [NOTICE] mod_commands.c:3386 Executing command:
 /usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav /tmp/foo.mp3 -S
 API CALL [system(/usr/local/freeswitch/bin/lame397 -V2 /tmp/foo.wav
 /tmp/foo.mp3 -S)] output:
 +OK

 open46:/tmp# ls
 foo.mp3  foo.wav


 Highly paranormal! Sorry for hijacking the previous thread.

 /aep

 --
 Stopping junk mailers is good for the environment

  Try running it at the CLI and see if you see any errors.  Also please
  do not hijack threads.  The original thread [Freeswitch-users] XML-
  RPC on different ip than 0.0.0.0 which was hijacked by clicking
  reply, changing the subject and clicking send.  Please in the future
  do not do that as it clutters up the threading and could get your
  query lost in the noise.
 
  Thanks,
  Brian
 
  On Aug 25, 2009, at 1:54 AM, Alberto Escudero-Pascual (lists) wrote:
 
  Here it comes the mystery. I am use lame 3.98.2 the mp3 file never
  appears, if I use version 3.97 (older version), it does!.
 
 
  ___
  FreeSWITCH-users mailing list
  FreeSWITCH-users@lists.freeswitch.org
  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
  http://www.freeswitch.org
 
 



 ___
 FreeSWITCH-users mailing list
 FreeSWITCH-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
pstn:213-799-1400
___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org