|
From: Jan S. <ha...@st...> - 2013-11-06 20:19:43
|
On Nov 06 14:37:58, mar...@mu... wrote: > Marlons-MacBook-Pro:~ Marlon_MBPro3$ /Users/Shared/Downloads/_Safari/sox-14.4.1/play -V6 /sounds/amen-break_omsox.ogg -V6 is overkill, -V should be enough. > /Users/Shared/Downloads/_Safari/sox-14.4.1/play: SoX v14.4.1 > time: Feb 1 2013 19:00:26 > uname: Darwin Marlons-MacBook-Pro.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 > compiler: gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) > arch: 1248 48 44 L OMP > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO formats: detected file format type `vorbis' > > Input File : '/sounds/amen-break_omsox.ogg' > Channels : 1 > Sample Rate : 48000 > Precision : 16-bit > Duration : 00:00:03.97 = 190702 samples ~ 297.972 CDDA sectors > File Size : 40.2k > Bit Rate : 80.9k > Sample Encoding: Vorbis > Comment : 'Comment=Processed by SoX' > > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO formats: can't set sample rate 48000; using 44100 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO formats: can't set 1 channels; using 2 Ha, so you are seeing the rate/channel problem with 14.4.1 that disappeared for me with 14.4.1 Can you also try with 14.4.1 compiled from source? > Output File : 'default' (coreaudio) > Channels : 2 > Sample Rate : 44100 > Precision : 24-bit > Duration : 00:00:02.16 = 95351 samples = 162.162 CDDA sectors > Sample Encoding: 32-bit Floating Point PCM > Endian Type : little > Reverse Nibbles: no > Reverse Bits : no > > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG effects: sox_add_effect: extending effects table, new size = 8 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG rate: i/o=1.08844; 80:147 @ level 0 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG effects_i_dsp: 0.75 0.440175 1.5 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG effects_i_dsp: make_lpf(n=2351, Fc=0.00720969 beta=10.9536 dc-norm=1 scale=147) > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG rate: fir_len=16 phases=147 coef_interp=0 mult=1 size=18.8k > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG rate: stage=0 pre_post=15 pre=0 preload=7 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG rate: stage=1 pre_post=88 pre=44 preload=44 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG remix: 0: > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG remix: 0 1 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG remix: 1: > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG remix: 0 1 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO sox: effects chain: input 48000Hz 1 channels (multi) 16 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO sox: effects chain: rate 44100Hz 1 channels 32 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO sox: effects chain: channels 44100Hz 2 channels (multi) 32 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO sox: effects chain: output 44100Hz 2 channels (multi) 24 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.1/play DBUG sox: automatically entering interactive mode > In:100% 00:00:03.97 [00:00:00.00] Out:175k [!=====|=====!] Hd:0.0 Clip:175k > /Users/Shared/Downloads/_Safari/sox-14.4.1/play WARN rate: rate clipped 174631 samples; decrease volume? > Done. If you create a 44100/2ch file beforehand, will it play right? > > > >> /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO formats: can't set sample rate 48000; using 44100 > >> /Users/Shared/Downloads/_Safari/sox-14.4.1/play INFO formats: can't set 1 channels; using 2 > > > > I have seen the same on MacOSX 10.5.8 - the audio system (coreaudio) > > is different there (as usual with Apple); but I believe Chris has > > already fixed some bits. > > sox14.3.2 and sox14.4.0 say the same (can't set sample rate, can't set 1 channels) but play back (and convert) fine: Hm. The Changelog does not mention any MacOSX related change with respect to the audio drivers. Can a developer please shed some light on what exactly changed between 14.4.0 and 14.4.1? > Marlons-MacBook-Pro:~ Marlon_MBPro3$ /Users/Shared/Downloads/_Safari/sox-14.3.2/play -V6 /sounds/amen-break_omsox.ogg > /Users/Shared/Downloads/_Safari/sox-14.3.2/play: SoX v14.3.2 > time: Feb 27 2011 10:42:10 > uname: Darwin Marlons-MacBook-Pro.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 > gcc: 4.2.1 (Apple Inc. build 5646) (dot 1) > arch: 1248 48 44 L OMP > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO formats: detected file format type `vorbis' > > Input File : '/sounds/amen-break_omsox.ogg' > Channels : 1 > Sample Rate : 48000 > Precision : 16-bit > Duration : 00:00:03.97 = 190702 samples ~ 297.972 CDDA sectors > File Size : 40.2k > Bit Rate : 80.9k > Sample Encoding: Vorbis > Comment : 'Comment=Processed by SoX' > > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO formats: can't set sample rate 48000; using 44100 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO formats: can't set 1 channels; using 2 > > Output File : 'default' (coreaudio) > Channels : 2 > Sample Rate : 44100 > Precision : 16-bit > Duration : 00:00:02.16 = 95351 samples = 162.162 CDDA sectors > Sample Encoding: 32-bit Floating Point PCM > Endian Type : little > Reverse Nibbles: no > Reverse Bits : no > > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG rate: i/o=1.08844; 80:147 @ level 0 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG effects_i_dsp: 0.75 0.440175 1.5 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG effects_i_dsp: make_lpf(n=2351, Fc=0.00720969 beta=10.9536 dc-norm=1 scale=147) > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG rate: fir_len=16 phases=147 coef_interp=0 mult=1 size=18.8k > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG rate: stage=0 pre_post=15 pre=0 preload=7 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG rate: stage=1 pre_post=88 pre=44 preload=44 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG remix: 0: > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG remix: 0 1 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG remix: 1: > /Users/Shared/Downloads/_Safari/sox-14.3.2/play DBUG remix: 0 1 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO sox: effects chain: input 48000Hz 1 channels 16 bits (multi) > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO sox: effects chain: rate 44100Hz 1 channels 32 bits > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO sox: effects chain: channels 44100Hz 2 channels 32 bits (multi) > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO sox: effects chain: dither 44100Hz 2 channels 32 bits > /Users/Shared/Downloads/_Safari/sox-14.3.2/play INFO sox: effects chain: output 44100Hz 2 channels 16 bits (multi) > In:100% 00:00:03.97 [00:00:00.00] Out:175k [ ===|=== ] Hd:0.0 Clip:16 > /Users/Shared/Downloads/_Safari/sox-14.3.2/play WARN rate: rate clipped 5 samples; decrease volume? > /Users/Shared/Downloads/_Safari/sox-14.3.2/play WARN dither: dither clipped 11 samples; decrease volume? > Done. > > ___________________ > > Marlons-MacBook-Pro:~ Marlon_MBPro3$ /Users/Shared/Downloads/_Safari/sox-14.4.0/play -V6 /sounds/amen-break_omsox.ogg > /Users/Shared/Downloads/_Safari/sox-14.4.0/play: SoX v14.4.0 > time: Mar 4 2012 16:54:02 > uname: Darwin Marlons-MacBook-Pro.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 > compiler: gcc 4.2.1 (Apple Inc. build 5666) (dot 3) > arch: 1248 48 44 L OMP > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO formats: detected file format type `vorbis' > > Input File : '/sounds/amen-break_omsox.ogg' > Channels : 1 > Sample Rate : 48000 > Precision : 16-bit > Duration : 00:00:03.97 = 190702 samples ~ 297.972 CDDA sectors > File Size : 40.2k > Bit Rate : 80.9k > Sample Encoding: Vorbis > Comment : 'Comment=Processed by SoX' > > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO formats: can't set sample rate 48000; using 44100 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO formats: can't set 1 channels; using 2 > > Output File : 'default' (coreaudio) > Channels : 2 > Sample Rate : 44100 > Precision : 24-bit > Duration : 00:00:02.16 = 95351 samples = 162.162 CDDA sectors > Sample Encoding: 32-bit Floating Point PCM > Endian Type : little > Reverse Nibbles: no > Reverse Bits : no > > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG effects: sox_add_effect: extending effects table, new size = 8 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG rate: i/o=1.08844; 80:147 @ level 0 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG effects_i_dsp: 0.75 0.440175 1.5 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG effects_i_dsp: make_lpf(n=2351, Fc=0.00720969 beta=10.9536 dc-norm=1 scale=147) > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG rate: fir_len=16 phases=147 coef_interp=0 mult=1 size=18.8k > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG rate: stage=0 pre_post=15 pre=0 preload=7 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG rate: stage=1 pre_post=88 pre=44 preload=44 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG remix: 0: > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG remix: 0 1 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG remix: 1: > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG remix: 0 1 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO sox: effects chain: input 48000Hz 1 channels (multi) 16 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO sox: effects chain: rate 44100Hz 1 channels 32 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO sox: effects chain: channels 44100Hz 2 channels (multi) 32 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play INFO sox: effects chain: output 44100Hz 2 channels (multi) 24 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play DBUG sox: automatically entering interactive mode > In:100% 00:00:03.97 [00:00:00.00] Out:175k [ | ] Hd:0.0 Clip:15 > /Users/Shared/Downloads/_Safari/sox-14.4.0/play WARN rate: rate clipped 5 samples; decrease volume? > /Users/Shared/Downloads/_Safari/sox-14.4.0/play WARN sox: `coreaudio' output clipped 10 samples; decrease volume? > Done. > > ------------------------ > > Marlons-MacBook-Pro:~ Marlon_MBPro3$ /Users/Shared/Downloads/_Safari/sox-14.4.0/sox -V6 /sounds/amen-break_omsox.ogg /sounds/amen-break_omsox-2.wav Can you make it -r 44100 -c 2 and then try to play it? > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox: SoX v14.4.0 > time: Mar 4 2012 16:54:02 > uname: Darwin Marlons-MacBook-Pro.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 > compiler: gcc 4.2.1 (Apple Inc. build 5666) (dot 3) > arch: 1248 48 44 L OMP > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox INFO formats: detected file format type `vorbis' > > Input File : '/sounds/amen-break_omsox.ogg' > Channels : 1 > Sample Rate : 48000 > Precision : 16-bit > Duration : 00:00:03.97 = 190702 samples ~ 297.972 CDDA sectors > File Size : 40.2k > Bit Rate : 80.9k > Sample Encoding: Vorbis > Comment : 'Comment=Processed by SoX' > > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox DBUG wav: Writing Wave file: Microsoft PCM format, 1 channel, 48000 samp/sec > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox DBUG wav: 96000 byte/sec, 2 block align, 16 bits/samp > > Output File : '/sounds/amen-break_omsox-2.wav' > Channels : 1 > Sample Rate : 48000 > Precision : 16-bit > Duration : 00:00:03.97 = 190702 samples ~ 297.972 CDDA sectors > Sample Encoding: 16-bit Signed Integer PCM > Endian Type : little > Reverse Nibbles: no > Reverse Bits : no > Comment : 'Comment=Processed by SoX' > > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox DBUG effects: sox_add_effect: extending effects table, new size = 8 > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox INFO sox: effects chain: input 48000Hz 1 channels (multi) 16 bits 00:00:03.97 > /Users/Shared/Downloads/_Safari/sox-14.4.0/sox INFO sox: effects chain: output 48000Hz 1 channels (multi) 16 bits 00:00:03.97 > > > >>>> However, this ogg file can be imported and played back normally > >>>> in other software, like Audacity or VLC. > >>> > >>> That means SoX convertred the WAV into the OGG just fine. > >> > >> Yes! And since these other player can play it back with no problem > >> I suspect there might be something wrong with the ogg decoding. > > > > I doubt that. I think tlaks wrong to the audio _device_. > > The processing of the audio samples is surely OK. > > Ok, but how can we explain then that when sox converts the file into a .wav it results in the same sound (i.e. sequence of produced samples) - when it's not talking to the audio device? I don't get your question. When SoX converts one audio format to another, the audio device is not involved at all. > We can see from the output of sox stats (with sox14.4.0 vs 14.4.1) on the .ogg file, that 14.4.1 seems to 'read' (decode?) the data differently from 14.4.0 (and Audacity, VLC). > > sox 14.4.0 How exactly was this file produced? > DC offset 0.000075 > Min level -0.939758 > Max level 0.999969 > Pk lev dB -0.00 > RMS lev dB -17.33 > RMS Pk dB -9.22 > RMS Tr dB -28.94 > Crest factor 7.36 > Flat factor 8.52 > Pk count 12 > Bit-depth 16/16 > Num samples 191k > Length s 3.973 > Scale max 1.000000 > Window s 0.050 > > --- > > sox 14.4.1 How exactly was this file produced? > DC offset -0.999959 > Min level -1.000000 > Max level 0.026642 > Pk lev dB 0.00 > RMS lev dB nan > RMS Pk dB -0.00 > RMS Tr dB -0.03 > Crest factor 1.00 > Flat factor nan > Pk count nan > Bit-depth 16/16 > Num samples 191k > Length s 3.973 > Scale max 1.000000 > Window s 0.050 |