Copy embedded album art
whatmp3 should copy embedded album art into encoded file.
Yes
+1 would be a very appreciated feature!
Seeing as this is a script for WCD specifically, why do you guys want this? Embedded artwork is generally discouraged on the site, most people seem to prefer a cover.png/jpg and/or a folder. (I know I do.)
I always embed small (640×480 or less) artwork and put a full-sized one in the file. That's why I'd like to have it work.
Ah ok, was just curious.
I'm interested in implementing this as a non-default option, but last time I looked into it I got bogged down reading through ffmpeg options to copy embedded art to ogg vorbis— iirc it was pretty nontrivial. If anyone can dump me some sample commands to write embedded art to vorbis files (and any other format), it would speed up implementation greatly.
Maybe have a look at this ?
It seems that you have to put the embedded art, encoded in base64, into the comments(metadata_block_picture). You would need the vorbiscomment binary though
More info
for mp3, with lame:
--ti
audio/song albumArt (jpeg/png/gif file, v2.3 tag)
and to retrieve the album art from flac (from man metaflac):
--export-picture-to=file Export PICTURE block to a file. Use '-' for stdout. Only one FLAC file may be specified on the command line. The first PICTURE block will be exported unless --export-picture-to is preceded by a --block-number=# option to specify the exact metadata block to extract. Note that the block number is the one shown by --list.