<?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=Wikiadmin</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=Wikiadmin"/>
	<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Special:Contributions/Wikiadmin"/>
	<updated>2026-04-22T16:46:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Path_Settings&amp;diff=1123</id>
		<title>Output Path Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Path_Settings&amp;diff=1123"/>
		<updated>2025-02-16T08:25:09Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Additional_output_path_settings.png]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Preserve the structure of the source folder&lt;br /&gt;
|Folders structure of the source file will be re-used, when creating output path. For example, if source file has full path &amp;quot;c:\audio\album\file.flac&amp;quot; and output path is set to &amp;quot;c:\converted&amp;quot;, then the output file will be &amp;quot;c:\converted\&#039;&#039;&#039;audio\album\file.mp3&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the beginning) to include&lt;br /&gt;
|Specify number of source folders (from the beginning) to use when creating the output path. If, for example, it is set to 1, then output file from the example above would be &amp;quot;c:\converted\&#039;&#039;&#039;audio\file.mp3&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the end) to include&lt;br /&gt;
|Specify number of source folders (from the end) to use when creating the output path. If, for example, it is set to 1, then output file from the example above would be &amp;quot;c:\converted\&#039;&#039;&#039;album\file.mp3&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the beginning) to skip&lt;br /&gt;
|Specify number of source folders to skip (from the beginning) when creating the output path.&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the end) to skip&lt;br /&gt;
|Specify number of source folders to skip (from the end) when creating the output path.&lt;br /&gt;
|-&lt;br /&gt;
|Maximum output file name length&lt;br /&gt;
|Specify the maximum length of the output file name (only the file name, not the whole path). File name will be cut up to this number, if it&#039;s longer. If, as a result, more than one file gets the same name, a unique file name will be created.&lt;br /&gt;
|-&lt;br /&gt;
|Maximum output path length&lt;br /&gt;
|Specify the maximum length of the output file path. If the length of the output path and file name is bigger than this, program will show an error.&lt;br /&gt;
|-&lt;br /&gt;
|Discard CUE output folder when &amp;quot;Create files in source folder&amp;quot; is used&lt;br /&gt;
|Normally, when converting audio file added via CUE, output files will be created in a sub-folder (specified by a pattern), even if &amp;quot;Create files in source folder&amp;quot; option is used. If this option is enabled, files will be created directly in then output folder. &lt;br /&gt;
|-&lt;br /&gt;
|Delete source file when done (do not move to Recycle Bin)&lt;br /&gt;
|Source files will be deleted when process is completed. &#039;&#039;&#039;Please use with caution.&#039;&#039;&#039;. This option is disabled when &amp;quot;Move source file to Recycle Bin when done&amp;quot; is used and vice versa.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File_Name_Pattern_Elements&amp;diff=1122</id>
		<title>File Name Pattern Elements</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File_Name_Pattern_Elements&amp;diff=1122"/>
		<updated>2024-12-12T20:01:27Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Lossy/Lossless */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Elements from file name and/or audio stream ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%filename%&lt;br /&gt;
|Output file name (created from the input file name).&lt;br /&gt;
|-&lt;br /&gt;
|%folder%&lt;br /&gt;
|Input file name folder, e.g. &#039;&#039;audio&#039;&#039; for file c:\some\folder\audio\file.flac.&lt;br /&gt;
|-&lt;br /&gt;
|%outputfiletype%&lt;br /&gt;
|Output file type, e.g. mp3.&lt;br /&gt;
|-&lt;br /&gt;
|%filetype%&lt;br /&gt;
|The same as %outputfiletype%&lt;br /&gt;
|-&lt;br /&gt;
|%language%&lt;br /&gt;
|Language (for file with multiple audio streams).&lt;br /&gt;
|-&lt;br /&gt;
|%streamid%&lt;br /&gt;
|Audio stream index.&lt;br /&gt;
|-&lt;br /&gt;
|%codec%&lt;br /&gt;
|Input file Codec.&lt;br /&gt;
|-&lt;br /&gt;
|%nchannel%&lt;br /&gt;
|Channel number (used in &amp;quot;Split into file per channel&amp;quot;).&lt;br /&gt;
|-&lt;br /&gt;
|%chname%&lt;br /&gt;
|Channel name (used in &amp;quot;Split into file per channel&amp;quot;), e.g. (FL, FR, C, etc).&lt;br /&gt;
|-&lt;br /&gt;
|%channels%&lt;br /&gt;
|Number of channels of the output file.&lt;br /&gt;
|-&lt;br /&gt;
|%originalfilename%&lt;br /&gt;
|Input file name (used in &amp;quot;Split By&amp;quot; file name pattern). Also, if files were added vie CUE file, input file name will be used for output.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Metadata elements ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%albumartist%&lt;br /&gt;
|Album artist&lt;br /&gt;
|-&lt;br /&gt;
|%artist%&lt;br /&gt;
|Artist&lt;br /&gt;
|-&lt;br /&gt;
|%album%&lt;br /&gt;
|Album&lt;br /&gt;
|-&lt;br /&gt;
|%track%&lt;br /&gt;
|Track&lt;br /&gt;
|-&lt;br /&gt;
|%track2%&lt;br /&gt;
|2 digit track number, i.e. values 1-9 will be left-padded with a zero (01, 02, etc.).&lt;br /&gt;
|-&lt;br /&gt;
|%disc%&lt;br /&gt;
|Disc&lt;br /&gt;
|-&lt;br /&gt;
|%disc2%&lt;br /&gt;
|See %track2%&lt;br /&gt;
|-&lt;br /&gt;
|%disc3%&lt;br /&gt;
|The same as %disc%, only if value is 1/1, it will be discarded.&lt;br /&gt;
|-&lt;br /&gt;
|%title%&lt;br /&gt;
|Title&lt;br /&gt;
|-&lt;br /&gt;
|%year%&lt;br /&gt;
|Year&lt;br /&gt;
|-&lt;br /&gt;
|%date%&lt;br /&gt;
|Date&lt;br /&gt;
|-&lt;br /&gt;
|%genre%&lt;br /&gt;
|Genre&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Pregap ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%pre%:pre_&lt;br /&gt;
|It will be processed as&lt;br /&gt;
* if option to save pre-gaps as a separate tracks is enabled and it&#039;s a pre-gap track then [%pre%:pre_] will be replaced with value pre_&lt;br /&gt;
* if option to save pre-gaps as a separate tracks is enabled and it&#039;s not a pre-gap track then [%pre%:pre_] will be discarded&lt;br /&gt;
* if option to save pre-gaps as a separate tracks is not enabled then [%pre%:pre_] will be discarded&lt;br /&gt;
* pre_ can be any value, but it must not contain spaces&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Lossy/Lossless ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%lossy%:lossy:lossless]&lt;br /&gt;
|It will be processed as&lt;br /&gt;
* if the input audio is lossy, the value between 1st and 2nd colon will be used&lt;br /&gt;
* if the input audio is lossless, the value after and 2nd colon will be used&lt;br /&gt;
* values for losless or lossy can also be left empty (see examples below)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Lossy/Lossless Examples ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%lossy%:lossy:losless]\%filename%&lt;br /&gt;
|&lt;br /&gt;
* if the input audio is lossy, the output path will be defined_output_path\lossy\output_file_name&lt;br /&gt;
* if the input audio is lossless, the output path will be defined_output_path\lossless\output_file_name&lt;br /&gt;
|-&lt;br /&gt;
|[%lossy%:lossy:]\%filename%&lt;br /&gt;
|&lt;br /&gt;
* if the input audio is lossy, the output path will be defined_output_path\lossy\output_file_name&lt;br /&gt;
* if the input audio is lossless, the output path will be defined_output_path\output_file_name&lt;br /&gt;
|-&lt;br /&gt;
|[%lossy%::lossless]\%filename%&lt;br /&gt;
|&lt;br /&gt;
* if the input audio is lossy, the output path will be defined_output_path\lossy\output_file_name&lt;br /&gt;
* if the input audio is lossless, the output path will be defined_output_path\output_file_name&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Optional parts ==&lt;br /&gt;
Some parts of the Pattern can be marked as optional, which means that if Metadata element in that part is empty, the whole part will be discarded. Optional part is enclosed in brackets [ ]. For example:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%albumartist%[ - %album%]\%track2%. %title%&lt;br /&gt;
|If %album% is empty, then everything, which was enclosed in [ ] will be discarded (including dash and space).&lt;br /&gt;
|-&lt;br /&gt;
|%filename%_(%streamid%[_%language%][%codec%])&lt;br /&gt;
|Here, if %language% is empty, underscore won&#039;t be added to the output file name.&lt;br /&gt;
|}&lt;br /&gt;
* It is also possible to add several, comma separated, tag patterns elements in []. In this case the first non-empty value will be used. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%title%,%album%]&lt;br /&gt;
|If %title% is not empty, it will be used. If %album% is not empty, then it will be used. If both, %title% and %album% are empty, the whole [] block will be discarded.&lt;br /&gt;
|-&lt;br /&gt;
|[%title%,%album%][-%albumartist%,-%performer%]&lt;br /&gt;
|You can use multiple [] blocks. Dash before the pattern element will be retained, if the pattern element is used. Otherwise it will be discarded.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Tags with multiple values ==&lt;br /&gt;
It is possible to access value of the tag by index, e.g. %genre(1)% will return first value. &lt;br /&gt;
&lt;br /&gt;
== Case conversion ==&lt;br /&gt;
Is is possible to change case of the Metadata elements using the following:&lt;br /&gt;
* To have element in UPPER case, either add a prefix U to it (e.g. %Utitle%, %Ufilename%) or have it all in uppercase (e.g. %TITLE%, %ALBUM%, %FILENAME%).&lt;br /&gt;
* To have element in lower case, add a prefix L to it (%Ltitle%, %Lfilename%).&lt;br /&gt;
* To have element Capitalized, add a prefix C to it (%Ctitle%, %Cfilename%).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Date conversion elements (taken from Linux) ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%%&lt;br /&gt;
|a literal %&lt;br /&gt;
|-&lt;br /&gt;
|%a&lt;br /&gt;
|locale&#039;s abbreviated weekday name (e.g., Sun)&lt;br /&gt;
|-&lt;br /&gt;
|%A&lt;br /&gt;
|locale&#039;s full weekday name (e.g., Sunday)&lt;br /&gt;
|-&lt;br /&gt;
|%b&lt;br /&gt;
|locale&#039;s abbreviated month name (e.g., Jan)&lt;br /&gt;
|-&lt;br /&gt;
|%B&lt;br /&gt;
|locale&#039;s full month name (e.g., January)&lt;br /&gt;
|-&lt;br /&gt;
|%c&lt;br /&gt;
|locale&#039;s date and time (e.g., Thu Mar  3 23:05:25 2005)&lt;br /&gt;
|-&lt;br /&gt;
|%C&lt;br /&gt;
|century; like %Y, except omit last two digits (e.g., 20)&lt;br /&gt;
|-&lt;br /&gt;
|%d&lt;br /&gt;
|day of month (e.g., 01)&lt;br /&gt;
|-&lt;br /&gt;
|%D&lt;br /&gt;
|date; same as %m/%d/%y&lt;br /&gt;
|-&lt;br /&gt;
|%e&lt;br /&gt;
|day of month, space padded; same as %_d&lt;br /&gt;
|-&lt;br /&gt;
|%F&lt;br /&gt;
|full date; same as %Y-%m-%d&lt;br /&gt;
|-&lt;br /&gt;
|%g&lt;br /&gt;
|last two digits of year of ISO week number (see %G)&lt;br /&gt;
|-&lt;br /&gt;
|%G&lt;br /&gt;
|year of ISO week number (see %V); normally useful only with %V&lt;br /&gt;
|-&lt;br /&gt;
|%h&lt;br /&gt;
|same as %b&lt;br /&gt;
|-&lt;br /&gt;
|%H&lt;br /&gt;
|hour (00..23)&lt;br /&gt;
|-&lt;br /&gt;
|%I&lt;br /&gt;
|hour (01..12)&lt;br /&gt;
|-&lt;br /&gt;
|%j&lt;br /&gt;
|day of year (001..366)&lt;br /&gt;
|-&lt;br /&gt;
|%k&lt;br /&gt;
|hour, space padded ( 0..23); same as %_H&lt;br /&gt;
|-&lt;br /&gt;
|%l&lt;br /&gt;
|hour, space padded ( 1..12); same as %_I&lt;br /&gt;
|-&lt;br /&gt;
|%m&lt;br /&gt;
|month (01..12)&lt;br /&gt;
|-&lt;br /&gt;
|%M&lt;br /&gt;
|minute (00..59)&lt;br /&gt;
|-&lt;br /&gt;
|%n&lt;br /&gt;
|a newline&lt;br /&gt;
|-&lt;br /&gt;
|%N&lt;br /&gt;
|nanoseconds (000000000..999999999)&lt;br /&gt;
|-&lt;br /&gt;
|%p&lt;br /&gt;
|locale&#039;s equivalent of either AM or PM; blank if not known&lt;br /&gt;
|-&lt;br /&gt;
|%P&lt;br /&gt;
|like %p, but lower case&lt;br /&gt;
|-&lt;br /&gt;
|%r&lt;br /&gt;
|locale&#039;s 12-hour clock time (e.g., 11:11:04 PM)&lt;br /&gt;
|-&lt;br /&gt;
|%R&lt;br /&gt;
|24-hour hour and minute; same as %H:%M&lt;br /&gt;
|-&lt;br /&gt;
|%s&lt;br /&gt;
|seconds since 1970-01-01 00:00:00 UTC&lt;br /&gt;
|-&lt;br /&gt;
|%S&lt;br /&gt;
|second (00..60)&lt;br /&gt;
|-&lt;br /&gt;
|%t&lt;br /&gt;
|a tab&lt;br /&gt;
|-&lt;br /&gt;
|%T&lt;br /&gt;
|time; same as %H:%M:%S&lt;br /&gt;
|-&lt;br /&gt;
|%u&lt;br /&gt;
|day of week (1..7); 1 is Monday&lt;br /&gt;
|-&lt;br /&gt;
|%U&lt;br /&gt;
|week number of year, with Sunday as first day of week (00..53)&lt;br /&gt;
|-&lt;br /&gt;
|%V&lt;br /&gt;
|ISO week number, with Monday as first day of week (01..53)&lt;br /&gt;
|-&lt;br /&gt;
|%w&lt;br /&gt;
|day of week (0..6); 0 is Sunday&lt;br /&gt;
|-&lt;br /&gt;
|%W&lt;br /&gt;
|week number of year, with Monday as first day of week (00..53)&lt;br /&gt;
|-&lt;br /&gt;
|%x&lt;br /&gt;
|locale&#039;s date representation (e.g., 12/31/99)&lt;br /&gt;
|-&lt;br /&gt;
|%X&lt;br /&gt;
|locale&#039;s time representation (e.g., 23:13:48)&lt;br /&gt;
|-&lt;br /&gt;
|%y&lt;br /&gt;
|last two digits of year (00..99)&lt;br /&gt;
|-&lt;br /&gt;
|%Y&lt;br /&gt;
|year&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%filename%_(%streamid%[_%language%][_%stream_name%])&lt;br /&gt;
|Output file name will be like inputfilename_(1_eng_main track).&lt;br /&gt;
|-&lt;br /&gt;
|0%nchannel%_%filename%&lt;br /&gt;
|Output file name will be like 01_inputfilename, 02_inputfilename, etc.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File_Name_Pattern_Elements&amp;diff=1121</id>
		<title>File Name Pattern Elements</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File_Name_Pattern_Elements&amp;diff=1121"/>
		<updated>2024-12-12T20:00:17Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Elements from file name and/or audio stream ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%filename%&lt;br /&gt;
|Output file name (created from the input file name).&lt;br /&gt;
|-&lt;br /&gt;
|%folder%&lt;br /&gt;
|Input file name folder, e.g. &#039;&#039;audio&#039;&#039; for file c:\some\folder\audio\file.flac.&lt;br /&gt;
|-&lt;br /&gt;
|%outputfiletype%&lt;br /&gt;
|Output file type, e.g. mp3.&lt;br /&gt;
|-&lt;br /&gt;
|%filetype%&lt;br /&gt;
|The same as %outputfiletype%&lt;br /&gt;
|-&lt;br /&gt;
|%language%&lt;br /&gt;
|Language (for file with multiple audio streams).&lt;br /&gt;
|-&lt;br /&gt;
|%streamid%&lt;br /&gt;
|Audio stream index.&lt;br /&gt;
|-&lt;br /&gt;
|%codec%&lt;br /&gt;
|Input file Codec.&lt;br /&gt;
|-&lt;br /&gt;
|%nchannel%&lt;br /&gt;
|Channel number (used in &amp;quot;Split into file per channel&amp;quot;).&lt;br /&gt;
|-&lt;br /&gt;
|%chname%&lt;br /&gt;
|Channel name (used in &amp;quot;Split into file per channel&amp;quot;), e.g. (FL, FR, C, etc).&lt;br /&gt;
|-&lt;br /&gt;
|%channels%&lt;br /&gt;
|Number of channels of the output file.&lt;br /&gt;
|-&lt;br /&gt;
|%originalfilename%&lt;br /&gt;
|Input file name (used in &amp;quot;Split By&amp;quot; file name pattern). Also, if files were added vie CUE file, input file name will be used for output.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Metadata elements ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%albumartist%&lt;br /&gt;
|Album artist&lt;br /&gt;
|-&lt;br /&gt;
|%artist%&lt;br /&gt;
|Artist&lt;br /&gt;
|-&lt;br /&gt;
|%album%&lt;br /&gt;
|Album&lt;br /&gt;
|-&lt;br /&gt;
|%track%&lt;br /&gt;
|Track&lt;br /&gt;
|-&lt;br /&gt;
|%track2%&lt;br /&gt;
|2 digit track number, i.e. values 1-9 will be left-padded with a zero (01, 02, etc.).&lt;br /&gt;
|-&lt;br /&gt;
|%disc%&lt;br /&gt;
|Disc&lt;br /&gt;
|-&lt;br /&gt;
|%disc2%&lt;br /&gt;
|See %track2%&lt;br /&gt;
|-&lt;br /&gt;
|%disc3%&lt;br /&gt;
|The same as %disc%, only if value is 1/1, it will be discarded.&lt;br /&gt;
|-&lt;br /&gt;
|%title%&lt;br /&gt;
|Title&lt;br /&gt;
|-&lt;br /&gt;
|%year%&lt;br /&gt;
|Year&lt;br /&gt;
|-&lt;br /&gt;
|%date%&lt;br /&gt;
|Date&lt;br /&gt;
|-&lt;br /&gt;
|%genre%&lt;br /&gt;
|Genre&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Pregap ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%pre%:pre_&lt;br /&gt;
|It will be processed as&lt;br /&gt;
* if option to save pre-gaps as a separate tracks is enabled and it&#039;s a pre-gap track then [%pre%:pre_] will be replaced with value pre_&lt;br /&gt;
* if option to save pre-gaps as a separate tracks is enabled and it&#039;s not a pre-gap track then [%pre%:pre_] will be discarded&lt;br /&gt;
* if option to save pre-gaps as a separate tracks is not enabled then [%pre%:pre_] will be discarded&lt;br /&gt;
* pre_ can be any value, but it must not contain spaces&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Lossy/Lossless ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%lossy%:lossy:lossless]&lt;br /&gt;
|It will be processed as&lt;br /&gt;
* if the input audio is lossy, the value between 1st and 2nd colons will be used&lt;br /&gt;
* if the input audio is lossless, the value after and 2nd colon will be used&lt;br /&gt;
* values for losless or lossy can also be left empty (see examples below)&lt;br /&gt;
|}&lt;br /&gt;
== Lossy/Lossless Examples ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%lossy%:lossy:losless]\%filename%&lt;br /&gt;
|&lt;br /&gt;
* if the input audio is lossy, the output path will be defined_output_path\lossy\output_file_name&lt;br /&gt;
* if the input audio is lossless, the output path will be defined_output_path\lossless\output_file_name&lt;br /&gt;
|-&lt;br /&gt;
|[%lossy%:lossy:]\%filename%&lt;br /&gt;
|&lt;br /&gt;
* if the input audio is lossy, the output path will be defined_output_path\lossy\output_file_name&lt;br /&gt;
* if the input audio is lossless, the output path will be defined_output_path\output_file_name&lt;br /&gt;
|-&lt;br /&gt;
|[%lossy%::lossless]\%filename%&lt;br /&gt;
|&lt;br /&gt;
* if the input audio is lossy, the output path will be defined_output_path\lossy\output_file_name&lt;br /&gt;
* if the input audio is lossless, the output path will be defined_output_path\output_file_name&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Optional parts ==&lt;br /&gt;
Some parts of the Pattern can be marked as optional, which means that if Metadata element in that part is empty, the whole part will be discarded. Optional part is enclosed in brackets [ ]. For example:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%albumartist%[ - %album%]\%track2%. %title%&lt;br /&gt;
|If %album% is empty, then everything, which was enclosed in [ ] will be discarded (including dash and space).&lt;br /&gt;
|-&lt;br /&gt;
|%filename%_(%streamid%[_%language%][%codec%])&lt;br /&gt;
|Here, if %language% is empty, underscore won&#039;t be added to the output file name.&lt;br /&gt;
|}&lt;br /&gt;
* It is also possible to add several, comma separated, tag patterns elements in []. In this case the first non-empty value will be used. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%title%,%album%]&lt;br /&gt;
|If %title% is not empty, it will be used. If %album% is not empty, then it will be used. If both, %title% and %album% are empty, the whole [] block will be discarded.&lt;br /&gt;
|-&lt;br /&gt;
|[%title%,%album%][-%albumartist%,-%performer%]&lt;br /&gt;
|You can use multiple [] blocks. Dash before the pattern element will be retained, if the pattern element is used. Otherwise it will be discarded.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Tags with multiple values ==&lt;br /&gt;
It is possible to access value of the tag by index, e.g. %genre(1)% will return first value. &lt;br /&gt;
&lt;br /&gt;
== Case conversion ==&lt;br /&gt;
Is is possible to change case of the Metadata elements using the following:&lt;br /&gt;
* To have element in UPPER case, either add a prefix U to it (e.g. %Utitle%, %Ufilename%) or have it all in uppercase (e.g. %TITLE%, %ALBUM%, %FILENAME%).&lt;br /&gt;
* To have element in lower case, add a prefix L to it (%Ltitle%, %Lfilename%).&lt;br /&gt;
* To have element Capitalized, add a prefix C to it (%Ctitle%, %Cfilename%).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Date conversion elements (taken from Linux) ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%%&lt;br /&gt;
|a literal %&lt;br /&gt;
|-&lt;br /&gt;
|%a&lt;br /&gt;
|locale&#039;s abbreviated weekday name (e.g., Sun)&lt;br /&gt;
|-&lt;br /&gt;
|%A&lt;br /&gt;
|locale&#039;s full weekday name (e.g., Sunday)&lt;br /&gt;
|-&lt;br /&gt;
|%b&lt;br /&gt;
|locale&#039;s abbreviated month name (e.g., Jan)&lt;br /&gt;
|-&lt;br /&gt;
|%B&lt;br /&gt;
|locale&#039;s full month name (e.g., January)&lt;br /&gt;
|-&lt;br /&gt;
|%c&lt;br /&gt;
|locale&#039;s date and time (e.g., Thu Mar  3 23:05:25 2005)&lt;br /&gt;
|-&lt;br /&gt;
|%C&lt;br /&gt;
|century; like %Y, except omit last two digits (e.g., 20)&lt;br /&gt;
|-&lt;br /&gt;
|%d&lt;br /&gt;
|day of month (e.g., 01)&lt;br /&gt;
|-&lt;br /&gt;
|%D&lt;br /&gt;
|date; same as %m/%d/%y&lt;br /&gt;
|-&lt;br /&gt;
|%e&lt;br /&gt;
|day of month, space padded; same as %_d&lt;br /&gt;
|-&lt;br /&gt;
|%F&lt;br /&gt;
|full date; same as %Y-%m-%d&lt;br /&gt;
|-&lt;br /&gt;
|%g&lt;br /&gt;
|last two digits of year of ISO week number (see %G)&lt;br /&gt;
|-&lt;br /&gt;
|%G&lt;br /&gt;
|year of ISO week number (see %V); normally useful only with %V&lt;br /&gt;
|-&lt;br /&gt;
|%h&lt;br /&gt;
|same as %b&lt;br /&gt;
|-&lt;br /&gt;
|%H&lt;br /&gt;
|hour (00..23)&lt;br /&gt;
|-&lt;br /&gt;
|%I&lt;br /&gt;
|hour (01..12)&lt;br /&gt;
|-&lt;br /&gt;
|%j&lt;br /&gt;
|day of year (001..366)&lt;br /&gt;
|-&lt;br /&gt;
|%k&lt;br /&gt;
|hour, space padded ( 0..23); same as %_H&lt;br /&gt;
|-&lt;br /&gt;
|%l&lt;br /&gt;
|hour, space padded ( 1..12); same as %_I&lt;br /&gt;
|-&lt;br /&gt;
|%m&lt;br /&gt;
|month (01..12)&lt;br /&gt;
|-&lt;br /&gt;
|%M&lt;br /&gt;
|minute (00..59)&lt;br /&gt;
|-&lt;br /&gt;
|%n&lt;br /&gt;
|a newline&lt;br /&gt;
|-&lt;br /&gt;
|%N&lt;br /&gt;
|nanoseconds (000000000..999999999)&lt;br /&gt;
|-&lt;br /&gt;
|%p&lt;br /&gt;
|locale&#039;s equivalent of either AM or PM; blank if not known&lt;br /&gt;
|-&lt;br /&gt;
|%P&lt;br /&gt;
|like %p, but lower case&lt;br /&gt;
|-&lt;br /&gt;
|%r&lt;br /&gt;
|locale&#039;s 12-hour clock time (e.g., 11:11:04 PM)&lt;br /&gt;
|-&lt;br /&gt;
|%R&lt;br /&gt;
|24-hour hour and minute; same as %H:%M&lt;br /&gt;
|-&lt;br /&gt;
|%s&lt;br /&gt;
|seconds since 1970-01-01 00:00:00 UTC&lt;br /&gt;
|-&lt;br /&gt;
|%S&lt;br /&gt;
|second (00..60)&lt;br /&gt;
|-&lt;br /&gt;
|%t&lt;br /&gt;
|a tab&lt;br /&gt;
|-&lt;br /&gt;
|%T&lt;br /&gt;
|time; same as %H:%M:%S&lt;br /&gt;
|-&lt;br /&gt;
|%u&lt;br /&gt;
|day of week (1..7); 1 is Monday&lt;br /&gt;
|-&lt;br /&gt;
|%U&lt;br /&gt;
|week number of year, with Sunday as first day of week (00..53)&lt;br /&gt;
|-&lt;br /&gt;
|%V&lt;br /&gt;
|ISO week number, with Monday as first day of week (01..53)&lt;br /&gt;
|-&lt;br /&gt;
|%w&lt;br /&gt;
|day of week (0..6); 0 is Sunday&lt;br /&gt;
|-&lt;br /&gt;
|%W&lt;br /&gt;
|week number of year, with Monday as first day of week (00..53)&lt;br /&gt;
|-&lt;br /&gt;
|%x&lt;br /&gt;
|locale&#039;s date representation (e.g., 12/31/99)&lt;br /&gt;
|-&lt;br /&gt;
|%X&lt;br /&gt;
|locale&#039;s time representation (e.g., 23:13:48)&lt;br /&gt;
|-&lt;br /&gt;
|%y&lt;br /&gt;
|last two digits of year (00..99)&lt;br /&gt;
|-&lt;br /&gt;
|%Y&lt;br /&gt;
|year&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%filename%_(%streamid%[_%language%][_%stream_name%])&lt;br /&gt;
|Output file name will be like inputfilename_(1_eng_main track).&lt;br /&gt;
|-&lt;br /&gt;
|0%nchannel%_%filename%&lt;br /&gt;
|Output file name will be like 01_inputfilename, 02_inputfilename, etc.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1120</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1120"/>
		<updated>2024-11-11T14:45:02Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 /cof                - Copy non-audio files to the destination folder, e.g. /cof &amp;quot;folder*;cover*&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 flac files to alac:&lt;br /&gt;
    -i c:\files\*.flac -o &amp;quot;c:\output with spaces&amp;quot; /dest alac&lt;br /&gt;
  &lt;br /&gt;
 Convert wav files to flac, using 96000 as output sample rate and 24bit as output sample format. Also analyze 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 named &amp;quot;process&amp;quot;, error output is redirected to file named &amp;quot;errors&amp;quot;:&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excluding some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1119</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1119"/>
		<updated>2024-11-11T14:44:47Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 /cof                - Copy non-audio files to the destination folder, e.g. /cof &amp;quot;folder*;cover*&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 flac files to alac:&lt;br /&gt;
    -i c:\files\*.flac -o &amp;quot;c:\output with spaces&amp;quot; /dest alac&lt;br /&gt;
  &lt;br /&gt;
 Convert wav files to flac, using 96000 as output sample rate and 24bit as output sample format. Also analyze 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 named &amp;quot;process&amp;quot;, error output is redirected to file named &amp;quot;errors&amp;quot;:&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excluding some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1118</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1118"/>
		<updated>2024-11-11T14:42:19Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 /cof                - Copy non-audio files to the destination folder, e.g. /cof &amp;quot;folder*;cover*&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 analyze 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 named &amp;quot;process&amp;quot;, error output is redirected to file named &amp;quot;errors&amp;quot;:&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excluding some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1117</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1117"/>
		<updated>2024-11-11T14:41:10Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 /cof                - Copy non-audio files to the destination folder, e.g. /cof &amp;quot;folder*;cover*&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 analyze 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 named &amp;quot;process&amp;quot;, error output is redirected to file named &amp;quot;errors&amp;quot;:&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excluding some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1116</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1116"/>
		<updated>2024-11-11T14:40:31Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 /cof                - Copy non-audio files to the destination folder, e.g. /cof &amp;quot;folder*;cover*&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 24-bit as output sample format:&lt;br /&gt;
    -i c:\files\*.flac -o &amp;quot;c:\output with spaces&amp;quot; /dest alac&lt;br /&gt;
 &lt;br /&gt;
 Convert wav files to flac, using 96000 as output sample rate and 24bit as output sample format. Also analyze 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 named &amp;quot;process&amp;quot;, error output is redirected to file named &amp;quot;errors&amp;quot;:&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excluding some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1115</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1115"/>
		<updated>2024-11-11T14:38:43Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 /cof                - Copy non-audio files to the destination folder, e.g. /cof &amp;quot;folder*;cover*&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 analyze 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 named &amp;quot;process&amp;quot;, error output is redirected to file named &amp;quot;errors&amp;quot;:&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excluding some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File_Name_Pattern_Elements&amp;diff=1114</id>
		<title>File Name Pattern Elements</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File_Name_Pattern_Elements&amp;diff=1114"/>
		<updated>2023-07-15T13:34:47Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Elements from file name and/or audio stream ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%filename%&lt;br /&gt;
