Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Sox errors Win 10 - doesn't resample files

Options
  • 05-03-2016 4:23am
    #1
    Registered Users Posts: 10,381 ✭✭✭✭


    It's 3AM, I've spent far too long trying to get this working, hopefully I'll leave this here and some elves will have made everything better when I arise tomorrow.

    What I have tried:
    I have reinstalled every way possible, even manually deleting registry keys.
    I have given the user (even though it is administrator) permissions.
    I have created a shortcut to the batch file and made it run as administrator.
    I have added to the path in the System Variables in Environment Variables.

    Problem:
    I am trying to resample some flac files from 96k down to anything else (44.1k in this example).
    When I tried initially, it was doing nothing at all.
    I was getting the error -
    'sox' is not recognized as an internal or external command, operable program or batch file.

    So I tried all of the above. Now when I drag and drop any files over the shortcut to the batch file (seems to be the only way to get any indication something is happening) it flashes up for a second, then disappears. If I run the batch file as administrator, it finishes the job and message 'press any key' appears, but all it does is create the new directory.

    I have tried everything I can think of, any help with be great.
    Windows 10 64bit.

    My Batch File:
    cd %~dp0
    mkdir resampled
    FOR %%A IN (%*) DO sox %%A -b 16 "resampled/%%~nxA" rate -v -s -M 44100 dither
    pause

    It won't do single files or batch.
    I have to give up for the night.


Comments

  • Registered Users Posts: 2,807 ✭✭✭Custardpi


    Obviously not an exact answer to your question but have you tried alternative methods for resampling the files? I've used the Sox plugin for Foobar anytime I've needed to resample files but there's a few others available too. Is this only something that's been happening recently? The latest update to Windows 10 could have compatibility problems with some programmes or drivers.


  • Registered Users Posts: 10,381 ✭✭✭✭Allyall


    Thanks. Yep, I would normally use Foobar w/Sox, Audacity, or switch.

    I was just planning on keeping the PC 'clean' as I have all my music on a server anyway. Any resampling I may need is normally done there.
    It was just when I wasn't able to do it, it became more of a case of really wanting to :o:D.

    Anyway, I'll try again in a while, and see if it's something you mentioned or something stupid I was doing. Thanks.


  • Moderators, Technology & Internet Moderators Posts: 11,016 Mod ✭✭✭✭yoyo


    What happens when you type sox on its own into the cmd prompt? Is the application detected?

    Nick


  • Registered Users Posts: 10,381 ✭✭✭✭Allyall


    yoyo wrote: »
    What happens when you type sox on its own into the cmd prompt? Is the application detected?

    Nick

    Yep. Everything else seems normal.
    I thought I may have used misspelled something, or Capitalised the Directory in the first line but not the latter.
    But didn't.
    It's driving me mad. :(

    EDIT -

    Okay.
    Something is after happening after Sox dialogue came up in command prompt.

    An error -
    I missed the error, "Your PC has ran into problem... Restart..."

    I missed what it said. Rebooting now.


  • Registered Users Posts: 10,381 ✭✭✭✭Allyall


    Obviously a problem with Windows 10 and not Sox.

    Sox seems to be working now, after trying "sox" in cmd, it seemed to have kicked something.
    Although now I have errors to fix on crud windows.

    Sox is working but it seems to be repeating the album title/folder repeatedly before it does the resample.
    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)

    C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)>cd C:\Program Files\sox-14-4-2\

    C:\Program Files\sox-14-4-2>mkdir resampled
    A subdirectory or file resampled already exists.

    C:\Program Files\sox-14-4-2>FOR %A IN ("C:\User\MXA\HD_Music\Bozzio Lev
    in Stevens - Black Light Syndrome (HD 24-96)
    \B2 - Duende.flac" "C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black L
    ight Syndrome (HD 24-96)\C1 - Black Light Sy
    ndrome.flac" "C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light S
    yndrome (HD 24-96)\C2 - Falling In Circles.f
    lac" "C:\User\MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome
    (HD 24-96)\D1 - Book Of Hours.flac" "C:\User
    \MXA\HD_Music\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)\D2 - Chaos_Control.flac" "C:\User\MXA\HD_Musi
    c\Bozzio Levin Stevens - Black Light Syndrome (HD
    24-96)\A1 - The Sun Road.flac" "C:\User\MXA\HD_Music\Bozz
    io Levin Stevens - Black Light Syndrome (HD
    24-96)\B1 - Dark Corners.flac") DO sox %A -b 16 "resampled/%~nxA" rate -v -s -M
    44100 dither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\B2 - D
    uende.flac" -b 16 "resampled/B2 - Duende.flac" rate -v -s -M 44100 dither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\C1 - B
    lack Light Syndrome.flac" -b 16 "resampled/C1 - Black Light Syndrome.flac" rate
    -v -s -M 44100 dither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\C2 - F
    alling In Circles.flac" -b 16 "resampled/C2 - Falling In Circles.flac" rate -v -
    s -M 44100 dither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\D1 - B
    ook Of Hours.flac" -b 16 "resampled/D1 - Book Of Hours.flac" rate -v -s -M 44100
    dither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\D2 - C
    haos_Control.flac" -b 16 "resampled/D2 - Chaos_Control.flac" rate -v -s -M 44100
    dither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\A1 - T
    he Sun Road.flac" -b 16 "resampled/A1 - The Sun Road.flac" rate -v -s -M 44100 d
    ither

    C:\Program Files\sox-14-4-2>sox "C:\User\MXA\HD_Music\Bozzio Levin Stev
    ens - Black Light Syndrome (HD 24-96)\B1 - D
    ark Corners.flac" -b 16 "resampled/B1 - Dark Corners.flac" rate -v -s -M 44100 d
    ither

    C:\Program Files\sox-14-4-2>pause
    Press any key to continue . . .

    Very weird. But as it's working, I'm happy :)

    Thanks all, and thanks yoyo, as I would probably never have tried sox on it's own, which seems to have kicked the whole thing to do something.
    :)


  • Advertisement
Advertisement