Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-04-2011, 12:22 AM   #1
LQ Newbie
Registered: Aug 2007
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
sox package, Slackware 13.1, fails on sox 1.wav -e stat

I think there is a problem with the sox package that comes with Slackware 13.1.
I would appreciate any advice. I'm using the same file, 1.wav, in both cases. The output of file 1.wav is
1.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

On 12.1, I can run
sox 1.wav -e stat 2> /tmp/stat.txt

bash-3.1$ cat /tmp/stat.txt
Samples read: 37096920
Length (seconds): 420.600000
Scaled by: 2147483647.0
Maximum amplitude: 0.977203
Minimum amplitude: -0.922394
Midline amplitude: 0.027405
Mean norm: 0.038253
Mean amplitude: -0.000031
RMS amplitude: 0.070757
Maximum delta: 1.246124
Minimum delta: 0.000000
Mean delta: 0.051312
RMS delta: 0.095067
Rough frequency: 9430
Volume adjustment: 1.023

However, on 13.1,
sox 1.wav -e stat 2> /tmp/stat.txt

bash-4.1$ cat /tmp/stat.txt
sox FAIL sox: --encoding: `stat' is not one of: signed-integer, unsigned-integer
, floating-point, ms-adpcm, ima-adpcm, oki-adpcm, gsm-full-rate, u-law, mu-law,

On 12.1,

On 13.1,

Last edited by burbabro; 05-04-2011 at 12:28 AM. Reason: forgot to add important fact
Old 05-04-2011, 03:26 AM   #2
Registered: Oct 2007
Distribution: Slackware
Posts: 835

Rep: Reputation: 164Reputation: 164
Syntax has changed I believe, the following works for me:

$ sox test.wav --show-progress -n stat 

Input File     : 'test.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:09:24.55 = 24896512 samples = 42341 CDDA sectors
File Size      : 99.6M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM

In:100%  00:09:24.55 [00:00:00.00] Out:24.9M [-=====|===== ] Hd:2.2 Clip:0    
Samples read:          49793024
Length (seconds):    564.546757
Scaled by:         2147483647.0
Maximum amplitude:     0.735199
Minimum amplitude:    -0.771790
Midline amplitude:    -0.018295
Mean    norm:          0.032635
Mean    amplitude:    -0.000006
RMS     amplitude:     0.056420
Maximum delta:         0.789154
Minimum delta:         0.000000
Mean    delta:         0.038044
RMS     delta:         0.064604
Rough   frequency:         8036
Volume adjustment:        1.296
This is on 13.37 with SoX v14.3.2...

Last edited by andrew.46; 05-04-2011 at 03:27 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inquiry:How to convert .wav sound files to .gsm format with sox utility hadimotamedi Linux - Newbie 6 04-17-2015 07:34 PM
sox convert a-law mono 8000hz wav to pcm signed 16bit mono wav saiyen2002 Linux - Software 2 02-23-2012 09:02 PM
trying to encode wav => mp3 with SOX, bitrate problems. salviadud Linux - Software 2 03-30-2006 03:18 AM
clean up and convert wav 2 mp3 with sox dibblethewrecke Linux - Software 1 12-04-2004 09:52 AM
Sox to remove silence from wav J_Szucs Linux - Newbie 1 01-11-2003 01:36 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration