0

I am struggling to output thumbnail of an mp3 file in webp format

Tried this but it did not worked for .webp

I am running this command in AWS lambda function to extract album Art and save in S3.

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

enter image description here

Any help would be appreciated.

Reference: link

Arihant Jain
  • 817
  • 5
  • 17
  • 1
    By using the `-vcodec copy` flag, you're telling ffmpeg that you want to copy the codec that the video stream is using (in this case mjpeg), but you're then telling it to turn into a webp. As it's telling you, `Only WebP is supported`, as in, webp is webp, not mjpeg. You might be able to use something like `-c:v libwebp` instead to tell ffmpeg to turn the stream mjpeg into webp. – Levi_OP Jan 05 '23 at 18:14
  • ffmpeg -i input.mp3 -an -c:v libwebp output.webp Worked! – Arihant Jain Jan 05 '23 at 18:17

0 Answers0