<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Using_rdimport_to_import_mp3_files</id>
	<title>Using rdimport to import mp3 files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Using_rdimport_to_import_mp3_files"/>
	<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Using_rdimport_to_import_mp3_files&amp;action=history"/>
	<updated>2026-04-23T14:26:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://rivendellaudio.wiki/index.php?title=Using_rdimport_to_import_mp3_files&amp;diff=28923&amp;oldid=prev</id>
		<title>imported&gt;WaybackImport: Imported from Wayback via edit</title>
		<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Using_rdimport_to_import_mp3_files&amp;diff=28923&amp;oldid=prev"/>
		<updated>2020-08-12T15:34:43Z</updated>

		<summary type="html">&lt;p&gt;Imported from Wayback via edit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== RDImport is a great tool to import large numbers of mp3s or wav into your music database. ==&lt;br /&gt;
&lt;br /&gt;
To find out how to use rdimport functions type rdimport --help&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
rdimport [options] &amp;lt;group&amp;gt; &amp;lt;filespec&amp;gt; [,&amp;lt;filespec&amp;gt;]*&lt;br /&gt;
&lt;br /&gt;
Import one or more files into the specified group in the library.  By&lt;br /&gt;
default, a new cart will be created for each file imported.  A &amp;lt;filespec&amp;gt; of&lt;br /&gt;
&amp;#039;-&amp;#039; will cause RDImport to read the list of filespecs from standard input.&lt;br /&gt;
&lt;br /&gt;
The following options are available:&lt;br /&gt;
&lt;br /&gt;
 --verbose&lt;br /&gt;
     Print progress messages during processing.&lt;br /&gt;
