[FFmpeg-user] mp3 audio output recording error message when he has Cover

CMG DiGiTaL cmarciog at gmail.com
Mon Feb 28 20:05:18 EET 2022

> > Is there a way to check if the file has a cover and if so, record the
> cover
> > along with it?
> Simply add -c:v copy.

hi Reino,

I entered -c:v copy in command line as you suggested see below:
FOR /F "tokens=1,2 delims=," %%b IN ('ffprobe -v 0 -show_entries
stream^=bit_rate^,sample_rate -of csv^=p^=0 "%arquivo%"') DO ffmpeg -i
"%arquivo%" -af
-c:v copy -map 0:0 -acodec mp3 -b:a %%c -ar:a %%b

The batch runs loudnorm and also copies the image to the output file, but
It turns out that at the end of execution, the message appears:

Input #0, mp3, from 'Lobão - Cuidado!.mp3':
    album           : CMG Clássicos Pop Rock Nacionais
    artist          : Lobão
    encoder         : Lavf59.6.100
    genre           : Clássico Pop Rock Nacional
    TKEY            : E m
    title           : Cuidado!
    date            : 1988
  Duration: 00:03:26.63, start: 0.025056, bitrate: 330 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
      encoder         : Lavc59.12
  Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 1018x1023 [SAR 72:72 DAR 1018:1023], 90k tbr, 90k
tbn (attached pic)
      comment         : Cover (front)
[NULL @ 000002c4fdb37740] *Unable to find a suitable* *output format for
N/A: Invalid argument

Other detail:
When I see the converted file on the windows screen, the image (COVER) does
not appear as in the original file, ex:
In the original file I see the cover image of the song, in the converted
file only the mp3 icon appears and not the cover image?!!


More information about the ffmpeg-user mailing list