Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: ffmpeg - how to add embbed image in MP3 ? (Read 9961 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ffmpeg - how to add embbed image in MP3 ?

Hello,

I'm using FFmpeg 1.1, I want to add an embedded image to existing Mp3.

Can't achieve it with any of the followings CLI.

Quote
ffmpeg -i withTagsMp3.mp3 -i img.jpg -acodec copy -map_metadata 0 -write_id3v1 1 test.mp3
ffmpeg -i withTagsMp3.mp3 -i img.jpg -acodec copy -map_metadata 0 -id3v2_version 3 test.mp3
ffmpeg -i withTagsMp3.mp3 -i img.jpg -acodec copy test.mp3


RE: http://en.wikipedia.org/wiki/ID3

ffmpeg - how to add embbed image in MP3 ?

Reply #1
Code: [Select]
ffmpeg -i input.mp3 -i cover.png -c copy -map 0 -map 1 -metadata:s:v title="Cover (front)" output.mp3
Source: http://ffmpeg.org/ffmpeg-formats.html#mp3 and https://ffmpeg.org/trac/ffmpeg/ticket/2221.

BUT, I much more prefer Mp3tag though, because:
- Duration changes, regardless of metadata. My 0:25.500 (1124550) sample became 0:25.548 (1126656), a difference of 2106 samples!
- 'Date' becomes '<RELEASE DATE>' somehow.
- You'll loose LAME properties: <ENC_DELAY>, <ENC_PADDING> and <MP3_ACCURATE_LENGTH>. And 'Codec profile : MP3 VBR V6' becomes 'Codec profile : MP3 VBR'.

 

ffmpeg - how to add embbed image in MP3 ?

Reply #2
why not use some program, like Tag&Rename, or zortam, mp3tag or foobar???
don't do anything I would .....