FFmpeg: Convert mp3 & album art to video in one step? I know you can use FFmpeg to extract the album art of an mp3 file. I also know you can combine an image and audio file to create a video. But, to my surprise, I cannot figure out nor find a way to do this in one step. Has anyone ever figured this out or is it really impossible?

What might be useful is FFmpeg does demux the album art, but it does not show up as video frames. E.g.

ffmpeg -i 1.mp3 out.mp4


results in

Input #0, mp3, from '1.mp3':
  Metadata:
    artist          : Dazzled Sticks
    TST             : Dazzled Sticks - Let's Dans (Martijn Groeneveld Mashup)
    genre           : Hiphop/Rap
    title           : Dazzled Sticks - Let's Dans (Martijn Groeneveld Mashup)
    date            : 2016
  Duration: 00:02:46.84, start: 0.025056, bitrate: 154 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Metadata:
      encoder         : Lavc56.26
    Stream #0:1: Video: png, rgb24(pc), 1800x1800 [SAR 11811:11811 DAR 1:1], 90k
 tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Other
    Stream #0:2: Video: png, rgb24(pc), 1800x1800 [SAR 11811:11811 DAR 1:1], 90k
 tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Other
I know that you were trying to find a way to do this in a single step. However, for those who stumble across this question, it's much easier to chain two ffmpeg commands like so:

ffmpeg -i in.mp3 -an out.png &amp;&amp; ffmpeg -loop 1 -i out.png -i in.mp3 -c:a aac -ab 256k -c:v libx264 -pix_fmt yuv420p -shortest -strict -2 out.mp4


Note that this reencodes the mp3, as it's not a supported codec in mp4 containers.