Note that there are some explanatory texts on larger screens.

plurals
  1. POSox --multi-thread option: Split stereo wav file to 2 mono files Windows Line command
    primarykey
    data
    text
    <p>I've written a batch program in windows command-line to take a stereo wav file and split the right and left channel into separate FLAC files using sox v.14.4.0 audio program. Like so..</p> <pre><code>for /r %%n in (*.wav) do ( C:\sox\sox.exe %%n -c 1 %%n.left.flac remix 1 C:\sox\sox.exe %%n -c 2 %%n.right.flac remix 2) </code></pre> <p>However, this takes a bit longer than I'd like. I looked into this more and it appears that I can use SOX_OPTS and the --multi-thread option along with --buffer in order to perform two sox operations at the same time. </p> <p>The Sox documentation states this:</p> <p>The SOX_OPTS environment variable can be used to provide alternative default values for SoX’s global options. For example:</p> <pre><code>SOX_OPTS="−−buffer 20000 −−play−rate−arg −hs −−temp /mnt/temp" </code></pre> <p>Note that the way to set environment variables varies from system to system. Here are some examples: MS-DOS/MS-Windows:</p> <pre><code>set SOX_OPTS=−V −−no-clobber −−buffer BYTES, −−input−buffer BYTES </code></pre> <p>Set the size in bytes of the buffers used for processing audio (default 8192).<br> −−buffer applies to input, effects, and output processing;<br> −−input−buffer applies only to input processing (for which it overrides −−buffer if both are given).<br> Be aware that large values for −−buffer will cause SoX to be become slow to respond to requests to terminate or to skip the current input file.</p> <p>Two questions.</p> <ol> <li>Is it possible to do split 1 input file to 2 output files simultaneously using --multi-thread as explained above or another way? </li> <li>If so, how? (note: I haven't been able to figure out the correct syntax to get SOX_OPTS from the documentation above to work on it's own never mind in a batch file)</li> </ol> <p>Also: I've found some other stackoverflow questions similar to this but always using java, php, linux, etc. Unfortunately, I don't have any knowledge of those programs. Please be sympathetic of my programming ignorance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload