Set MP4 thumbnail

Solution 1:

Try to use ffmpeg -disposition option along with -map.

ffmpeg -i video.mp4 -i image.png -map 0 -map 1 -c copy -c:v:1 png -disposition:v:1 attached_pic out.mp4

More information can be found in ffmpeg documentation:

  • -map option
  • ffmpeg main options

Also, please note, it's not guaranteed that the image you use will be showed in a video preview or as a file tumbanail, because different software programs may not use embedded thumbnails at all.

Solution 2:

This can be done with the TagEditor project. To add:

tageditor -s cover=y.jpg --max-padding 125000 -f z.mp4

To remove:

tageditor -s cover= --max-padding 125000 -f z.mp4