As far as I'm concerned, there's no easy way to tell FFmpeg to set the album artwork for an MP4 container, which you'd typically use for AAC audio (.m4a
). You can however use AtomicParsley to add the artwork later, via command line.
Here's how you can install AtomicParsley:
- All operating systems have binaries from the SourceForge page
- Linux distributions might have it in the packages, i.e.
apt-get install atomicparsley
- OS X through Homebrew with
brew install atomicparsley
But first, we'll need to extract the artwork, e.g. as a JPEG file:
ffmpeg -i input.mp3 artwork.jpg
We can then use AtomicParsley to add the album artwork:
AtomicParsley output.m4a --artwork artwork.jpg
This will not overwrite the original file but create a temporary file instead, e.g. output-temp-15274.m4a
. If you want the original to be overwritten, add the --overWrite
option to the command, e.g.:
AtomicParsley output.m4a --artwork artwork.jpg --overWrite
And voilà: