Bugs item #3494981, was opened at 2012-02-27 03:56
Message generated for change (Comment added) made by bat999
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3494981&group_id=10706

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: verified
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Shrinivas (dudhaniss)
Assigned to: Nobody/Anonymous (nobody)
Summary: SoX process using 100% CPU while converting ".qcp" file

Initial Comment:
The scenario is:

I am trying to convert "x.qcp" (EVRC type) file into "y.amr" file type as shown 
below:

$./sox x.qcp y.amr

It has been observed that the CPU usage of Sox process has reached to 100%:

$ top
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
8006 adapter1  25   0  6892 1000  748 R 99.6  0.0   0:06.58 sox

The process becomes non responsive without throwing any error.
But If we repeat above test case with other ".qcp" file (QCELP 13K type) then 
every thing seems to be working.

Just wanted to know is their any way out to handle EVRC type qcp file in Sox so 
that its process should not got hang?
I manage to take gcore of that hang process:

<Code>
(gdb)
#0  0x000000000042fa77 in do_pole_filter ()
#1  0x000000000042ef14 in postfilt ()
#2  0x0000000000423216 in run_decoder ()
#3  0x000000000042412b in decoder ()
#4  0x0000000000408a32 in st_qcelp13kread (ft=0x7fff5815f220, buf=0x18d800c0, 
len=<value optimized out>) at sox_qcelp13k.c:331
#5  0x0000000000413ca1 in st_conv_convert (conv=0x7fff5815f210) at 
st_convert.c:353
#6  0x0000000000404c58 in sox_audxcode (in=<value optimized out>, 
in_size=<value optimized out>, out_size=0x7fff58169b3c,
    argc=3, argv=0x7fff58169c48, log=0x7fff58169b30) at audxcode.c:168
#7  0x00000000004028a3 in main (argc=3, argv=0x7fff58169c48) at sox.c:323

</Code>

--
Shrinivas

----------------------------------------------------------------------

Comment By: bat (bat999)
Date: 2013-02-02 13:56

Message:
Hi
$ ffmpeg -i "Audio_142698AEFD7A05BC9BD36F4FD595CE9F.qcp" -f sox - | sox -p
y.amr-nb

Converted file is here:-
http://www.mediafire.com/?uesn72skb6cce6k

----------------------------------------------------------------------

Comment By: bat (bat999)
Date: 2013-02-02 13:42

Message:
Hi
SoX can't handle this type of file.

General
Complete name : Audio_142698AEFD7A05BC9BD36F4FD595CE9F.qcp
Format        : QLCM
File size     : 12.5 KiB

Audio
Format        : EVRC
Bit rate      : 13.0 Kbps
Channel(s)    : 1 channel
Sampling rate : 8 000 Hz
Bit depth     : 16 bits


New versions of FFmpeg will open it.

Can be used with SoX like this:-

$ ffmpeg -i "Audio_142698AEFD7A05BC9BD36F4FD595CE9F.qcp" -f sox - | sox -p
y.amr-nb

It isn't a SoX bug.

Somebody needs to close the report.

----------------------------------------------------------------------

Comment By: Shrinivas (dudhaniss)
Date: 2012-02-28 22:03

Message:
I am facing this issue on  'SoX-12.17.3' version.
Also attached the 'qcp' file.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3494981&group_id=10706

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to