Is there any way to embed cover art to m4a files?
This one works well for mp3 but doesn\'t work for m4a
ffmpeg
A little bit extended version for embedding album art with atomicparsley. Tested on Mac OS X. It assumes there is folder.jpg file in the current directory. AtomicParsley creates temp files with embedded media in the same folder. There is a flag --overWrite which is supposed to change this behavior, but for some reason this doesn't work for me. So we will need to remove the original files afterwards. Note, that the script will remove all the files which do not coontain temp in their filename. So be cautious (or modify the script). Finally, the script renames newly created files to remove -temp- part from their filenames.
for f in *.m4a
do
atomicparsley "$f" --artwork folder.jpg
done
rm !(*temp*)
for f in *.m4a
do
g=${f//-temp*./.}
mv "$f" "$g"
done