whatmp3 icon indicating copy to clipboard operation
whatmp3 copied to clipboard

Copy embedded album art

Open ValdikSS opened this issue 10 years ago • 7 comments

whatmp3 should copy embedded album art into encoded file.

ValdikSS avatar Sep 18 '15 06:09 ValdikSS

Yes

Catarax avatar Oct 13 '15 23:10 Catarax

+1 would be a very appreciated feature!

aeuae avatar Oct 14 '15 22:10 aeuae

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.)

TiredSounds avatar Nov 15 '15 09:11 TiredSounds

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.

ValdikSS avatar Nov 15 '15 09:11 ValdikSS

Ah ok, was just curious.

TiredSounds avatar Nov 15 '15 09:11 TiredSounds

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.

RecursiveForest avatar Jul 24 '16 19:07 RecursiveForest

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.

robinwils avatar Sep 01 '16 21:09 robinwils