Paul Webster wrote:
> I did not check that lame can read flac ... if it cannot then something
> like this should work (would need to install ffmpeg ... and best to get
> it from pCP repo not the piCore one).
>
> for f in *.flac; do ffmpeg -i "$f" -b:a 128k "${f%flac}mp3"; done
Good grief - thanks Paul. I shall give that a try. There's a whole
scripting lesson in that one line! Am I right that that only looks for
flacs in the current directory? Is there an easy way to make it recurse
through all the subdirectories as well?
Before you posted that, I did install pcp-lame, and it didn't recognise
my flac file. So I installed pcp-flac, then googled a way to chain them
together:
flac --decode --stdout test.flac | lame --preset extreme - test.mp3
A single 250MB flac took ages to convert on my Pi Zero W. It would make
sense to use a faster machine for the initial bulk conversion. For
future additions to the library it won't matter that it's a bit slow
with one or two disks at a time.
A haven't tried the resulting mp3 file with an edited cue sheet in LMS
yet - a job for later this evening.
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110496
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping