John Gorst wrote:

>
>> Again, as you've already found out, no it won't.
>>
>> Just copy all your mp3s over and then run flac2mp3.
>>
>> If I extend flac2mp3 to include "mirroring", i.e. delete any files
found in the target directory that don't have corresponding source
files, then I may consider adding mp3 copying.
>
>
>
>
> I have created a simple shell script to copy all files (excluding
flac) to the target directory and then run the flac2mp3 converter.
>
> I created a file called copyandvert.sh into the directoty where all
my music is located (/home/john/Music for me) and gave it execute
priviliges to me.
>
> The content of the file is: find . -not -name "*.flac" -print | cpio
-pvdu /home/john/converted/ flac2mp3 ./ /home/john/converted/


John,

You can do this much better (IMHO) with rsync.

Try something like:

rsync -a --include=*.mp3 /home/john/Music/ /home/john/converted

> Obviously change /home/john/converted to the directory where you
want
>  all your mp3's and converted flacs to be placed. Also add the path
to flac2mp3 (I have copied mine to /usr/bin/ therefore it doesnt need
>  a path).
>
> If I work out how to use cron, I should be able to set it up to run
each night.


Personally, I'd setup separate cron jobs for the mp3 sync and the flac
conversion.

Edit your crontab using:

# crontab -e

Add the following lines to the crontab to run the above rsync command
and flac2mp3:

0 2 * * * rsync -a --include=*.mp3 /home/john/Music
/home/john/converted
0 2 * * * flac2mp3 --quiet /home/john/Music /home/john/converted

This starts both processes at 02:00 every day.

Make sure both rsync and flac2mp3 are in a directory that is in the
PATH
of your cron environment (not necessarily the same as your shell
environment)

> I will also look into running lame with a lower nice value otherwise
things could get very slow on my server if the convert job extends into
the day time!


The easiet way to do this is to use nice in the crontab, e.g.:

0 2 * * * nice flac2mp3 --quiet /home/john/Music /home/john/converted

Again. make sure nice is in the path.

>
> Sorry, this is linux specific I think.


linux/unix

>> I've set up a bunch of mail lists relating to flac2mp3.
>>
>> Details are here:
>>
>> http://robinbowes.com/article.php/20050611002827903
>
>
> crossposted to the the above mailing list, but figured more people
would read it here.


I've also posted this reply there.

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?


-- 
robinbowes
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping

Reply via email to