|Output file name (created from the input file name).&lt;br /&gt;
|-&lt;br /&gt;
|%folder%&lt;br /&gt;
|Input file name folder, e.g. &#039;&#039;audio&#039;&#039; for file c:\some\folder\audio\file.flac.&lt;br /&gt;
|-&lt;br /&gt;
|%outputfiletype%&lt;br /&gt;
|Output file type, e.g. mp3.&lt;br /&gt;
|-&lt;br /&gt;
|%filetype%&lt;br /&gt;
|The same as %outputfiletype%&lt;br /&gt;
|-&lt;br /&gt;
|%language%&lt;br /&gt;
|Language (for file with multiple audio streams).&lt;br /&gt;
|-&lt;br /&gt;
|%streamid%&lt;br /&gt;
|Audio stream index.&lt;br /&gt;
|-&lt;br /&gt;
|%codec%&lt;br /&gt;
|Input file Codec.&lt;br /&gt;
|-&lt;br /&gt;
|%nchannel%&lt;br /&gt;
|Channel number (used in &amp;quot;Split into file per channel&amp;quot;).&lt;br /&gt;
|-&lt;br /&gt;
|%chname%&lt;br /&gt;
|Channel name (used in &amp;quot;Split into file per channel&amp;quot;), e.g. (FL, FR, C, etc).&lt;br /&gt;
|-&lt;br /&gt;
|%channels%&lt;br /&gt;
|Number of channels of the output file.&lt;br /&gt;
|-&lt;br /&gt;
|%originalfilename%&lt;br /&gt;
|Input file name (used in &amp;quot;Split By&amp;quot; file name pattern). Also, if files were added vie CUE file, input file name will be used for output.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Metadata elements ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%albumartist%&lt;br /&gt;
|Album artist&lt;br /&gt;
|-&lt;br /&gt;
|%artist%&lt;br /&gt;
|Artist&lt;br /&gt;
|-&lt;br /&gt;
|%album%&lt;br /&gt;
|Album&lt;br /&gt;
|-&lt;br /&gt;
|%track%&lt;br /&gt;
|Track&lt;br /&gt;
|-&lt;br /&gt;
|%track2%&lt;br /&gt;
|2 digit track number, i.e. values 1-9 will be left-padded with a zero (01, 02, etc.).&lt;br /&gt;
|-&lt;br /&gt;
|%disc%&lt;br /&gt;
|Disc&lt;br /&gt;
|-&lt;br /&gt;
|%disc2%&lt;br /&gt;
|See %track2%&lt;br /&gt;
|-&lt;br /&gt;
|%disc3%&lt;br /&gt;
|The same as %disc%, only if value is 1/1, it will be discarded.&lt;br /&gt;
|-&lt;br /&gt;
|%title%&lt;br /&gt;
|Title&lt;br /&gt;
|-&lt;br /&gt;
|%year%&lt;br /&gt;
|Year&lt;br /&gt;
|-&lt;br /&gt;
|%date%&lt;br /&gt;
|Date&lt;br /&gt;
|-&lt;br /&gt;
|%genre%&lt;br /&gt;
|Genre&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Optional parts ==&lt;br /&gt;
Some parts of the Pattern can be marked as optional, which means that if Metadata element in that part is empty, the whole part will be discarded. Optional part is enclosed in brackets [ ]. For example:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%albumartist%[ - %album%]\%track2%. %title%&lt;br /&gt;
|If %album% is empty, then everything, which was enclosed in [ ] will be discarded (including dash and space).&lt;br /&gt;
|-&lt;br /&gt;
|%filename%_(%streamid%[_%language%][%codec%])&lt;br /&gt;
|Here, if %language% is empty, underscore won&#039;t be added to the output file name.&lt;br /&gt;
|}&lt;br /&gt;
* It is also possible to add several, comma separated, tag patterns elements in []. In this case the first non-empty value will be used. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|[%title%,%album%]&lt;br /&gt;
|If %title% is not empty, it will be used. If %album% is not empty, then it will be used. If both, %title% and %album% are empty, the whole [] block will be discarded.&lt;br /&gt;
|-&lt;br /&gt;
|[%title%,%album%][-%albumartist%,-%performer%]&lt;br /&gt;
|You can use multiple [] blocks. Dash before the pattern element will be retained, if the pattern element is used. Otherwise it will be discarded.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Tags with multiple values ==&lt;br /&gt;
It is possible to access value of the tag by index, e.g. %genre(1)% will return first value. &lt;br /&gt;
&lt;br /&gt;
== Case conversion ==&lt;br /&gt;
Is is possible to change case of the Metadata elements using the following:&lt;br /&gt;
* To have element in UPPER case, either add a prefix U to it (e.g. %Utitle%, %Ufilename%) or have it all in uppercase (e.g. %TITLE%, %ALBUM%, %FILENAME%).&lt;br /&gt;
* To have element in lower case, add a prefix L to it (%Ltitle%, %Lfilename%).&lt;br /&gt;
* To have element Capitalized, add a prefix C to it (%Ctitle%, %Cfilename%).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Date conversion elements (taken from Linux) ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%%&lt;br /&gt;
|a literal %&lt;br /&gt;
|-&lt;br /&gt;
|%a&lt;br /&gt;
|locale&#039;s abbreviated weekday name (e.g., Sun)&lt;br /&gt;
|-&lt;br /&gt;
|%A&lt;br /&gt;
|locale&#039;s full weekday name (e.g., Sunday)&lt;br /&gt;
|-&lt;br /&gt;
|%b&lt;br /&gt;
|locale&#039;s abbreviated month name (e.g., Jan)&lt;br /&gt;
|-&lt;br /&gt;
|%B&lt;br /&gt;
|locale&#039;s full month name (e.g., January)&lt;br /&gt;
|-&lt;br /&gt;
|%c&lt;br /&gt;
|locale&#039;s date and time (e.g., Thu Mar  3 23:05:25 2005)&lt;br /&gt;
|-&lt;br /&gt;
|%C&lt;br /&gt;
|century; like %Y, except omit last two digits (e.g., 20)&lt;br /&gt;
|-&lt;br /&gt;
|%d&lt;br /&gt;
|day of month (e.g., 01)&lt;br /&gt;
|-&lt;br /&gt;
|%D&lt;br /&gt;
|date; same as %m/%d/%y&lt;br /&gt;
|-&lt;br /&gt;
|%e&lt;br /&gt;
|day of month, space padded; same as %_d&lt;br /&gt;
|-&lt;br /&gt;
|%F&lt;br /&gt;
|full date; same as %Y-%m-%d&lt;br /&gt;
|-&lt;br /&gt;
|%g&lt;br /&gt;
|last two digits of year of ISO week number (see %G)&lt;br /&gt;
|-&lt;br /&gt;
|%G&lt;br /&gt;
|year of ISO week number (see %V); normally useful only with %V&lt;br /&gt;
|-&lt;br /&gt;
|%h&lt;br /&gt;
|same as %b&lt;br /&gt;
|-&lt;br /&gt;
|%H&lt;br /&gt;
|hour (00..23)&lt;br /&gt;
|-&lt;br /&gt;
|%I&lt;br /&gt;
|hour (01..12)&lt;br /&gt;
|-&lt;br /&gt;
|%j&lt;br /&gt;
|day of year (001..366)&lt;br /&gt;
|-&lt;br /&gt;
|%k&lt;br /&gt;
|hour, space padded ( 0..23); same as %_H&lt;br /&gt;
|-&lt;br /&gt;
|%l&lt;br /&gt;
|hour, space padded ( 1..12); same as %_I&lt;br /&gt;
|-&lt;br /&gt;
|%m&lt;br /&gt;
|month (01..12)&lt;br /&gt;
|-&lt;br /&gt;
|%M&lt;br /&gt;
|minute (00..59)&lt;br /&gt;
|-&lt;br /&gt;
|%n&lt;br /&gt;
|a newline&lt;br /&gt;
|-&lt;br /&gt;
|%N&lt;br /&gt;
|nanoseconds (000000000..999999999)&lt;br /&gt;
|-&lt;br /&gt;
|%p&lt;br /&gt;
|locale&#039;s equivalent of either AM or PM; blank if not known&lt;br /&gt;
|-&lt;br /&gt;
|%P&lt;br /&gt;
|like %p, but lower case&lt;br /&gt;
|-&lt;br /&gt;
|%r&lt;br /&gt;
|locale&#039;s 12-hour clock time (e.g., 11:11:04 PM)&lt;br /&gt;
|-&lt;br /&gt;
|%R&lt;br /&gt;
|24-hour hour and minute; same as %H:%M&lt;br /&gt;
|-&lt;br /&gt;
|%s&lt;br /&gt;
|seconds since 1970-01-01 00:00:00 UTC&lt;br /&gt;
|-&lt;br /&gt;
|%S&lt;br /&gt;
|second (00..60)&lt;br /&gt;
|-&lt;br /&gt;
|%t&lt;br /&gt;
|a tab&lt;br /&gt;
|-&lt;br /&gt;
|%T&lt;br /&gt;
|time; same as %H:%M:%S&lt;br /&gt;
|-&lt;br /&gt;
|%u&lt;br /&gt;
|day of week (1..7); 1 is Monday&lt;br /&gt;
|-&lt;br /&gt;
|%U&lt;br /&gt;
|week number of year, with Sunday as first day of week (00..53)&lt;br /&gt;
|-&lt;br /&gt;
|%V&lt;br /&gt;
|ISO week number, with Monday as first day of week (01..53)&lt;br /&gt;
|-&lt;br /&gt;
|%w&lt;br /&gt;
|day of week (0..6); 0 is Sunday&lt;br /&gt;
|-&lt;br /&gt;
|%W&lt;br /&gt;
|week number of year, with Monday as first day of week (00..53)&lt;br /&gt;
|-&lt;br /&gt;
|%x&lt;br /&gt;
|locale&#039;s date representation (e.g., 12/31/99)&lt;br /&gt;
|-&lt;br /&gt;
|%X&lt;br /&gt;
|locale&#039;s time representation (e.g., 23:13:48)&lt;br /&gt;
|-&lt;br /&gt;
|%y&lt;br /&gt;
|last two digits of year (00..99)&lt;br /&gt;
|-&lt;br /&gt;
|%Y&lt;br /&gt;
|year&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|%filename%_(%streamid%[_%language%][_%stream_name%])&lt;br /&gt;
|Output file name will be like inputfilename_(1_eng_main track).&lt;br /&gt;
|-&lt;br /&gt;
|0%nchannel%_%filename%&lt;br /&gt;
|Output file name will be like 01_inputfilename, 02_inputfilename, etc.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1113</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1113"/>
		<updated>2022-01-31T14:25:43Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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;
 /tc            - Always transcode (e.g. when merging MP3 files).&lt;br /&gt;
 /nocue         - Do not create CUE 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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1112</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1112"/>
		<updated>2021-07-13T14:44:39Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD). In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the loud click for some players.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
