[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/

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 i

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/

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 > 200

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/fo

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 >

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) fi

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 se