&lt;br /&gt;
 --log-mode&lt;br /&gt;
     Prepend date/time information to each line of printed status (implies&lt;br /&gt;
     the &amp;#039;--verbose&amp;#039; option).&lt;br /&gt;
&lt;br /&gt;
 --normalization-level=&amp;lt;level&amp;gt;&lt;br /&gt;
     Specify the level to use for normalizing the audio, in dBFS.&lt;br /&gt;
     Specifying &amp;#039;0&amp;#039; will turn off normalization.&lt;br /&gt;
     On Rivendell meters, 0dB=-16dBFS&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
 --autotrim-level=&amp;lt;level&amp;gt;&lt;br /&gt;
     Specify the threshold level to use for autotrimming the audio, in&lt;br /&gt;
     dBFS.  Specifying &amp;#039;0&amp;#039; will turn off autotrimming.&lt;br /&gt;
&lt;br /&gt;
 --single-cart&lt;br /&gt;
     If more than one file is imported, place them within multiple cuts&lt;br /&gt;
     within a single cart, rather than creating separate carts for each&lt;br /&gt;
     file.&lt;br /&gt;
&lt;br /&gt;
 --segue-level=&amp;lt;level&amp;gt;&lt;br /&gt;
     Specify the threshold level to use for setting the segue markers,&lt;br /&gt;
     in dBFS.&lt;br /&gt;
&lt;br /&gt;
 --segue-length=&amp;lt;length&amp;gt;&lt;br /&gt;
     Length of the added segue in msecs.&lt;br /&gt;
&lt;br /&gt;
 --to-cart=&amp;lt;cartnum&amp;gt;&lt;br /&gt;
     Specify the cart to import the audio into, rather than using the next&lt;br /&gt;
     available cart number for the group.  If the cart does not exist, it will&lt;br /&gt;
     be created.  Each file will be imported into a separate new cut within the&lt;br /&gt;
     cart.  Use of this option implies the &amp;#039;--single-cart&amp;#039; option as well,&lt;br /&gt;
     and is mutually exclusive with the &amp;#039;--use-cartchunk-cutid&amp;#039; option.&lt;br /&gt;
&lt;br /&gt;
 --use-cartchunk-cutid&lt;br /&gt;
     Import the audio into the cart specified by the CartChunk CutID parameter&lt;br /&gt;
     associated with the file.  If the cart does not exist, it will be&lt;br /&gt;
     created.  Use of this option is mutually exclusive with the &amp;#039;--to-cart&amp;#039;&lt;br /&gt;
     option.&lt;br /&gt;
&lt;br /&gt;
 --title-from-cartchunk-cutid&lt;br /&gt;
     Set the cart title from CartChunk CutID.&lt;br /&gt;
&lt;br /&gt;
 --delete-source&lt;br /&gt;
     Delete each source file after successful import.  Use with caution!&lt;br /&gt;
&lt;br /&gt;
 --delete-cuts&lt;br /&gt;
     Delete all cuts within the destination cart before importing.  Use&lt;br /&gt;
     with caution!&lt;br /&gt;
&lt;br /&gt;
 --drop-box&lt;br /&gt;
     Operate in DropBox mode.  RDImport will run continuously, periodically&lt;br /&gt;
     scanning for the specified files, importing and then deleting them when&lt;br /&gt;
     found.  WARNING:  use of this option also implies the &amp;#039;--delete-source&amp;#039;&lt;br /&gt;
     option!&lt;br /&gt;
&lt;br /&gt;
 --metadata-pattern=&amp;lt;pattern&amp;gt;&lt;br /&gt;
     Attempt to read metadata parameters from the source filename, using&lt;br /&gt;
     the pattern &amp;lt;pattern&amp;gt;.  Patterns consist of a sequence of macros and&lt;br /&gt;
     regular characters to indicate boundaries between metadata fields.&lt;br /&gt;
     The available macros are:&lt;br /&gt;
&lt;br /&gt;
          %a - Artist&lt;br /&gt;
          %b - Record Label&lt;br /&gt;
          %c - Client&lt;br /&gt;
          %e - Agency&lt;br /&gt;
          %g - Rivendell Group&lt;br /&gt;
          %i - Cut Description&lt;br /&gt;
          %l - Album&lt;br /&gt;
          %m - Composer&lt;br /&gt;
          %n - Rivendell Cart Number&lt;br /&gt;
          %o - Cut Outcue&lt;br /&gt;
          %p - Publisher&lt;br /&gt;
          %r - Conductor&lt;br /&gt;
          %s - Song ID&lt;br /&gt;
          %t - Title&lt;br /&gt;
          %u - User Defined&lt;br /&gt;
          %y - Year&lt;br /&gt;
          %% - A literal &amp;#039;%&amp;#039;&lt;br /&gt;
&lt;br /&gt;
     Detection of either the Rivendell Group [%g] or Rivendell Cart [%n]&lt;br /&gt;
     will cause RDImport to attempt to import the file to the specified Group&lt;br /&gt;
     and/or Cart, overriding whatever values were specified elsewhere on the&lt;br /&gt;
     command line.&lt;br /&gt;
&lt;br /&gt;
     Boundaries between metadata fields are indicated by placing regular&lt;br /&gt;
     characters between macros.  For example, the pattern &amp;#039;%t_%a_%g_%n.&amp;#039;,&lt;br /&gt;
     when processing a filename of &amp;#039;My Song_My Artist_TEMP_123456.mp3&amp;#039;,&lt;br /&gt;
     would extract &amp;#039;My Song&amp;#039; as the title and &amp;#039;My Artist&amp;#039; as the artist,&lt;br /&gt;
     while importing it into cart 123456 in the TEMP group.&lt;br /&gt;
&lt;br /&gt;
 --fix-broken-formats&lt;br /&gt;
     Attempt to work around malformed audio input data.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
It may be necessary to enclose individual &amp;lt;filespec&amp;gt; clauses in quotes in order to protect wildcard characters from expansion by the shell.  A typical indicator that this is necessary is the failure of RDImport to process newly added files when running in DropBox mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How I used rdimport&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
So this is how I added a whole lot of songs to my RD database...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rdimport --verbose --segue-level=-10 Examplegroupname *.mp3 2&amp;gt; errorlog.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This imports everything with an MP3 file extension in a particular directory to the RD database, and places a SEQUE LEVEL fade point at the end of the track at such a point where the volume drops to -10dB. A new CART number is created for each file. It also creates an error log. If the error log already exists put  2&amp;gt;&amp;gt; errorlog.txt to add to the bottom of an existing error log.&lt;br /&gt;
&lt;br /&gt;
The only songs that don&amp;#039;t get converted with more than one DOT or comma in the file name. &lt;br /&gt;
eg Artist Name - Song Name..mp3&lt;br /&gt;
 &lt;br /&gt;
or Artist Name - Song Name, Middle Name.mp3&lt;br /&gt;
&lt;br /&gt;
Another thing you can do is make all the tracks CUTs inside the one cart.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rdimport --verbose --segue-level=-10 --single-cart Examplegroupname *.mp3 2&amp;gt; errorlog.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or if the CART already exists you can add CUTs to it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;rdimport --verbose --segue-level=-10 --to-cart=400 Examplegroupname *.mp3 2&amp;gt; errorlog.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other things to consider with Linux and Unix based systems is all file names directory paths are case sensitive. eg Song Name.mp3 is different from song name.mp3&lt;br /&gt;
And when converting files using RDIMPORT... the group name is case sensitive.&lt;br /&gt;
&lt;br /&gt;
== Wildcards ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I set up the metadata option as: --metadata-pattern=SPN_%l_[0-9]*_[0-9]*_%t\.mp3 &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Ah, you&amp;#039;re using regexes.  Unfortunately, RDImport doesn&amp;#039;t have the smarts to &lt;br /&gt;
deal with that -- just &amp;#039;*&amp;#039; and &amp;#039;?&amp;#039; wildcards.  Now that you bring it up, it &lt;br /&gt;
isn&amp;#039;t a bad idea though... &lt;br /&gt;
Frederick F. Gleason, Jr. - Chief Developer - Paravel Systems&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;WaybackImport</name></author>
	</entry>
</feed>