** DSF/NoPad  - When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD without any padding. It also has the full Metadata support.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1111</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1111"/>
		<updated>2021-07-13T14:44:28Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD). In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the loud click for some players.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
** DSF/NoPad  - When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD without any padding. It also had the full Metadata support.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1110</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1110"/>
		<updated>2021-07-13T14:42:46Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD). In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the loud click for some players.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
** DSF/NoPad  - When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD without any padding.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1109</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1109"/>
		<updated>2021-07-13T14:41:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD). In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the issue (loud click) for some players.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
** DSF/NoPad  - In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the issue (loud click) for some players. When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.--&amp;gt;&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD without any padding.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1108</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1108"/>
		<updated>2021-07-13T14:41:23Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
** DSF/NoPad  - In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the issue (loud click) for some players. When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.--&amp;gt;&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD without any padding.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Extract_settings.png&amp;diff=1107</id>
		<title>File:Extract settings.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Extract_settings.png&amp;diff=1107"/>
		<updated>2021-07-13T14:40:48Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin uploaded a new version of File:Extract settings.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1106</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1106"/>
		<updated>2021-07-10T18:20:57Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF/NoPad  - In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the issue (loud click) for some players. When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD without any padding.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1105</id>
		<title>Extract Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Extract_Settings&amp;diff=1105"/>
		<updated>2021-07-10T18:19:26Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:extract_settings.png]]&lt;br /&gt;
