5

I want the album image from mp3 files. I have using ffmpeg for get the mp3 files metadata using

ffprobe -show_format path-name.

In this command i have get the all details except album image. How can i get the image from Mp3 files?

Karthick
  • 121
  • 5

1 Answers1

4

You can get the image from an mp3 using the following code snippet, try this..

ffmpeg -ss 125 -i wrong-way-fixed.mp3 -t 1 \ -s 480x300 -f image2 /dev/null

or use this

ffmpeg -i input.mp3 -an -vcodec copy cover.jpg

You can define the image resolution here..

gowri
  • 681
  • 9
  • 27