DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Cover image for Batch processing video with FFmpeg
Sergey Fedotov
Sergey Fedotov

Posted on

Batch processing video with FFmpeg

Sometimes need to compress a few videos quickly, but few services allow you to do that or you donโ€™t want to use them at all to save time or your privacy.

Then you might want to consider FFmpeg and a slick trick in the terminal:

mkdir res; for i in *.mov; do ffmpeg -i $i ./res/${i%.*}.mov; done

  1. mkdir res โ€” will created a folder for processed videos
  2. in *.mov โ€” is responsible for the file extension on the input
  3. ${i%.*}.mov โ€” indicates the file extension of the output

Oldest comments (0)

๐ŸŒš Turn on dark mode

๐Ÿ”  Change your default font

๐Ÿ“š Adjust your experience level to see more relevant content

Head to your account's Settings to do all this and more.