OSX 上的 SOX 录制无法正常工作?

发布于 2024-11-04 10:57:39 字数 3126 浏览 0 评论 0原文

我遇到了 sox (http://sox.sourceforge.net/) 无法在 OSX 上录制的问题。

我尝试过手动编译以及通过自制程序安装并得到相同的结果。

    root# sudo ./sox -V6 -d test.wav
    ./sox: SoX v14.3.1
    time:  Apr 30 2011 10:35:05
    uname: Darwin IT.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
    gcc:   4.2.1 (Apple Inc. build 5666) (dot 3)
    arch:  1288 48 88 L 

    Input File     : 'default' (coreaudio)
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no

    ./sox INFO sox: Overwriting `test.wav'
    ./sox DBUG wav: Writing Wave file: Microsoft PCM format, 2 channels, 48000 samp/sec
    ./sox DBUG wav:         192000 byte/sec, 4 block align, 16 bits/samp

    Output File    : 'test.wav'
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no
    Comment        : 'Processed by SoX'

    ./sox INFO sox: effects chain: input      48000Hz 2 channels 16 bits (multi)
    ./sox INFO sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
    In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0    
    Done.
    ./sox DBUG wav: Finished writing Wave file, 0 data bytes 0 samples

与在 Ubuntu 上运行相比:

    root# sox -V6 -d /tmp/test.wav
    /usr/local/bin/.libs/lt-sox: SoX v14.3.1
    time:  Jan 23 2011 06:26:14
    uname: Linux server 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64
    gcc:   4.4.5
    arch:  1288 48 88 L OMP

    Input File     : 'default' (alsa)
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no

    /usr/local/bin/.libs/lt-sox INFO sox: Overwriting `/tmp/test.wav'
    /usr/local/bin/.libs/lt-sox DBUG wav: Writing Wave file: Microsoft PCM format, 2 channels, 48000 samp/sec
    /usr/local/bin/.libs/lt-sox DBUG wav:         192000 byte/sec, 4 block align, 16 bits/samp

    Output File    : '/tmp/test.wav'
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no
    Comment        : 'Processed by SoX'

    /usr/local/bin/.libs/lt-sox INFO sox: effects chain: input      48000Hz 2 channels 16 bits (multi)
    /usr/local/bin/.libs/lt-sox INFO sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
    In:0.00% 00:00:07.94 [00:00:00.00] Out:377k  [      |      ]        Clip:0    ^C
    Aborted.
    /usr/local/bin/.libs/lt-sox DBUG wav: Finished writing Wave file, 1507328 data bytes 376832 samples

其他人可以确认这个问题吗?有什么想法吗?

Darwinknown.local 10.7.0 Darwin 内核版本 10.7.0:2011 年 1 月 29 日星期六 15:17:16 PST;根:xnu-1504.9.37~1/RELEASE_I386 i386

I'm running into issues with sox (http://sox.sourceforge.net/) failing to record on OSX.

I've tried hand compiling as well as installed via homebrew and get the same results.

    root# sudo ./sox -V6 -d test.wav
    ./sox: SoX v14.3.1
    time:  Apr 30 2011 10:35:05
    uname: Darwin IT.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
    gcc:   4.2.1 (Apple Inc. build 5666) (dot 3)
    arch:  1288 48 88 L 

    Input File     : 'default' (coreaudio)
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no

    ./sox INFO sox: Overwriting `test.wav'
    ./sox DBUG wav: Writing Wave file: Microsoft PCM format, 2 channels, 48000 samp/sec
    ./sox DBUG wav:         192000 byte/sec, 4 block align, 16 bits/samp

    Output File    : 'test.wav'
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no
    Comment        : 'Processed by SoX'

    ./sox INFO sox: effects chain: input      48000Hz 2 channels 16 bits (multi)
    ./sox INFO sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
    In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0    
    Done.
    ./sox DBUG wav: Finished writing Wave file, 0 data bytes 0 samples

As compared to running on Ubuntu:

    root# sox -V6 -d /tmp/test.wav
    /usr/local/bin/.libs/lt-sox: SoX v14.3.1
    time:  Jan 23 2011 06:26:14
    uname: Linux server 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64
    gcc:   4.4.5
    arch:  1288 48 88 L OMP

    Input File     : 'default' (alsa)
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no

    /usr/local/bin/.libs/lt-sox INFO sox: Overwriting `/tmp/test.wav'
    /usr/local/bin/.libs/lt-sox DBUG wav: Writing Wave file: Microsoft PCM format, 2 channels, 48000 samp/sec
    /usr/local/bin/.libs/lt-sox DBUG wav:         192000 byte/sec, 4 block align, 16 bits/samp

    Output File    : '/tmp/test.wav'
    Channels       : 2
    Sample Rate    : 48000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM
    Endian Type    : little
    Reverse Nibbles: no
    Reverse Bits   : no
    Comment        : 'Processed by SoX'

    /usr/local/bin/.libs/lt-sox INFO sox: effects chain: input      48000Hz 2 channels 16 bits (multi)
    /usr/local/bin/.libs/lt-sox INFO sox: effects chain: output     48000Hz 2 channels 16 bits (multi)
    In:0.00% 00:00:07.94 [00:00:00.00] Out:377k  [      |      ]        Clip:0    ^C
    Aborted.
    /usr/local/bin/.libs/lt-sox DBUG wav: Finished writing Wave file, 1507328 data bytes 376832 samples

Can anyone else confirm this issue? Any ideas why?

Darwin unknown.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

马蹄踏│碎落叶 2024-11-11 10:57:39

简短的故事:OSX 上的 SoX 错误,尚未在发布版本中修复。

从源代码编译: http://sourceforge.net/mailarchive/forum.php?thread_name=D41696C9-E028-4111-AEC9-DE5C7D4C2C80%40qwest.net&forum_name=sox-users

git clone git://sox.git.sourceforge.net/gitroot/sox/sox
cd sox
osxbuild

(不解决依赖性问题,只是上面报告的主要问题)

Short story: SoX Bug on OSX, Fix is not yet in released versions.

Compile from source: http://sourceforge.net/mailarchive/forum.php?thread_name=D41696C9-E028-4111-AEC9-DE5C7D4C2C80%40qwest.net&forum_name=sox-users

git clone git://sox.git.sourceforge.net/gitroot/sox/sox
cd sox
osxbuild

(Doesn't address dependency issues, just the main issue reported above)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文