sox 14.0.1: wav playback

View: New views
4 Messages — Rating Filter:   Alert me  

sox 14.0.1: wav playback

by John McGowan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

RE: play with wav files

(sox 14.0.1 compiled with gcc (GCC) 3.3.3
 on an updated, piece by piece, Fedora Core 2,
 with kernel 2.6.24 with intel audio on the motherboard)


play -V4 /work/EASTER/CDs/MAC2.wav
----------------------------------
OUTPUT:

  play: SoX v14.0.1
  play auto: Detected file format type: wav
  play wav: WAV Chunk fmt
  play wav: WAV Chunk RIFF
  play wav: WAV Chunk
  play soxio: Can't open input file /work/EASTER/CDs/MAC2.wav': Could not find data chunk.


play -V4 -t sndfile /work/EASTER/CDs/MAC2.wav
---------------------------------------------
OUTPUT:

  play: SoX v14.0.1
  play sndfile: /work/EASTER/CDs/MAC2.wav': File : /work/EASTER/CDs/MAC2.wav
  play sndfile: /work/EASTER/CDs/MAC2.wav': Length : 21283292
  play sndfile: /work/EASTER/CDs/MAC2.wav': RIFF : 21283284
  play sndfile: /work/EASTER/CDs/MAC2.wav': WAVE
  play sndfile: /work/EASTER/CDs/MAC2.wav': fmt  : 16
  play sndfile: /work/EASTER/CDs/MAC2.wav':   Format        : 0x1 => WAVE_FORMAT_PCM
  play sndfile: /work/EASTER/CDs/MAC2.wav':   Channels      : 2
  play sndfile: /work/EASTER/CDs/MAC2.wav':   Sample Rate   : 44100
  play sndfile: /work/EASTER/CDs/MAC2.wav':   Block Align   : 4
  play sndfile: /work/EASTER/CDs/MAC2.wav':   Bit Width     : 16
  play sndfile: /work/EASTER/CDs/MAC2.wav':   Bytes/sec     : 176400
  play sndfile: /work/EASTER/CDs/MAC2.wav': data : 21283248
  play sndfile: /work/EASTER/CDs/MAC2.wav': End
 
  Input File     : '/work/EASTER/CDs/MAC2.wav'
  Sample Size    : 16-bit (2 bytes)
  Sample Encoding: signed (2's complement)
  Channels       : 2
  Sample Rate    : 44100
  Duration       : 02:00.65 = 5320812 samples = 9049 CDDA sectors
  Endian Type    : little
  Reverse Nibbles: no
  Reverse Bits   : no
 
  play alsa: hardware does not support sample rate 44100; changing to 48000.
 
  Output File    : 'default' (alsa)
  Sample Size    : 16-bit (2 bytes)
  Sample Encoding: signed (2's complement)
  Channels       : 2
  Sample Rate    : 48000
  Endian Type    : little
  Reverse Nibbles: no
  Reverse Bits   : no
 
  play resample: opts: Kaiser window, cutoff 0.800000, beta 16.000000
  play resample: DCgain err=0.000000011654
  play resample: Nmult: 45, Nwing: 3681, Nq: 160
  play resample: rate ratio 147:160, coeff interpolation not needed
  play resample: Xsize 3956, Ysize 4236, Xoff 33
  play resample: DCgain err=0.000000011654
  play resample: Nmult: 45, Nwing: 3681, Nq: 160
  play resample: rate ratio 147:160, coeff interpolation not needed
  play resample: Xsize 3956, Ysize 4236, Xoff 33
  play sox: effects chain: input      44100Hz 2 channels 16 bits (multi)
  play sox: effects chain: resample   44100Hz 2 channels 16 bits
  play sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
  Time: 00:02.14 [01:58.52] of 02:00.65 (1.77%) Samples out: 98.0k Clips: 0    
  ...

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: sox 14.0.1: wav playback

by Chris Bagwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi John,

Thats for the report...  Do you know if its *all* wav files your having
problems with or a limited set?  Can you email me one directly so that I
can try it out?

I suspect that the issue is if older version of glibc on your system but
newer kernels... Specifically, some slackware systems are doing similar
kernel upgrades which they've also reported breaks fseeko() and shos up
in WAV handler like your seeing.

Internal sox WAV handler uses fseeko() whereas sndfile does not.

If your up for doing some debugging, or at least just some custom sox
compiles, I may be able to come up with a fix to configure script to
detect broken fseeko()'s.

Chris

John McGowan wrote:

> RE: play with wav files
>
> (sox 14.0.1 compiled with gcc (GCC) 3.3.3
>  on an updated, piece by piece, Fedora Core 2,
>  with kernel 2.6.24 with intel audio on the motherboard)
>
>
> play -V4 /work/EASTER/CDs/MAC2.wav
> ----------------------------------
> OUTPUT:
>
>   play: SoX v14.0.1
>   play auto: Detected file format type: wav
>   play wav: WAV Chunk fmt
>   play wav: WAV Chunk RIFF
>   play wav: WAV Chunk
>   play soxio: Can't open input file /work/EASTER/CDs/MAC2.wav': Could not find data chunk.
>
>
> play -V4 -t sndfile /work/EASTER/CDs/MAC2.wav
> ---------------------------------------------
> OUTPUT:
>
>   play: SoX v14.0.1
>   play sndfile: /work/EASTER/CDs/MAC2.wav': File : /work/EASTER/CDs/MAC2.wav
>   play sndfile: /work/EASTER/CDs/MAC2.wav': Length : 21283292
>   play sndfile: /work/EASTER/CDs/MAC2.wav': RIFF : 21283284
>   play sndfile: /work/EASTER/CDs/MAC2.wav': WAVE
>   play sndfile: /work/EASTER/CDs/MAC2.wav': fmt  : 16
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Format        : 0x1 => WAVE_FORMAT_PCM
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Channels      : 2
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Sample Rate   : 44100
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Block Align   : 4
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Bit Width     : 16
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Bytes/sec     : 176400
>   play sndfile: /work/EASTER/CDs/MAC2.wav': data : 21283248
>   play sndfile: /work/EASTER/CDs/MAC2.wav': End
>  
>   Input File     : '/work/EASTER/CDs/MAC2.wav'
>   Sample Size    : 16-bit (2 bytes)
>   Sample Encoding: signed (2's complement)
>   Channels       : 2
>   Sample Rate    : 44100
>   Duration       : 02:00.65 = 5320812 samples = 9049 CDDA sectors
>   Endian Type    : little
>   Reverse Nibbles: no
>   Reverse Bits   : no
>  
>   play alsa: hardware does not support sample rate 44100; changing to 48000.
>  
>   Output File    : 'default' (alsa)
>   Sample Size    : 16-bit (2 bytes)
>   Sample Encoding: signed (2's complement)
>   Channels       : 2
>   Sample Rate    : 48000
>   Endian Type    : little
>   Reverse Nibbles: no
>   Reverse Bits   : no
>  
>   play resample: opts: Kaiser window, cutoff 0.800000, beta 16.000000
>   play resample: DCgain err=0.000000011654
>   play resample: Nmult: 45, Nwing: 3681, Nq: 160
>   play resample: rate ratio 147:160, coeff interpolation not needed
>   play resample: Xsize 3956, Ysize 4236, Xoff 33
>   play resample: DCgain err=0.000000011654
>   play resample: Nmult: 45, Nwing: 3681, Nq: 160
>   play resample: rate ratio 147:160, coeff interpolation not needed
>   play resample: Xsize 3956, Ysize 4236, Xoff 33
>   play sox: effects chain: input      44100Hz 2 channels 16 bits (multi)
>   play sox: effects chain: resample   44100Hz 2 channels 16 bits
>   play sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
>   Time: 00:02.14 [01:58.52] of 02:00.65 (1.77%) Samples out: 98.0k Clips: 0    
>   ...
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Sox-users mailing list
> Sox-users@...
> https://lists.sourceforge.net/lists/listinfo/sox-users
>  
   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: sox 14.0.1: wav playback

by Chris Pearson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the same problem.  It does seem to be with all .WAVs.  

Linux p133 2.4.29 #29 Thu Jan 20 17:32:28 PST 2005 i586 unknown unknown GNU/Linux

with glib 2.3.4 and libsamplerate.so.0.1.1

I'll test your configure option if you make it.

Chris Bagwell wrote:
Hi John,

Thats for the report...  Do you know if its *all* wav files your having
problems with or a limited set?  Can you email me one directly so that I
can try it out?

I suspect that the issue is if older version of glibc on your system but
newer kernels... Specifically, some slackware systems are doing similar
kernel upgrades which they've also reported breaks fseeko() and shos up
in WAV handler like your seeing.

Internal sox WAV handler uses fseeko() whereas sndfile does not.

If your up for doing some debugging, or at least just some custom sox
compiles, I may be able to come up with a fix to configure script to
detect broken fseeko()'s.

Chris

John McGowan wrote:
> RE: play with wav files
>
> (sox 14.0.1 compiled with gcc (GCC) 3.3.3
>  on an updated, piece by piece, Fedora Core 2,
>  with kernel 2.6.24 with intel audio on the motherboard)
>
>
> play -V4 /work/EASTER/CDs/MAC2.wav
> ----------------------------------
> OUTPUT:
>
>   play: SoX v14.0.1
>   play auto: Detected file format type: wav
>   play wav: WAV Chunk fmt
>   play wav: WAV Chunk RIFF
>   play wav: WAV Chunk
>   play soxio: Can't open input file /work/EASTER/CDs/MAC2.wav': Could not find data chunk.
>
>
> play -V4 -t sndfile /work/EASTER/CDs/MAC2.wav
> ---------------------------------------------
> OUTPUT:
>
>   play: SoX v14.0.1
>   play sndfile: /work/EASTER/CDs/MAC2.wav': File : /work/EASTER/CDs/MAC2.wav
>   play sndfile: /work/EASTER/CDs/MAC2.wav': Length : 21283292
>   play sndfile: /work/EASTER/CDs/MAC2.wav': RIFF : 21283284
>   play sndfile: /work/EASTER/CDs/MAC2.wav': WAVE
>   play sndfile: /work/EASTER/CDs/MAC2.wav': fmt  : 16
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Format        : 0x1 => WAVE_FORMAT_PCM
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Channels      : 2
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Sample Rate   : 44100
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Block Align   : 4
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Bit Width     : 16
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Bytes/sec     : 176400
>   play sndfile: /work/EASTER/CDs/MAC2.wav': data : 21283248
>   play sndfile: /work/EASTER/CDs/MAC2.wav': End
>  
>   Input File     : '/work/EASTER/CDs/MAC2.wav'
>   Sample Size    : 16-bit (2 bytes)
>   Sample Encoding: signed (2's complement)
>   Channels       : 2
>   Sample Rate    : 44100
>   Duration       : 02:00.65 = 5320812 samples = 9049 CDDA sectors
>   Endian Type    : little
>   Reverse Nibbles: no
>   Reverse Bits   : no
>  
>   play alsa: hardware does not support sample rate 44100; changing to 48000.
>  
>   Output File    : 'default' (alsa)
>   Sample Size    : 16-bit (2 bytes)
>   Sample Encoding: signed (2's complement)
>   Channels       : 2
>   Sample Rate    : 48000
>   Endian Type    : little
>   Reverse Nibbles: no
>   Reverse Bits   : no
>  
>   play resample: opts: Kaiser window, cutoff 0.800000, beta 16.000000
>   play resample: DCgain err=0.000000011654
>   play resample: Nmult: 45, Nwing: 3681, Nq: 160
>   play resample: rate ratio 147:160, coeff interpolation not needed
>   play resample: Xsize 3956, Ysize 4236, Xoff 33
>   play resample: DCgain err=0.000000011654
>   play resample: Nmult: 45, Nwing: 3681, Nq: 160
>   play resample: rate ratio 147:160, coeff interpolation not needed
>   play resample: Xsize 3956, Ysize 4236, Xoff 33
>   play sox: effects chain: input      44100Hz 2 channels 16 bits (multi)
>   play sox: effects chain: resample   44100Hz 2 channels 16 bits
>   play sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
>   Time: 00:02.14 [01:58.52] of 02:00.65 (1.77%) Samples out: 98.0k Clips: 0    
>   ...
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>  
   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: sox 14.0.1: wav playback

by Chris Pearson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm having the same problem with all .WAVs on the following system also.

Linux kubuntu 2.6.15-29-386 #1 PREEMPT Mon Sep 24 17:18:25 UTC 2007 i686 GNU/Linux

glibc 2.3.6 libsamplerate.so.0.1.1

Though it seems to apply to all .WAVs, here is a simple example:

sox -e out.wav synth 10 pinknoise
strace sox out.wav -e stat

open("out.wav", O_RDONLY|O_LARGEFILE)   = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=884780, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=884780, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401ea000
read(3, "RIFF$\200\r\0WAVEfmt \20\0\0\0\1\0\2\0D\254\0\0\20\261"..., 4096) = 4096
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "RIFF$\200\r\0WAVEfmt \20\0\0\0\1\0\2\0D\254\0\0\20\261"..., 4096) = 4096
_llseek(3, 4096, [4096], SEEK_SET)      = 0
_llseek(3, 884736, [884736], SEEK_SET)  = 0
read(3, "c\361c\361\214\361\214\361\264\361\264\361\335\361\335"..., 4096) = 44
write(2, "sox ", 4sox )                     = 4
write(2, "soxio: ", 7soxio: )                  = 7
write(2, "Can\'t open input file `out.wav\':"..., 59Can't open input file `out.wav': Could not find data chunk.) = 59
write(2, "\n", 1
)                       = 1


I can get WAVs to work for the moment by piping the .wav into sox and using "-t wav -"


Chris Bagwell wrote:
Hi John,

Thats for the report...  Do you know if its *all* wav files your having
problems with or a limited set?  Can you email me one directly so that I
can try it out?

I suspect that the issue is if older version of glibc on your system but
newer kernels... Specifically, some slackware systems are doing similar
kernel upgrades which they've also reported breaks fseeko() and shos up
in WAV handler like your seeing.

Internal sox WAV handler uses fseeko() whereas sndfile does not.

If your up for doing some debugging, or at least just some custom sox
compiles, I may be able to come up with a fix to configure script to
detect broken fseeko()'s.

Chris

John McGowan wrote:
> RE: play with wav files
>
> (sox 14.0.1 compiled with gcc (GCC) 3.3.3
>  on an updated, piece by piece, Fedora Core 2,
>  with kernel 2.6.24 with intel audio on the motherboard)
>
>
> play -V4 /work/EASTER/CDs/MAC2.wav
> ----------------------------------
> OUTPUT:
>
>   play: SoX v14.0.1
>   play auto: Detected file format type: wav
>   play wav: WAV Chunk fmt
>   play wav: WAV Chunk RIFF
>   play wav: WAV Chunk
>   play soxio: Can't open input file /work/EASTER/CDs/MAC2.wav': Could not find data chunk.
>
>
> play -V4 -t sndfile /work/EASTER/CDs/MAC2.wav
> ---------------------------------------------
> OUTPUT:
>
>   play: SoX v14.0.1
>   play sndfile: /work/EASTER/CDs/MAC2.wav': File : /work/EASTER/CDs/MAC2.wav
>   play sndfile: /work/EASTER/CDs/MAC2.wav': Length : 21283292
>   play sndfile: /work/EASTER/CDs/MAC2.wav': RIFF : 21283284
>   play sndfile: /work/EASTER/CDs/MAC2.wav': WAVE
>   play sndfile: /work/EASTER/CDs/MAC2.wav': fmt  : 16
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Format        : 0x1 => WAVE_FORMAT_PCM
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Channels      : 2
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Sample Rate   : 44100
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Block Align   : 4
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Bit Width     : 16
>   play sndfile: /work/EASTER/CDs/MAC2.wav':   Bytes/sec     : 176400
>   play sndfile: /work/EASTER/CDs/MAC2.wav': data : 21283248
>   play sndfile: /work/EASTER/CDs/MAC2.wav': End
>  
>   Input File     : '/work/EASTER/CDs/MAC2.wav'
>   Sample Size    : 16-bit (2 bytes)
>   Sample Encoding: signed (2's complement)
>   Channels       : 2
>   Sample Rate    : 44100
>   Duration       : 02:00.65 = 5320812 samples = 9049 CDDA sectors
>   Endian Type    : little
>   Reverse Nibbles: no
>   Reverse Bits   : no
>  
>   play alsa: hardware does not support sample rate 44100; changing to 48000.
>  
>   Output File    : 'default' (alsa)
>   Sample Size    : 16-bit (2 bytes)
>   Sample Encoding: signed (2's complement)
>   Channels       : 2
>   Sample Rate    : 48000
>   Endian Type    : little
>   Reverse Nibbles: no
>   Reverse Bits   : no
>  
>   play resample: opts: Kaiser window, cutoff 0.800000, beta 16.000000
>   play resample: DCgain err=0.000000011654
>   play resample: Nmult: 45, Nwing: 3681, Nq: 160
>   play resample: rate ratio 147:160, coeff interpolation not needed
>   play resample: Xsize 3956, Ysize 4236, Xoff 33
>   play resample: DCgain err=0.000000011654
>   play resample: Nmult: 45, Nwing: 3681, Nq: 160
>   play resample: rate ratio 147:160, coeff interpolation not needed
>   play resample: Xsize 3956, Ysize 4236, Xoff 33
>   play sox: effects chain: input      44100Hz 2 channels 16 bits (multi)
>   play sox: effects chain: resample   44100Hz 2 channels 16 bits
>   play sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
>   Time: 00:02.14 [01:58.52] of 02:00.65 (1.77%) Samples out: 98.0k Clips: 0    
>   ...
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>  
   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users