*Add RIFF header for DTS files - RIFF header will be added to the DTS file (some program require this).&lt;br /&gt;
*Use WAV as output file extension for DTS files - output files will have WAV extension.&lt;br /&gt;
*Extract SACD as:&lt;br /&gt;
** DFF - Tracks will be extracted as DFF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF  - Tracks will be extracted as DSF (DST encoded tracks will be decoded to DSD).&lt;br /&gt;
** DSF/NoPad  - In DSF bytes must be organized into a certain sized blocks and when there&#039;s not enough bytes for the last block of the file, the block is padded with zeroes and that might cause the issue (loud click) for some players. When NoPad method is used, the block is not padded, and the left-over from the current internal buffer is passed to the beginning of the next file. When using this method, files cannot be extracted in parallel.&lt;br /&gt;
** DSD/DST  - Tracks will be extracted by preserving the encoding of the SACD (e.g. DSD or DST).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Please note.&#039;&#039;&#039; If your player supports the DFF files, it is highly recommended to always use the DFF format as it is written as 1:1 from the SACD, no padding, no nothing.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Extract_settings.png&amp;diff=1104</id>
		<title>File:Extract settings.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Extract_settings.png&amp;diff=1104"/>
		<updated>2021-07-10T18:10:07Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin uploaded a new version of File:Extract settings.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1103</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1103"/>
		<updated>2021-01-24T16:57:04Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Normalize files and save the information in tags (no transcoding).&lt;br /&gt;
    -i c:\files\*.flac /n /nsit&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1102</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1102"/>
		<updated>2021-01-24T16:55:21Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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;
                  When this parameter is used and no destination is specified, no transcode will be performed. &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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1101</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1101"/>
		<updated>2021-01-21T18:38:22Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination folder by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1100</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1100"/>
		<updated>2021-01-21T18:01:34Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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) for ReplayGain.&lt;br /&gt;
 /nebl &amp;quot;nnn&amp;quot;    - Target level (multiplied by 10) for EBUR128 (-180 by default). Value must be put in quotes, e.g. /nebl &amp;quot;-165&amp;quot;, which then will be used as -16.5&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1099</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1099"/>
		<updated>2020-12-13T07:15:36Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&lt;br /&gt;
 &lt;br /&gt;
 /nochapters      - Ignore input file chapters.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Misc&amp;diff=1098</id>
		<title>Misc</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Misc&amp;diff=1098"/>
		<updated>2020-11-23T16:09:18Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Settings_misc.png]]&lt;br /&gt;
*Copy all other files to the destination folder - all other files from the same folder as source files will be copied over to the destination folder.&lt;br /&gt;
**Including sub-folders - files from sub-folders will be copied as well.&lt;br /&gt;
*Copy all non-audio files to the destination folder - all non-audio files from the same folder as source files will be copied over to the destination folder.&lt;br /&gt;
**Including sub-folders - files from sub-folders will be copied as well.&lt;br /&gt;
*Copy only files (masks separated by ;) - all other files matching specified masks(e.g. *.log;*.txt) from the same folder as source files will be copied over to the destination folder.&lt;br /&gt;
**Including sub-folders - files from sub-folders will be copied as well.&lt;br /&gt;
*File names to exclude (separated by ;) - all files matching specified masks(e.g. *.cue;*.m3u) will be ignored when added to the program. Useful to exclude e.g. CUEs and playlist files.&lt;br /&gt;
*Convert on the fly - this is useful when dealing with large number of files (more than 1000). Normally, when files are added to the program, they are validated and audio properties and metadata are read. For large number of files this takes time. When &amp;quot;Convert on the fly&amp;quot; is used, no checking or reading is done - files are just added. Only when process is started, files are validated and metadata is read. This might result in some processing errors, as no validation is done. Also, audio properties will be displayed as ?. &lt;br /&gt;
**Please note, that Metadata editor will be unavailable in this mode and %filename% will be used as an output file name pattern. &lt;br /&gt;
**This mode is not available for CUE, Files with chapters and Audio-CD files.&lt;br /&gt;
**If custom file name pattern is used, it will be ignored and %filename% will be used instead.&lt;br /&gt;
**Merge might not work in some cases.&lt;br /&gt;
*Skip bad frames - bad (damaged) frames will be skipped when decoding the file and a warning will be shown at the end of the process.&lt;br /&gt;
**Don&#039;t show warning if some were skipped - no warning will be shown if bad frame(s) were skipped.&lt;br /&gt;
**Delete damaged/not supported files (when configured so) - if setting to move files to Recycle Bin/Delete is used, then damaged files will be deleted/moved as well.&lt;br /&gt;
*Scan WAV files for DTS stream - Try to determine if WAV files contain DTS stream (which is usually not the case). If enabled, opening WAV files will take a bit longer.&lt;br /&gt;
*Monitor clipboard for Pictures when Metadata Editor is active - When Metadata Editor is active and there&#039;s a picture copied in Clipboard, it will automatically be added to all selected tracks. handy when copying Cover from internet browser, for example.&lt;br /&gt;
*Use input file chapters - if file contains chapters, they will be used and input file will be present as individual tracks (chapters). If this option is turned off, chapters will be ignored. Useful, when transcoding of the whole file is required.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Settings_misc.png&amp;diff=1097</id>
		<title>File:Settings misc.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Settings_misc.png&amp;diff=1097"/>
		<updated>2020-11-23T16:07:05Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin uploaded a new version of File:Settings misc.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Path_Settings&amp;diff=1096</id>
		<title>Output Path Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Path_Settings&amp;diff=1096"/>
		<updated>2020-11-08T09:05:04Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Additional_output_path_settings.png]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Preserve the structure of the source folder&lt;br /&gt;
|Folders structure of the source file will be re-used, when creating output path. For example, if source file has full path &amp;quot;c:\audio\album\file.flac&amp;quot; and output path is set to &amp;quot;c:\converted&amp;quot;, then the output file will be &amp;quot;c:\converted\&#039;&#039;&#039;audio\album\file.mp3&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the beginning) to include&lt;br /&gt;
|Specify number of source folders (from the beginning) to use when creating the output path. If, for example, it is set to 1, then output file from the example above would be &amp;quot;c:\converted\&#039;&#039;&#039;audio\file.mp3&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the end) to include&lt;br /&gt;
|Specify number of source folders (from the end) to use when creating the output path. If, for example, it is set to 1, then output file from the example above would be &amp;quot;c:\converted\&#039;&#039;&#039;album\file.mp3&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the beginning) to skip&lt;br /&gt;
|Specify number of source folders to skip (from the beginning) when creating the output path.&lt;br /&gt;
|-&lt;br /&gt;
|Number source folders (from the end) to skip&lt;br /&gt;
|Specify number of source folders to skip (from the end) when creating the output path.&lt;br /&gt;
|-&lt;br /&gt;
|Maximum output file name length&lt;br /&gt;
|Specify the maximum length of the output file name (only the file name, not the whole path). File name will be cut up to this number, if it&#039;s longer. If, as a result, more than one file gets the same name, a unique file name will be created.&lt;br /&gt;
|-&lt;br /&gt;
|Maximum output path length&lt;br /&gt;
|Specify the maximum length of the output file path. If the length of the output path and file name is bigger than this, program will show an error.&lt;br /&gt;
|-&lt;br /&gt;
|Discard CUE output folder when &amp;quot;Create files in source folder&amp;quot; is used&lt;br /&gt;
|Normally, when converting audio file added via CUE, output files will be created in a sub-folder (specified by a pattern), even if &amp;quot;Create files in source folder&amp;quot; option is used. If this option is enabled, files will be created directly in then output folder. &lt;br /&gt;
|-&lt;br /&gt;
|Delete source file when done (do not move to Recycle Bin)&lt;br /&gt;
|Source files will be deleted when process is completed. &#039;&#039;&#039;Please use with caution.&#039;&#039;&#039;. This option is disable if &amp;quot;Move source file to Recycle Bin when done&amp;quot; is used and vice versa.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Additional_output_path_settings.png&amp;diff=1095</id>
		<title>File:Additional output path settings.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Additional_output_path_settings.png&amp;diff=1095"/>
		<updated>2020-11-08T09:03:52Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin uploaded a new version of File:Additional output path settings.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1094</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1094"/>
		<updated>2020-10-25T14:45:38Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV when encoding to Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must be in format like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_wavpack.png ]]&lt;br /&gt;
&lt;br /&gt;
To make sure, that command line is OK, press the Test button and check the result.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1093</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1093"/>
		<updated>2020-10-25T14:44:52Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV when encoding to Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must be in format like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_wavpack.png ]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1092</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1092"/>
		<updated>2020-10-25T14:44:32Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV when encoding to Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must looks like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_wavpack.png ]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1091</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1091"/>
		<updated>2020-10-25T14:43:58Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV whene coding to  Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must looks like this&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_wavpack.png ]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Lossy_wavpack.png&amp;diff=1090</id>
		<title>File:Lossy wavpack.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Lossy_wavpack.png&amp;diff=1090"/>
		<updated>2020-10-25T14:43:30Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1089</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1089"/>
		<updated>2020-10-25T14:43:17Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* LossyWAV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV whene coding to  Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must looks like this&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_wavpack.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1088</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1088"/>
		<updated>2020-10-25T14:42:55Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV whene coding to  Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must looks like this&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
