Menu

Close
  • Home
  • Solutions Log
  • About
  • Search
Subscribe
☰Menu

Create thumbnails en-masse from a bash prompt

#howto #one-liner

A simple one-liner and ffmpeg, basename, and cut gets this done.

for i in *.f4v; do ffmpeg -i `basename $i` -s 320x240 `basename $i | cut -d'.' -f1`.jpg; done

Thumbnail output size is configurable with the -s switch.

Dan Reiland

Operations Engineer

Minneapolis, Minnesota https://unixsherpa.com

Share this solution

Twitter Facebook Pinterest Google+
UnixSherpa All rights reserved - 2023