|
|
|
06-03-2023, 11:00 AM
|
#1
|
Human being with feelings
Join Date: Jun 2023
Location: Berlin
Posts: 2
|
Limit number of CPU cores used when batch converting via CLI?
Is there a way to specify how many cores to use when batch converting via the CLI? Example:
<path-to-reaper> -batchconvert filelist.txt
In the Batch File/Item Converter UI, I use the “Use CPU cores” dropdown to accomplish this. Changing this value will change the “convertopts” value in my reaper.ini file. I tried passing in the path to my reaper.ini file as a "-cfgfile" argument, but that didn't work -- Reaper always renders with all available cores even if I specify a single core.
More context: some VSTs (e.g. Chromaphone) don’t seem to load and render reliably when batch converting with multiple cores. For example, presets might not load in time, audio can “leak” between files etc. Forcing single-core rendering for these VSTs seems to make it more reliable. I’m using Reaper v6.80.0.
Thankful for any suggestions!
|
|
|
06-03-2023, 11:06 AM
|
#2
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 15,750
|
Hmm, no, there is currently no way to set the cpu core limit when batch converting from the command line. We can look at maybe adding this, though.
|
|
|
06-03-2023, 12:06 PM
|
#3
|
Human being with feelings
Join Date: Jun 2023
Location: Berlin
Posts: 2
|
Thanks for the quick reply, good to know I wasn’t overlooking something obvious. It would be great to have this option available from the CLI.
|
|
|
07-05-2023, 12:24 AM
|
#4
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,134
|
Added in 6.81. Where can the syntax be looked up?
|
|
|
07-05-2023, 05:26 AM
|
#5
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 15,750
|
If you run REAPER from the command line with an unrecognized parameter (like 'reaper -?' for example) then you'll get the command line help, including documentation for the -batchconvert file list. Here is the documentation for 'reaper -batchconvert':
Code:
-batchconvert filelist.txt : batch converter mode, filelist.txt includes:
filename.wav
(or)
filename.wav(TAB CHARACTER)outputfile.wav
(any number of additional files)
<CONFIG block (optional) which can contain:
SRATE 44100 (omit to use source samplerate)
NCH 2 (omit to use source channel count)
RSMODE modeidx (resample mode, copy from project file)
DITHER 3 (1=dither, 2=noise shaping, 3=both)
USESRCSTART 1 (1=write source media BWF start offset to output)
USESRCMETADATA 1 (1=attempt to preserve original media file metadata if possible)
PAD_START 1.0 (leading silence in sec, can be negative)
PAD_END 1.0 (trailing silence in sec, can be negative)
OUTPATH 'path'
OUTPATTERN 'wildcardpattern'
NORMALIZE 1 -6.0 0 (1=peak, 2=true peak, 3=lufs-i, 4=lufs-s, 5=lufs-m,
2nd parameter is dB,
3rd parameter: 1=normalize only if too loud)
BRICKWALL 1 -1.0 (1=peak, 2=true peak, 2nd parameter is dB)
FADE 0.0 0.0 1 1 (fade-in length, fade-out length, fade-in shape, fade-out shape; length 0.001 = 1 ms)
FXCHAIN 'fxchainfilename' (use full path if specified, otherwise FxChains directory)
FX_NCH 4 (if not specified, FX will be configured to 4 channels)
CPULIMIT 0 (0 or omit=use all available CPU cores, 1=limit to 1 core, etc)
<FXCHAIN
(contents of .RfxChain file)
>
<OUTFMT
(base64 data, e.g. contents of <RENDER_CFG or <RECORD_CFG block from project file)
>
<METADATA
(contents of <RENDER_METADATA block from project file)
>
>
|
|
|
07-05-2023, 06:01 AM
|
#6
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,134
|
Thank you!
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:51 PM.
|