I’m looking for a way to execute MusicBrainz Picard entirely via the command line.
The reason being is that I have about 5K albums (I haven’t counted the individual songs) and in some of them, the cover art that’s embedded in the audio file isn’t compliant with some of the music players (i.e. Sony Walkman NW-A55). Consequently, the album art doesn’t show even though it’s present. For the record, Sony requires album art to be baseline JPGs and not progressive.
I’ve written a simple bash script (this is on macOS, BTW) that will traverse the directory, and query both the
cover.jpg file as well as the audio file to validate the cover art (I’m using
ffprobe) and fix it if necessary. However, to properly embed the cover art, I need to “run it through” Picard.
I can automate the launching of Picard with the command
open -a "MusicBrainz Picard" <name of audiofile> and it will launch Picard with audio file loaded and ready to be saved with the new album art. Unfortunately, that’s as far as it goes because from there, it’s a manual operation. Is there any way to automate saving the file so I can do this process unattended?