Re: [RDD] RDImport Question

2020-03-10 Thread Phil Biehl
Thanks to everyone who responded to my question. I have a working command
that imports everything below the current directory and passes it to
rdimport. That way I can run this thing for as long as it takes to import my
8000+ mp3 and flac files onto my NAS. The main problem I had was the spaces
in file and folder names but Steve's command: find ./ -name "*.mp3" -print0
| xargs -0 -n1 rdimport GROUP took care of the spaces nicely.

My command lIne: 
find ./ -name "*.mp3" -print0 | xargs -0 -n1 rdimport
--normalization-level=0 --fix-broken-formats --autotrim-level=0
--segue-level=-15 --verbose "New age"

Now I just have to wait a few days for this to complete on my little
Raspberry Pi.

Thanks all!
Phil


-Original Message-
From: Steve [mailto:riv...@braingia.org] 
Sent: Tuesday, March 10, 2020 7:10 PM
To: rivendell-dev@lists.rivendellaudio.org
Cc: Phil Biehl; 'User discussion about the Rivendell Radio Automation
System'
Subject: Re: [RDD] RDImport Question

Hello,

Yes, this can be done using the find command together with rdimport.  

For example, if you have cd'ed into the top-level directory in which you
store the music files (and their hierarchy), you can run this to list all of
the files:  (Assumes .wav files)

find ./ -name "*.wav" -print0

That will traverse all directories beginning with the current directory
looking for files that end with .wav.  

Pipe that into xargs with rdimport:

find ./ -name "*.mp3" -print0 | xargs -0 -n1 rdimport GROUP

where GROUP is the name of the group in Rivendell in which you want to
import.

I just tested this command and it worked for me.  Your mileage may vary.

find ./ -name "*.wav" -print0 | xargs -0 -n1 rdimport --verbose TEST

The command runs rdimport once for each file.  You could also remove the -n1
and it will run rdimport with all of the files at 
once which should increase performance.  I'm not that daring though, so I
use -n1.  The default for -n is 5000 (I think) so if 
you have more than 5000 files to import using xargs then increase -n
accordingly.  Make sure you have enough free carts in the 
group too.

Steve

> From: rivendell-dev-boun...@lists.rivendellaudio.org
 On Behalf Of Phil Biehl
> Sent: Tuesday, March 10, 2020 12:43 PM
> To: 'User discussion about the Rivendell Radio Automation System'

> Subject: [RDD] RDImport Question
> 
> Braintrust,
> I have a large number of music files I want to import to Riv that are
divided up into folders and subfolders. I???m hoping that there is a way to
get rdimport to process these files, traversing all these subfolders. Is
there a way to do this?
> 
> Thanks,
> Phil

> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDImport Question

2020-03-10 Thread Steve
Hello,

Yes, this can be done using the find command together with rdimport.  

For example, if you have cd'ed into the top-level directory in which you store 
the music files (and their hierarchy), you can run this to list all of the 
files:  (Assumes .wav files)

find ./ -name "*.wav" -print0

That will traverse all directories beginning with the current directory looking 
for files that end with .wav.  

Pipe that into xargs with rdimport:

find ./ -name "*.mp3" -print0 | xargs -0 -n1 rdimport GROUP

where GROUP is the name of the group in Rivendell in which you want to import.

I just tested this command and it worked for me.  Your mileage may vary.

find ./ -name "*.wav" -print0 | xargs -0 -n1 rdimport --verbose TEST

The command runs rdimport once for each file.  You could also remove the -n1 
and it will run rdimport with all of the files at 
once which should increase performance.  I'm not that daring though, so I use 
-n1.  The default for -n is 5000 (I think) so if 
you have more than 5000 files to import using xargs then increase -n 
accordingly.  Make sure you have enough free carts in the 
group too.

Steve

> From: rivendell-dev-boun...@lists.rivendellaudio.org 
>  On Behalf Of Phil Biehl
> Sent: Tuesday, March 10, 2020 12:43 PM
> To: 'User discussion about the Rivendell Radio Automation System' 
> 
> Subject: [RDD] RDImport Question
> 
> Braintrust,
> I have a large number of music files I want to import to Riv that are divided 
> up into folders and subfolders. I???m hoping that there is a way to get 
> rdimport to process these files, traversing all these subfolders. Is there a 
> way to do this?
> 
> Thanks,
> Phil

> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDImport Question

2020-03-10 Thread Mark Murdock
I don’t believe so. I did this in batches. I copied files from a folder into 
the music_import folder, imported them with RDImport, deleted the copied files, 
then did another batch until I got through them all. It took a while!

Mark Murdock
KAMB
90 E. 16th St.
Merced, CA 95340
(209) 723-1015
m...@celebrationradio.com
Website



From: rivendell-dev-boun...@lists.rivendellaudio.org 
 On Behalf Of Phil Biehl
Sent: Tuesday, March 10, 2020 12:43 PM
To: 'User discussion about the Rivendell Radio Automation System' 

Subject: [RDD] RDImport Question

Braintrust,
I have a large number of music files I want to import to Riv that are divided 
up into folders and subfolders. I’m hoping that there is a way to get rdimport 
to process these files, traversing all these subfolders. Is there a way to do 
this?

Thanks,
Phil
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] RDImport Question

2020-03-10 Thread Phil Biehl
Braintrust,

I have a large number of music files I want to import to Riv that are divided 
up into folders and subfolders. I’m hoping that there is a way to get rdimport 
to process these files, traversing all these subfolders. Is there a way to do 
this?

 

Thanks,

Phil

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev