lame
Using lame
you can do this using a little scripting:
$ lame --ti /path/to/file.jpg audio.mp3
If the files are named something like this you can make a shell script to do what you want:
for i in file1.mp3 file2.mp3 file3.mp3; do
albart=$(echo $i | sed 's/.mp3/.jpg/')
lame --ti /path/to/$albart $i
done
You can make the above slightly more compact and eliminate the need for sed
by using bash
to do it by having it remove the matching suffix:
...
albart="${i%.mp3}.jpg"
...
Picard/MusicBrainz
If you want to do this on a large scale I'd suggest using Picard which is the frontend tool for using the MusicBrainz database. There is a plugin to Picard called "Cover Art Downloader", which can do this to batches of your collection.
The above doesn't appear to be command line driven however.
beets
Another option would be to use beets
. This can be driven from the command-line and makes use of MusicBrainz database for sourcing the album art.
You can either source the album art usingFetchArt Plugin or embed it using the EmbedArt Plugin.
Other options?
Also take a look at this previously asked U&L Q&A titled: Which mp3 tagging tool for Linux?. There are several alternative tools listed in this thread.
Launching a program from the terminal is as easy as running the executable. For example:
$ firefox &
The '&' above is optional, and it puts the process in the background, which lets you immediately run another program in the same terminal.
You can only pre-determine the screen location of the program's window if the program accepts an argument to do so. Most X programs will accept a -geometry
option which can be used to set the X-location, Y-location, width, and height of the window, but there is no requirement that graphical programs accept any such parameter.
Best Answer
Take a look at
sox
Quoting
man sox
:[...]
So, it should be a nice fit as a companion command line alternative to audaciy!
Regarding the actual task of cleaning recordings, take a look at the filter
noisered
for which equals the noise reduction filter Audacity:man sox | less -p 'noisered \['