Now I've stumbled upon different posts here and there around the web for extracting a still as a thumbnail for the video.. but I can't seem to find anything related to extracting a cover thumbnail of a video that has an existing image embedded into the video as it's thumbnail.

for mp3 it's as easy as:

ffmpeg -i "file.mp3" "file.jpg"

but it's a totally different story for mp4.

Any help would be very helpful. Thank you.



ffmpeg -i video.mp4 -map 0:v -map -0:V -c copy cover.jpg

Cover images in MP4 aren't regular video streams but have a disposition of an attached picture.

What the command above does first is map all video streams (regular + attached pictures) and then use a negative mapping to disable all regular video streams, leaving only the attached pictures mapped.

MP4s can have attached pictures with codec JPEG, PNG or BMP. Check which one your file has, and correct the extension.

| improve this answer | |
  • Thank you so much. I was having a really hard time for about a good 2 hours.. Cheers! – Mr-RightHanded Jun 3 '18 at 11:08
  • Hey, I might be reaching a bit too far for my next question, but do you happen to know how to extract the audio from said file and leaving the audio stream. I tried tweaking with your given solution but I can't seem to find a workaround – Mr-RightHanded Jun 4 '18 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.