VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Hello, I use SoX 14.3.2 in Ubuntu 12.04, 64bit.

    I want to use the pad option:

    sox input.wav output.wav pad 0.150

    SoX starts normally.

    But then the process is cancelled without any feedback, as if it was successful. But it wasn't. I starts and ends just a few seconds later, leaving me with only a 250MB / 4 minutes long wav file. The source wav is 4.4.GB and 2hrs long. I have no idea why it doesn't complete it. The wav is 6-channel. The too short output file plays fine. It's just that SoX simply finishes already after 4 minutes of the file.

    What can I do? Is there a SoX forum somewhere? Didn't find any on the project homepage.
    Quote Quote  
  2. you might want to update to 14.4 because this is one of the problems fixed iirc (see: http://sox.git.sourceforge.net/git/gitweb.cgi?p=sox/sox;a=blob;f=ChangeLog;hb=6dff9411...8b7df334606820)

    Is there a SoX forum somewhere?
    if you find one, post a link, I got a bunch of questions regarding 'best use' of sox,...

    also you might want to create w64 files instead of normal wav files,...
    Quote Quote  
  3. Thanks for that hint. Problem is I get an error already at first step of compile instruction "autoreconf -i":

    Code:
    Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
    Quote Quote  
  4. that probably means that you are missing libtool,...
    wild guess: try if 'sudo apt-get install libtool' helps
    Quote Quote  
  5. Thanks.

    I simply used Synaptic Package Manager, searched for libtool, marked it for installation and installed it.

    Then I followed the instructions for creating the installation files.
    However, when I was finished and tested SoX, I ran into this error:

    Code:
    error while loading shared libraries: libsox.so
    which I luckily could solve thanks to this instruction:

    "Add /usr/local/lib to /etc/ld.so.conf and then run /sbin/ldconfig"
    http://old.nabble.com/SOX-14.2.0-1-Build-from-source-error-%22..error..shared-librarie...d22392740.html
    Once more, thank you very much for your help! Still trying to find a SoX forum though ^^
    Quote Quote  
  6. But damn, now I get this error when trying to convert to Flac:

    Code:
    sox FAIL formats: no handler for file extension `flac'
    I checked:

    Code:
    sudo apt-get install libsox-fmt-base
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    libsox-fmt-base is already the newest version.
    libsox-fmt-base set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    Now I'm stuck

    EDIT:
    I also tried to use 'pad' with creating another wav file:

    sox input.wav output.wav pad 0.150

    And the bug is still there. SoX simply terminates early, after 150MB already, even though the wav file is 4GB. Yes, I'm really stuck here. SoX version is 14.4.0, I checked.
    Last edited by encoderharry; 22nd Sep 2012 at 18:05.
    Quote Quote  
  7. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by encoderharry View Post
    Now I'm stuck
    Looks like you compiled SoX without flac support.
    ./configure command should show results similar to this:-
    OPTIONAL FILE FORMATS
    amrnb......................yes
    dlopen amrnb..............no
    amrwb......................yes
    dlopen amrwb..............no
    ffmpeg.....................no
    flac.......................yes
    gsm........................yes (external)
    lpc10......................yes (in-tree)
    mp2/mp3....................yes
    id3tag....................yes
    lame......................yes
    lame id3tag...............yes
    dlopen lame...............no
    mad.......................yes
    dlopen mad................no
    twolame...................yes
    dlopen twolame............no
    oggvorbis..................yes
    sndfile....................yes
    dlopen sndfile............no
    wavpack....................yes
    Quote Quote  
  8. Originally Posted by bat999 View Post
    Looks like you compiled SoX without flac support.
    Guess I have to compile it again then. How do I remove what I just installed? Can I use package manager for self-compiled stuff to remove?

    However, the new SoX version still has the same bug and terminates after a few megabytes. So it's pretty much useless

    EDIT: Package manager still shows old version 14.3.2-3. So perhaps when I use SoX in terminal, it uses the old version? But no, that can't be. When I check version of SoX in terminal, it shows 14.4.0.

    EDIT: I followed this to be able to uninstall the self-compiled package:
    http://ubuntuforums.org/showthread.php?t=1297757
    Last edited by encoderharry; 22nd Sep 2012 at 18:17.
    Quote Quote  
  9. Perhaps the problem is that the libsox stuff still showed up as the old version?

    SoX itself shows as the new version, but the libs used don't.
    Quote Quote  
  10. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by encoderharry View Post
    Perhaps the problem is that the libsox stuff still showed up as the old version?
    Remove old SoX like this:
    Code:
    sudo apt-get -y remove sox
    Then post the output from this command:-
    Code:
    sox --version
    Quote Quote  
  11. Just removed SoX 14.4, because I wanted to recompile it. However, now I have the problem that checkinstall created some doc-pak in the dir with the source. And this dir can't be removed.

    EDIT: Well, I forced the removal with sudo. Hope I didn't harm anything with package management.

    Anyway, I have to recompile it now. But how do I also upgrade the libraries used? As I said, they all showed up with v14.3, only SoX itself shows with 14.4.

    I'm too tired now. Guess I give it another try tomorrow.
    Quote Quote  
  12. Ok, I give up. It's too much hassle. I suppose with Ubuntu 12.10, SoX will be updated, too. Until then, I simply use Audacity to add silence. Because I really don't need this very often.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!