Skip to main content

Topic: ffmpeg - how to add embbed image in MP3 ? (Read 3327 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • livebe
  • [*]
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

  • CoRoNe
  • [*][*][*]
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'.
DC-Bass Source Mod: http://reino.degeelebosch.nl

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