HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - General => Topic started by: livebe on 2013-02-19 10:03:20

Title: ffmpeg - how to add embbed image in MP3 ?
Post by: livebe on 2013-02-19 10:03:20
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 (http://en.wikipedia.org/wiki/ID3)
Title: ffmpeg - how to add embbed image in MP3 ?
Post by: CoRoNe on 2013-02-19 22:13:27
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 (http://ffmpeg.org/ffmpeg-formats.html#mp3) and https://ffmpeg.org/trac/ffmpeg/ticket/2221 (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'.
Title: ffmpeg - how to add embbed image in MP3 ?
Post by: gwenkillerby on 2013-02-19 23:33:24
why not use some program, like Tag&Rename, or zortam, mp3tag or foobar???