Batch processing video with FFmpeg

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store