[[file:lossy_wavpack.png]]&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Lossy_flac.png&amp;diff=1087</id>
		<title>File:Lossy flac.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Lossy_flac.png&amp;diff=1087"/>
		<updated>2020-10-25T14:42:27Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1086</id>
		<title>Output Format Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Output_Format_Settings&amp;diff=1086"/>
		<updated>2020-10-25T14:42:05Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Created page with &amp;quot;== LossyWAV == It is possible to use the LossyWAV whene coding to  Flac or WavPAck via the manual command line. In order to do this, the command line parameter must looks like...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== LossyWAV ==&lt;br /&gt;
It is possible to use the LossyWAV whene coding to  Flac or WavPAck via the manual command line.&lt;br /&gt;
In order to do this, the command line parameter must looks like this&lt;br /&gt;
&amp;lt;lossyWavParams&amp;gt; | &amp;lt;EncoderParams&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for Flac they could look like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -b 512 -8&lt;br /&gt;
&lt;br /&gt;
for Wavpackc they could looks like this:&lt;br /&gt;
&lt;br /&gt;
C:\lossywav\lossyWAV.exe  - --quality X -- | -m -i -q --blocksize=512 --merge-blocks -hh&lt;br /&gt;
&lt;br /&gt;
[[file:lossy_flac.png]]&lt;br /&gt;
[[file:[[file:lossy_flac.png]]]]&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Main_Page&amp;diff=1085</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Main_Page&amp;diff=1085"/>
		<updated>2020-10-25T14:33:16Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- To edit sidebar, open https://xrecode.com/wiki/index.php?title=MediaWiki:Sidebar --&amp;gt;&lt;br /&gt;
&amp;lt;!-- https://www.mediawiki.org/wiki/Manual:Interface/Sidebar --&amp;gt;&lt;br /&gt;
;[[Output Audio Settings]]&lt;br /&gt;
;[[Matrices]]&lt;br /&gt;
;[[Merge/CUE Settings]]&lt;br /&gt;
;[[File Name Pattern Elements]]&lt;br /&gt;
;[[Add Folder]]&lt;br /&gt;
;[[Action]]&lt;br /&gt;
;[[Output Settings]]&lt;br /&gt;
;[[Output Format Settings]]&lt;br /&gt;
;[[Normalize]]&lt;br /&gt;
;[[Output Path Settings]]&lt;br /&gt;
;[[Program Settings]]&lt;br /&gt;
;[[Command Line]]&lt;br /&gt;
;[[Add files using .txt file]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1084</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1084"/>
		<updated>2020-09-26T19:25:58Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers to the specified path. Covers will be saved as a JPEG files. You can use /pfilename to specify the name of the cover.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1083</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1083"/>
		<updated>2020-09-25T18:04:26Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  /o &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /exportmeta  /ec /o &amp;lt;path&amp;gt;  - Export only Covers the specified path.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;     - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Global_Settings&amp;diff=1082</id>
		<title>Global Settings</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Global_Settings&amp;diff=1082"/>
		<updated>2020-09-20T18:58:24Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Settings_global_settings.png]]&lt;br /&gt;
