Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] wav2mp3 conversion inside of spidermonkey


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
aep.lists at it46.se
Guest





PostPosted: Tue Aug 25, 2009 9:19 am    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Aug 25, 2009 9:26 am    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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:

Quote:
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
Back to top
aep.lists at it46.se
Guest





PostPosted: Tue Aug 25, 2009 3:52 pm    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

Hi Brian,

Quote:
From the CLI>

freeswitch@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@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

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

Quote:
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Aug 25, 2009 3:59 pm    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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@it46.se (aep.lists@it46.se)> wrote:
Quote:
Hi Brian,

Quote:
From the CLI>

freeswitch@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@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



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

Quote:
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 (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 (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_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
aep.lists at it46.se
Guest





PostPosted: Wed Aug 26, 2009 3:37 am    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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


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

Quote:
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@it46.se> wrote:

Quote:
Hi Brian,

Quote:
From the CLI>

freeswitch@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@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

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

Quote:
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_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@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


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





PostPosted: Wed Aug 26, 2009 3:50 am    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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:

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


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

Quote:
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@it46.se> wrote:

Quote:
Hi Brian,

Quote:
From the CLI>

freeswitch@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@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

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

Quote:
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_minessale@hotmail.com <MSN
%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL
%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org <sip
%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf
%2B888@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
Back to top
dujinfang at gmail.com
Guest





PostPosted: Tue Sep 01, 2009 8:46 pm    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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

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


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

Quote:
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@it46.se> wrote:

Quote:
Hi Brian,

Quote:
From the CLI>

freeswitch@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@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

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

Quote:
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_minessale@hotmail.com <MSN
%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL
%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org <sip
%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf
%2B888@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 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
Back to top
aep.lists at it46.se
Guest





PostPosted: Wed Sep 02, 2009 12:45 am    Post subject: [Freeswitch-users] wav2mp3 conversion inside of spidermonkey Reply with quote

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

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

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


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

Quote:
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@it46.se> wrote:

Quote:
Hi Brian,

Quote:
From the CLI>

freeswitch@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@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

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

Quote:
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_minessale@hotmail.com <MSN
%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL
%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org <sip
%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf
%2B888@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 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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

VoiceMeUp - Corporate & Wholesale VoIP Services