[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
loudnorm=linear=true:I=%vluf%:LRA=11:tp=%vpeak%:measured_I=%II%:measured_LRA=%ILRA%:measured_tp=%ITP%:measured_thresh=%IT%:offset=%TO%:print_format=summary
-c:v copy -map 0:0 -acodec mp3 -b:a %%c -ar:a %%b
"C:\Users\%username%\Desktop\Convertendo_lufs\%arquivo%"

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':
  Metadata:
    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
    Metadata:
      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)
    Metadata:
      comment         : Cover (front)
[NULL @ 000002c4fdb37740] *Unable to find a suitable* *output format for
'N/A'*
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?!!

thanks
Clamarc


More information about the ffmpeg-user mailing list