*Use tabs - enable/disable tabbed UI.&lt;br /&gt;
*Confirm program exit - program will ask for confirmation on exit.&lt;br /&gt;
*Confirm cancel - program will ask for confirmation when process is cancelled. &lt;br /&gt;
*Delete created folders/files when process is cancelled - all created files and/or folders will be deleted when process is cancelled.&lt;br /&gt;
*Open output folder after conversion - output folder will be opened in file explorer when all processes are completed.&lt;br /&gt;
*Close program when done - program will be closed when all processes are completed.&lt;br /&gt;
*Always on top - program will be kept on top of the other.&lt;br /&gt;
*Allow multiple program instances - when enabled, multiple instance of program can be started. Also, when adding files from Shell, they will be added to the new instance of then program. When disabled, only one instance is allowed. When files are sent from Shell, they will be added to that one instance (if it&#039;s not busy).&lt;br /&gt;
*Language - change language.&lt;br /&gt;
*Success sound - will be played when there were no errors during the process.&lt;br /&gt;
*Error sound - will be played in case of an error during the process.&lt;br /&gt;
*Check updates on startup - program will check for updated version once a day.&lt;br /&gt;
**Check for beta versions - enable this, if you want to get access to beta versions (sometimes might be unstable) of the program.&lt;br /&gt;
*Export - export program&#039;s settings to a zip file.&lt;br /&gt;
*Import - import program&#039;s settings from a zip file.&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=File:Settings_global_settings.png&amp;diff=1081</id>
		<title>File:Settings global settings.png</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=File:Settings_global_settings.png&amp;diff=1081"/>
		<updated>2020-09-20T18:56:23Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: Wikiadmin uploaded a new version of File:Settings global settings.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1080</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1080"/>
		<updated>2020-08-02T09:43:16Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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;
 /r             - Files from sub-folders will be added as well (used together with /i).&lt;br /&gt;
 /dest          - Output format (mp3, ogg, flac, m4a, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;  - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1079</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1079"/>
		<updated>2020-07-08T15:28:16Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Specifying external executable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;  - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying external executable files ==&lt;br /&gt;
It is possible to specify location of external encoder files using &#039;&#039;&#039;settings.ini&#039;&#039;&#039; file. For example, if console executable is located in folder &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, file named &#039;&#039;&#039;settings.ini&#039;&#039;&#039; must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1078</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1078"/>
		<updated>2020-07-08T15:27:40Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Specifying external executable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;  - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying 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 &#039;&#039;&#039;c:\xr3console&#039;&#039;&#039;, settings.ini for it must be put in a folder &#039;&#039;&#039;c:\xr3console\portable\console\settings\x86&#039;&#039;&#039; for 32-bit executable, or &#039;&#039;&#039;c:\xr3console\portable\console\settings\x64&#039;&#039;&#039; for a 64-bit executable.&lt;br /&gt;
*&#039;&#039;settings.ini&#039;&#039; must contain definition for executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1077</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1077"/>
		<updated>2020-07-08T15:18:49Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Specifying external executable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;  - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying 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 executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
 enc.wavpack.executable=C:\wavpack\wavpack.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1076</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1076"/>
		<updated>2020-07-08T15:17:31Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;  - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying 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 executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1075</id>
		<title>Command Line</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Command_Line&amp;diff=1075"/>
		<updated>2020-07-08T15:17:06Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
Command line parameters are only supported by the console version of XRECODE3.&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, dsd64, dsd128, etc.) or copy to just copy files to the destination foler by applying file name pattern.&lt;br /&gt;
 /o             - Output path.&lt;br /&gt;
 /exclude x     - file name to exclude (can contain * and ?, case does not matter).  Several /exclude parameters can be passed.&lt;br /&gt;
 &lt;br /&gt;
 /dsdft         - Output file type for DSD (dff or dsf).&lt;br /&gt;
 &lt;br /&gt;
 /preset n      - Use preset (where it&#039;s applicable, e.g. mp3). &lt;br /&gt;
 /quality n     - Quality parameter for Ogg.&lt;br /&gt;
 /compression n - Compression for flac (0 to 8, where 0 is &amp;quot;uncompressed&amp;quot;).&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 (cannot be used together with source* or skip* parameters).&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;
 /skipb    n    - Number source folders (from the beginning) to skip.&lt;br /&gt;
 /skipe    n    - Number source folders (from the end) to skip.&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  - Extract SACD as (DFF, DSF or ASIS). &lt;br /&gt;
 /dop           - Use DSD-over-PCM (DoP) (for WAV as a destination only).&lt;br /&gt;
 /pad        x  - Remove clicks when decoding SACD via padding samples (e.g. /pad &amp;quot;50/50&amp;quot;).&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;
 /encoderexe    - Specify the executable for the encoder.&lt;br /&gt;
 &lt;br /&gt;
 /owav          - Use wav as output file extension.&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;
 /pt            - Preserve timestamps of files and folders.&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;
 &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;
 &lt;br /&gt;
 /onthefly     - Use on-the-fly encoding method (see http://xrecode.com/xrecode3/wiki/index.php?title=Misc)&lt;br /&gt;
 &lt;br /&gt;
 /uselib       - Use dll encoder (currently for Ogg only).&lt;br /&gt;
 /useexe       - Use exe encoder (when it&#039;s configured in settings.ini).&lt;br /&gt;
 &lt;br /&gt;
 /pfilename    - Set output file name pattern for the destination.&lt;br /&gt;
 &lt;br /&gt;
 /preferredcodecs - Set preferred source file codecs. If codec of the source file does not match one from the list, file will be skipped.&lt;br /&gt;
                    Value can contain several comma delimited values. In this case codes will be evaluated in the specified order.&lt;br /&gt;
                    Example1: if value is set to mlp,pcm and there are source files with mlp and pcm codecs, only the mlp files will be processed.&lt;br /&gt;
                    Example2: if value is set to mlp and there are no source files with mlp codecs, no files will be processed.&lt;br /&gt;
                    &lt;br /&gt;
 /scandts         - Scan WAV files for DTS stream.&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, i.e. if source file contains more than one cover, only the 1st one will be saved in the output file.&lt;br /&gt;
 /coverfilename      - File name template to save cover(s) to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /firstcoverfilename - File name template to save only first cover to, e.g. /coverfilename &amp;quot;%album%_%albumartist%&amp;quot;, /coverfilename &amp;quot;folder&amp;quot;&lt;br /&gt;
 /usecuemetaonly     - Use metadata from CUE file only.&lt;br /&gt;
 /nsec               - Do not search for external metadata (i.e. in files like cover.jpg, etc.).&lt;br /&gt;
 /tr                 - Tagsreplaxe file name.&lt;br /&gt;
 &lt;br /&gt;
 /retrievemeta       - Retrieve Metadata from internet.&lt;br /&gt;
 &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;
 /exportmeta  &amp;lt;filename&amp;gt;  - Export Metadata to file &amp;lt;filename&amp;gt;.&lt;br /&gt;
 /importmeta  &amp;lt;filename&amp;gt;  - Import Metadata from file &amp;lt;filename&amp;gt;.&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 mp3 using VBR 192:       &lt;br /&gt;
    -i c:\files\*.wav /r -o c:\output /dest mp3 /vbr 192&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 /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Extract SACD as DSF:&lt;br /&gt;
    -i c:\files\sacd.iso /sacdas dff /dest extract /o c:\output&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac using compression level 3    &lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 3&lt;br /&gt;
    &lt;br /&gt;
 Compress to flac uncompressed&lt;br /&gt;
    -i c:\files\*.wav -o c:\output /dest flac /compression 0&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files (including sub-folders) to mp3 and excludinf some file name:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /exclude *HTOA*&lt;br /&gt;
    &lt;br /&gt;
 Convert flac files to mp3 by passing manual command line to lame encoder:   &lt;br /&gt;
    -i c:\files\*.flac /r -o c:\output /dest mp3 /mcmd &amp;quot;--preset extreme&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Copy mp3 files to folder by applying file name pattern:   &lt;br /&gt;
    -i c:\files\*.mp3 -o c:\output /dest copy /pfilename &amp;quot;%albumartist%\%album%\%track2%. %title%&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
 Convert SACD iso files to dts using wav as extension, using external encoder and removing clicks:   &lt;br /&gt;
    -i c:\files\some.iso -o c:\output /dest dts /encoderexe &amp;quot;c:\dts\surcodedts.exe&amp;quot; /owav /pad &amp;quot;50/50&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== Advanced ==&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;
&lt;br /&gt;
== Specifying 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 executables like this (you only need to specify ones you want to use)&lt;br /&gt;
 enc.mp3.executable=D:\xr3console\lame.exe&lt;br /&gt;
 enc.ogg.executable=D:\xr3console\oggenc2.exe&lt;br /&gt;
 enc.flac.executable=c:\flac\flac.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
	<entry>
		<id>https://xrecode.com/wiki/index.php?title=Tags_replace_definition_file&amp;diff=1074</id>
		<title>Tags replace definition file</title>
		<link rel="alternate" type="text/html" href="https://xrecode.com/wiki/index.php?title=Tags_replace_definition_file&amp;diff=1074"/>
		<updated>2020-06-24T10:46:05Z</updated>

		<summary type="html">&lt;p&gt;Wikiadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Example of tags replace file. Rows starting with # are comments and are ignored. ==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# Values must be put into sections.&lt;br /&gt;
# The following section names are supported:&lt;br /&gt;
#&lt;br /&gt;
# [*] is for all tags, i.e. values specified under this section will be replace in all tags&lt;br /&gt;
# Following tag-specific identifiers can be used. Values will be replaced only in specified tag.&lt;br /&gt;
# [Conductor]&lt;br /&gt;
# [Date]&lt;br /&gt;
# [Publisher]&lt;br /&gt;
# [Lyrics]&lt;br /&gt;
# [Flags]&lt;br /&gt;
# [ISRC]&lt;br /&gt;
# [Title]&lt;br /&gt;
# [Catalog]&lt;br /&gt;
# [Year]&lt;br /&gt;
# [Genre]&lt;br /&gt;
# [Artist]&lt;br /&gt;
# [Album]&lt;br /&gt;
# [DiscId]&lt;br /&gt;
# [BPM]&lt;br /&gt;
# [Album Artist]&lt;br /&gt;
# [Composer]&lt;br /&gt;
# [Content Group]&lt;br /&gt;
# [Compilation]&lt;br /&gt;
# [Disc]&lt;br /&gt;
# [Track]&lt;br /&gt;
# [Comments]&lt;br /&gt;
# [Encoded by]&lt;br /&gt;
#&lt;br /&gt;
# Format is &amp;lt;value from&amp;gt;=&amp;lt;value to&amp;gt;&lt;br /&gt;
# where &amp;lt;value from&amp;gt; is case-sensitive value, which will be replaced&lt;br /&gt;
# with &amp;lt;value to&amp;gt;, which is RegEx expression.&lt;br /&gt;
#&lt;br /&gt;
# If you want to do a case insensitive replacement, add ! to the name of the section&lt;br /&gt;
#&lt;br /&gt;
# Those are specific value, which can be used as &amp;lt;value from&amp;gt;:&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;NULL&amp;gt; is used to specify empty tag&lt;br /&gt;
# &amp;lt;ANY&amp;gt; is used to specify any value&lt;br /&gt;
#&lt;br /&gt;
# Special values which can be used in value&lt;br /&gt;
# %y - current year (nn)&lt;br /&gt;
# %Y - current year (nnnn)&lt;br /&gt;
# %m - current month (nn)&lt;br /&gt;
# %d - current day (nn)&lt;br /&gt;
&lt;br /&gt;
# The following can be used for Track&lt;br /&gt;
# [Track]&lt;br /&gt;
# &amp;lt;ANY&amp;gt;=%track2%/%totaltracks2%&lt;br /&gt;
# which means that value for Track will be replaced with zero-padded value of Track&lt;br /&gt;
# %totaltracks2% will be replaced with zero-padded value of number of all tracks&lt;br /&gt;
&lt;br /&gt;
[Encoded by]&lt;br /&gt;
&amp;lt;ANY&amp;gt;=Encoded by me @ %F %T&lt;br /&gt;
&lt;br /&gt;
[Comments]&lt;br /&gt;
&amp;lt;ANY&amp;gt;=&amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[DiscId]&lt;br /&gt;
&amp;lt;ANY&amp;gt;=&amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[Album Artist]&lt;br /&gt;
&amp;lt;ANY&amp;gt;=&amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# case sensitive replacement for all tags&lt;br /&gt;
[*]&lt;br /&gt;
Featuring=Ft.&lt;br /&gt;
featuring=ft.&lt;br /&gt;
&lt;br /&gt;
#special case for semicolon (;)&lt;br /&gt;
#it must be escaped with the \, e.g. \;&lt;br /&gt;
#to remove semicolon from all tags, use&lt;br /&gt;
\;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[Artist]&lt;br /&gt;
&amp;lt;NULL&amp;gt;=Some Artists&lt;br /&gt;
&lt;br /&gt;
[Album]&lt;br /&gt;
&amp;lt;ANY&amp;gt;=Some Album&lt;br /&gt;
&lt;br /&gt;
#All tags to UPPER case&lt;br /&gt;
#[*]&lt;br /&gt;
#%CHANGECASE%=UpperCase&lt;br /&gt;
 &lt;br /&gt;
#All tags to lower case&lt;br /&gt;
#[*]&lt;br /&gt;
#%CHANGECASE%=LowerCase&lt;br /&gt;
 &lt;br /&gt;
#Capitalize Each Word for all tags&lt;br /&gt;
#[*]&lt;br /&gt;
#%CHANGECASE%=CapitalizEeachWord&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;NULL&amp;gt; means that only empty (null) value will be replaced.&lt;br /&gt;
*&amp;lt;ANY&amp;gt; means the any (empty or not) value will be replaced.&lt;br /&gt;
*Any value from [[File Name Pattern Elements]] can be used.&lt;br /&gt;
*%CHANGECASE% is a spcecial id, which means that case for all tags will be changed according to specified value (UpperCase, LowerCase or CapitalizEeachWord) &lt;br /&gt;
&lt;br /&gt;
== List of functions which can be used ==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# $$File(n)&lt;br /&gt;
# - use tags from n-th file&lt;br /&gt;
# $$FirstFile()&lt;br /&gt;
# - use tags from first file&lt;br /&gt;
# $$LastFile()&lt;br /&gt;
# - use tags from last file&lt;br /&gt;
# $$OnlyIfAllAreEqual()&lt;br /&gt;
# - only use the tag if all values in all files are equeal&lt;br /&gt;
# $$FirstNonEmpty()&lt;br /&gt;
# - take 1st non-empty value&lt;br /&gt;
&lt;br /&gt;
# this will apply the function to all tags&lt;br /&gt;
[*]&lt;br /&gt;
&amp;lt;ANY&amp;gt;=$$FirstNonEmpty()&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;historylink type=&amp;quot;back&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
</feed>