<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://xrecode.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=81.198.224.94</id>
	<title>XRECODE3 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://xrecode.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=81.198.224.94"/>
	<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Special:Contributions/81.198.224.94"/>
	<updated>2026-04-22T22:16:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=465</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=465"/>
		<updated>2017-05-01T20:10:30Z</updated>

		<summary type="html">&lt;p&gt;81.198.224.94: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by console version of XRECODE3, but to run it, you must also have the GUI version installed. Please see [[#Advanced]]&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
 Usage: &amp;lt;input&amp;gt; &amp;lt;dest&amp;gt; &amp;lt;parameters&amp;gt; &amp;lt;output&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 Parameters:&lt;br /&gt;
 /i           - Files to add. Wildcards are supported. If /r is used, files from sub-folders will be added as well.&lt;br /&gt;
 /dest        - Output format (mp3, ogg, flac, m4a, etc.)&lt;br /&gt;
 /o           - Output path.&lt;br /&gt;
 &lt;br /&gt;
 /preset n    - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n   - Qulity parameter for Ogg.&lt;br /&gt;
 /cbr         - Use CBR (e.g. 160, 192, 320, etc. Also used as CBR Max parameter).&lt;br /&gt;
 /vbr         - Use VBR (e.g. 160, 192, 320, etc. also used as VBR Max parameter).&lt;br /&gt;
 /vbrmin      - VBR Min parameter (e.g. 160, 192, 320, etc.).&lt;br /&gt;
 /js          - Use Joint Stereo (for mp3 only).&lt;br /&gt;
 /dc          - Use Dual Channel (for mp3 only).&lt;br /&gt;
 /maxng       - Apply Max Noclip Gain (for mp3 only).&lt;br /&gt;
 &lt;br /&gt;
 /merge       - Merge files (using merge per folder).&lt;br /&gt;
 /mergenbf    - Merge files (not using merge per folder).&lt;br /&gt;
 /split       - Split into file per channel.&lt;br /&gt;
 /one         - Encode to one multi-channel file.&lt;br /&gt;
 &lt;br /&gt;
 /temp        - Custom temporary files folder (e.g. c:\tempfolder).&lt;br /&gt;
 /pp n        - Number of Cores/CPUs to use (all will be used by default).&lt;br /&gt;
 /recycle     - Move source files to Recycle Bin when done.&lt;br /&gt;
 /delete      - Delete source files when done. USE WITH CAUTION!&lt;br /&gt;
 &lt;br /&gt;
 /usesource   - Add all source folders to the output path.&lt;br /&gt;
 /sourceb  n  - Number source folders (from the beginning) to include.&lt;br /&gt;
 /sourcee  n  - Number source folders (from the end) to include.&lt;br /&gt;
 /createinsrc - Create files in source folder.&lt;br /&gt;
 &lt;br /&gt;
 /sr          - Output sample rate.&lt;br /&gt;
 /c           - Output channels.&lt;br /&gt;
 /b           - Output bits per sample (16, 24, 32 or 32i). 32 is for 32bitfloat, 32i for 32bitint.&lt;br /&gt;
 /as n        - Specify which audio stream to use. Only usable for files with several audio streams.&lt;br /&gt;
                By default first one is used. Please note that index of the first audio stream is 1.&lt;br /&gt;
 &lt;br /&gt;
 /n           - Normalize audio (by default EBUR128 method is used).&lt;br /&gt;
 /na          - Normalize audio in album mode.&lt;br /&gt;
 /nafa        - Each folder is album (only works with -na).&lt;br /&gt;
 /nsit        - Save normalization values in Tags (can only be used together with -n).&lt;br /&gt;
 /nsaa        - Apply normalization to audio (can only be used together with -n).&lt;br /&gt;
 /nrg         - Use ReplayGain as a method&lt;br /&gt;
 /nrgl n      - Target dB level (89 by default).&lt;br /&gt;
 &lt;br /&gt;
 /sacdarea   n  - SACD ISO area to use (s for stereo, m for multi-channel, b for both).&lt;br /&gt;
 /sacdvolume n  - SACD ISO volume in dB (from 0 to 6).&lt;br /&gt;
 /sacdas     x  - extracd SACD as (DFF or DSF) &lt;br /&gt;
 &lt;br /&gt;
 /remsilence1 - Remove silence from the beginning of the track.&lt;br /&gt;
 /remsilence2 - Remove silence from the end of the track.&lt;br /&gt;
 /st          - Silence threshold  (0-32767). Default is 500.&lt;br /&gt;
 &lt;br /&gt;
 /sbt n       - Split input file by time (in milliseconds).&lt;br /&gt;
 /sbs         - Split input file by silence.&lt;br /&gt;
 /sbst        - Silence threshold  (0-32767). Default is 500.&lt;br /&gt;
 &lt;br /&gt;
 /limitbyd    - Limit by duration (in milliseconds).&lt;br /&gt;
 &lt;br /&gt;
 /mcmd        - Specify manual command line for external encoder (e.g. for mp3 /mcmd &amp;quot;-V0&amp;quot;).&lt;br /&gt;
 &lt;br /&gt;
 /fileexists  n - How to handle existing output file, where n is:&lt;br /&gt;
                  0 = Overwrite (default)&lt;br /&gt;
                  1 = Overwrite when source file is newer&lt;br /&gt;
                  2 = Rename existing file to .bak&amp;lt;n&amp;gt;&lt;br /&gt;
                  3 = Add a numeric suffix &amp;lt;_n&amp;gt; to the new file&#039;s name&lt;br /&gt;
                  4 = Skip&lt;br /&gt;
 &lt;br /&gt;
 /skipbadframes - Skip bad frames when decoding. Warning will be given, if any was skipped. Off by default.&lt;br /&gt;
 /buffersize    - Set encoding buffer size used by external exe encoder. Value is in KB, e.g. 64 means 64K.&lt;br /&gt;
 /onthefly      - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 /uselib        - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 &lt;br /&gt;
 Pattern parameters:&lt;br /&gt;
 /pfilename    - filename.&lt;br /&gt;
 /pcd          - CD.&lt;br /&gt;
 /pcue         - CUE.&lt;br /&gt;
 /pmerge       - Merge.&lt;br /&gt;
 /pmas         - Multiple audio-streams.&lt;br /&gt;
 /psplit       - Split.&lt;br /&gt;
 /psplitfpc    - Split into file per channel.&lt;br /&gt;
 /pmultiplewc  - Multiple audio-streams with chapters.&lt;br /&gt;
 /pareas       - SACD stereo pattern.&lt;br /&gt;
 /paream       - SACD multi-channel pattern.&lt;br /&gt;
 &lt;br /&gt;
 Metadata parameters:&lt;br /&gt;
 /nometa             - Do not save Metadata in output file (including covers).&lt;br /&gt;
 /createcue          - Create CUE file.&lt;br /&gt;
 /embedcue           - Embed CUE into output file (if supported).&lt;br /&gt;
 /createm3u          - Create m3u playlist.&lt;br /&gt;
 /nocovers           - Do not save cover(s) in output file.&lt;br /&gt;
 /onlyfirst          - Save only first cover in output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to.&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to.&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 &lt;br /&gt;
 /retrvievemeta      - Retrieve Metadata from internet.&lt;br /&gt;
 &lt;br /&gt;
 /matrix             - Set output matrix, e.g. FL:0,1;FR:1,0 to exchange left and right channels of a stereo file.&lt;br /&gt;
 &lt;br /&gt;
 /rename             - Rename files using pattern.&lt;br /&gt;
 &lt;br /&gt;
 Notes:&lt;br /&gt;
 Dash (-) and forward slash (/) both can be used to specify parameters, e.g. both /i and -i are valid.&lt;br /&gt;
 If sample rate, channels or bits per sample are too large for the specified format,&lt;br /&gt;
 maximum possible value will be used instead.&lt;br /&gt;
 &lt;br /&gt;
 Use --ansi-output parameter if you want to forward program&#039;s output to a file. Errors will be written to the StdErr.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 To display information about file(s) use -i parameter only.&lt;br /&gt;
 &lt;br /&gt;
== Examples ==&lt;br /&gt;
 &lt;br /&gt;
 Output information about file:&lt;br /&gt;
    -i c:\files\00001.m2ts&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files (including sub-folders) to mp3:&lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files (including sub-folders) to mp3 using joint-stereo: &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /cbr 320 /js&lt;br /&gt;
    &lt;br /&gt;
 Convert wav files (including sub-folders) to mp3 using VBR method:   &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbrmin 64 /vbrmax 320&lt;br /&gt;
    &lt;br /&gt;
 Convert wav files (including sub-folders) to mp3 using preset 5:      &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /preset 5&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files (including sub-folders) to ogg using quality/preset 5:&lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest ogg /quality 5&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files (including sub-folders) to ogg using CBR 160:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest ogg /cbr 160&lt;br /&gt;
    &lt;br /&gt;
 Convert wav files to flac using 96000 as output sample rate and 24-bit as output sample format:&lt;br /&gt;
    -i c:\files\*.wav -o &amp;quot;c:\output with spaces&amp;quot; /dest flac /b 24 -sr 96000&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files to flac, using 96000 as output sample rate and 24bit as output sample format. Also analyse Replay Gain and apply to output audio:&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /b 24 /sr 96000 /n /nsaa&lt;br /&gt;
    &lt;br /&gt;
 Convert wav files to mp3 by applying matrix to the audio to swap left and right channels:    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest mp3 /matrix &amp;quot;FL:0,1;FR:1,0&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert several wav files to one flac file:&lt;br /&gt;
    -i c:\files\*.wav -o &amp;quot;c:\output&amp;quot; /dest flac /one&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files (including sub-folders) to mp3. Normal output is redirected to file names process, error output is redirected to file named errors:&lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 --ansi-output 1&amp;gt;process 2&amp;gt;errors&lt;br /&gt;
     &lt;br /&gt;
 Rename added files:&lt;br /&gt;
    -i c:\files\*.mp3 /rename &amp;quot;%track2%. %title%&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Convert CUE image to mp3 by specifying custom file name pattern:&lt;br /&gt;
    -i c:\files\one.cue /dest mp3 /pcue &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
  Extracd SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== How to have console executable in a separate folder ===&lt;br /&gt;
Normally, executable of console version (xrecode3cx64.exe or xrecode3c) should be copied to the same folder as executable of the GUI program (e.g. &amp;quot;C:\Program Files\xrecode3&amp;quot; or &amp;quot;C:\Program Files (x86)\xrecode3&amp;quot;), but it is also possible to keep them in separate folders. For example:&lt;br /&gt;
*executable of console version is copied to folder &amp;quot;C:\xr3console&amp;quot;&lt;br /&gt;
*main executable is located in &amp;quot;C:\Program Files\xrecode3&amp;quot;&lt;br /&gt;
Parameter /bin can be used to tell console executable where the main program is:&lt;br /&gt;
*C:\xr3console\xrecode3cx64.exe /bin &amp;quot;C:\Program Files\xrecode3\bin&amp;quot; -i &amp;quot;D:\test\wav\album\*.wav&amp;quot; -o &amp;quot;d:\converted\output&amp;quot; /dest flac&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
=== Specify external executable files ===&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;settings.ini&#039;&#039; file. For example, if console executable is located in folder c:\xr3console, settings.ini for it must be put in a folder c:\xr3console\portable\console\settings\x86 for 32-bit executable, or c:\xr3console\portable\console\settings\x64 for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for all used executables like this&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>81.198.224.94</name></author>
	</entry>
</feed>