[Freeswitch-users] wav2mp3 conversion inside of spidermonkey

Seven Du dujinfang at gmail.com
Tue Sep 1 18:37:20 PDT 2009


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/fooooooooooooooo.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.lists at it46.se> wrote:
>>>
>>>> Hi Brian,
>>>>
>>>>> From the CLI>
>>>>
>>>> freeswitch at 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
>>>>
>>>> freeswitch at 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 at 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 at 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_minessale at hotmail.com <MSN
>>> %3Aanthony_minessale at hotmail.com>
>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL
>>> %3Aanthony.minessale at gmail.com>
>>> IRC: irc.freenode.net #freeswitch
>>>
>>> FreeSWITCH Developer Conference
>>> sip:888 at conference.freeswitch.org <sip
>>> %3A888 at conference.freeswitch.org>
>>> iax:guest at conference.freeswitch.org/888
>>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf
>>> %2B888 at conference.freeswitch.org>
>>> pstn:213-799-1400
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list