Re: [linux-audio-user] sox and avg

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] sox and avg
From: D. Sen (dsen_AT_homemail.com)
Date: Mon Aug 19 2002 - 20:30:47 EEST


Just tried avg:

[/tmp] sox -V -s -w -t .raw -r 44100 -c 2
~/data/music_44k/MOULTON/l_r.pcm44s -r 44100 -c 1 -t .raw -s -w
/tmp/test.pcm44s avg -r

sox: Input file: using sample rate 44100
        size shorts, encoding signed (2's complement), 2 channels
sox: Input file: comment "/home/dsen/data/music_44k/MOULTON/l_r.pcm44s"

sox: Output file: using sample rate 44100
        size shorts, encoding signed (2's complement), 1 channel
sox: Output file: comment "/home/dsen/data/music_44k/MOULTON/l_r.pcm44s"

Works fine for me (sox version: 12.17.1)

DS

Michael Krusch wrote:
> Hi,
>
> I have to convert a stereo wav file into two raw files, one containing
> the left channel, the other containing the right channel.
> I use the following command line:
>
> /usr/bin/sox -c 2 "/usr/local/rvb/impulse/Lexicon 300 Hall Large Hall
> -ER/glossy_plate_test.wav" -c 1 -s -r 44100 -w
> "/usr/local/rvb/temp/impuls_0_l.raw" avg -l
>
> /usr/bin/sox -c 2 "/usr/local/rvb/impulse/Lexicon 300 Hall Large Hall
> -ER/glossy_plate_test.wav" -c 1 -s -r 44100 -w
> "/usr/local/rvb/temp/impuls_0_r.raw" avg -r
>
> But the resulting raw files containing both the same samples.
>
> With the -V option sox tells:
>
> /usr/bin/sox: Detected file format type: wav
> /usr/bin/sox: Chunk fmt
> /usr/bin/sox: Chunk data
> /usr/bin/sox: Reading Wave file: Microsoft PCM format, 2 channels, 44100
> samp/sec
> /usr/bin/sox: 176400 byte/sec, 4 block align, 16 bits/samp,
> 34092 data bytes
> /usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
> Hall -ER/glossy_plate_test.wav: using sample rate 44100
> size shorts, encoding signed (2's complement), 2 channels
> /usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
> Hall -ER/glossy_plate_test.wav: comment "/usr/local/rvb/impulse/Lexicon
> 300 Hall Large Hall -ER/glossy_plate_test.wav"
> /usr/bin/sox: Output file /usr/local/rvb/temp/impuls_0_l.raw: using
> sample rate 44100
> size shorts, encoding signed (2's complement), 1 channel
> /usr/bin/sox: Output file: comment "/usr/local/rvb/impulse/Lexicon 300
> Hall Large Hall -ER/glossy_plate_test.wav"
> /usr/bin/sox: Effect took & gave no samples!
>
> /usr/bin/sox: Detected file format type: wav
> /usr/bin/sox: Chunk fmt
> /usr/bin/sox: Chunk data
> /usr/bin/sox: Reading Wave file: Microsoft PCM format, 2 channels, 44100
> samp/sec
> /usr/bin/sox: 176400 byte/sec, 4 block align, 16 bits/samp,
> 34092 data bytes
> /usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
> Hall -ER/glossy_plate_test.wav: using sample rate 44100
> size shorts, encoding signed (2's complement), 2 channels
> /usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
> Hall -ER/glossy_plate_test.wav: comment "/usr/local/rvb/impulse/Lexicon
> 300 Hall Large Hall -ER/glossy_plate_test.wav"
> /usr/bin/sox: Output file /usr/local/rvb/temp/impuls_0_r.raw: using
> sample rate 44100
> size shorts, encoding signed (2's complement), 1 channel
> /usr/bin/sox: Output file: comment "/usr/local/rvb/impulse/Lexicon 300
> Hall Large Hall -ER/glossy_plate_test.wav"
> /usr/bin/sox: Effect took & gave no samples!
>
> avg don't seems the work correct. Or do I something wrong?
>
> Michael Krusch
>
>
>

-- 
---------------------------------------
D. Sen, PhD
21 Woodmont Drive
Randolph
NJ 07869
Home Email: dsen_AT_homemail.com   Tel: 973 216 2326
Work Email: dsen_AT_ieee.org       Web: http://www.auditorymodels.org/~dsen


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Aug 19 2002 - 20:28:21 EEST