Generate thumbnail from video


/ Published in: Bash
Save to your folder(s)

-s 86x60 Defines the dimension of the thumbnail
-ss 4 Generate a thumbnail from position 00:00:04 (4 seconds)


Copy this code and paste it in your HTML
  1. ffmpeg -v 0 -y -i $VIDEOFILE -vframes 1 -ss 4 -vcodec mjpeg -f rawvideo -s 86x60 -aspect 4:3 $THUMBNAILFILE

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.