I've been stuck in adding album art to mp3 files.
I've already researched and Googled this issue but haven't found a solution yet. The ffmpeg documentation recommends this script to add image (album art) to mp3:
ffmpeg -i input.mp3 -i cover.png -c copy -map 0 -map 1 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" out.mp3
But it doesn't work. My console output is:
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'
I looked for another solution and got this:
ffmpeg -i input.mp3 -i cover.png -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" out.mp3
This returns the same output:
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'
Anybody can help me, please?
I am using ubuntu 12.04 and ffmpeg version 0.8.6-4:0.8.6-0.
Thanks.
With Recent version,
Use
-mapto associate input stream to the outputUse
-c copyto directly demux/remuxThe
-id3v2_version 3is what is missing in your command line. Note that that wil write an IDV2.3 but you can ask for a 2.4 (-id3v2_version 4)with the
-id3v2_version 3option the-metadataoption will be well interpretedNote: the metadata comment is case-sensitive.