Python 3 FFMPEG Bulk & Batch Processing of Multiple Videos & Images Files in Directory in Terminal

 

BatchedFFmpeg

Process multiple videos with one line of ffmpeg command.

ezgif-1-b9b482fb9e6f ezgif-2-4ce90071b4cd

Requirements

  • ffmpeg

Install

Usage

Usage for command is the same with original ffmpeg besides infile.

infile can be a video file or folder(=directory) where the video files are saved. If infile is a folder, program will search all video files in a folder including subfolders and then those files will be processed under the same command.

The output file is saved differently depending on the extension of outfile.

if outfile == video:

After running command(outfile=./output/out.avi)…

elif outfile == img:

After running command(outfile=./output/out%4d.jpg)…

Leave a Reply