DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,864 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.