LoginSignup
9

More than 5 years have passed since last update.

複数のmp4の特定のフレームをjpgにする

Last updated at Posted at 2014-01-08

HTMLでVideo要素のPoster属性をガーっと作りたいときって、息をするよりも、めっちゃくちゃ頻度あるよね!

やること

convert2jpg.sh
find *.mp4 -exec ffmpeg -i {}  -ss 0 -f image2 -vframes 1 {}.png \;
mogrify -format jpg -quality 70 *.png
rm *.mp4.png
zmv -f *.mp4.jpg *.jpg

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9