FFmpeg drops the Album Art

1

Everytime I encode my songs to lossy formats, the output file keeps the tags (title, artist, album, etc...), but drops the album art.

I tried to encode to any lossy format, including AAC, OGG and OPUS. They all drop the album art... except MP3.

I've figured out that I can't encode my songs to M4A and OGG formats, unless I add -vn flag, which removes the album art. So instead of M4A and OGG, i tried any other container, including .aac, .oga, .mka. But they all drop the album art too.

What I've tried:

ffmpeg -y -i "/storage/sdcard1/Music/01 Adam Foroush.m4a" -c:a libopus -b:a 128k -af aresample=48000:resampler=soxr:precision=33:cheby=1:dither_method=shibata -vbr on -compression_level 10 -frame_duration 60 -application audio "/storage/emulated/0/FFMPEG/01 Adam Foroush.opus"

Things gets more weird when I use opus-tools (to encode to OPUS) and used vorbis-tools (to encode to OGG). Unlike FFmpeg, they both gave me output files that retained the album art. But I don't like to use them since they both have poor input decoding support.

And about FFmpeg, I know I can encode my songs to OPUS, OGG or AAC, and then in the next step, embed the album art in them, but that's not a good solution.

Anyone? Any help?

آرنولد پفکی

Posted 2019-06-19T09:59:54.433

Reputation: 11

Are you specifying attached_pic? – harrymc – 2019-06-19T10:08:50.990

Share your full command. – Gyan – 2019-06-19T10:15:39.170

@harrymc does it embed the pic that i use as the second input? nah, that's not the solution that i'm looking for... see, i can use any TagEditor app and embed a picture into my songs. But it's an "extra step". I don't like it. I wan't FFmpeg to keep the album art when i encode my songs to m4a (aac), ogg, and opus. That's all i want! – آرنولد پفکی – 2019-06-19T10:16:14.930

ffmpeg -y -i "/storage/sdcard1/Music/01 Adam Foroush.m4a" -c:a libopus -b:a 128k -af aresample=48000:resampler=soxr:precision=33:cheby=1:dither_method=shibata -vbr on -compression_level 10 -frame_duration 60 -application audio "/storage/emulated/0/FFMPEG/01 Adam Foroush.opus" – آرنولد پفکی – 2019-06-19T10:20:46.873

forgot to say that i'm using FFmpeg v4.1.3, which is the latest version. – آرنولد پفکی – 2019-06-19T10:53:57.270

Ideally, please share the whole command's log output by [edit]ing your question. – slhck – 2019-06-19T11:59:30.953

No answers