ffmpeg commands
Batch processing
The scripts in this folder each run an ffmpeg job over every matching file in a folder, keeping each file's base name in its output, so you can process a whole shoot or album in one go instead of file by file. These are for when you have many files that need the same treatment, such as rendering a set of visualizers for each audio track or bringing mixed footage to a common 1080p format, or when a long render should run unattended. The loop in batch-loop-with-notification.sh is the general pattern: swap any command from the other folders into its body, and its header explains each flag.
Run an ffmpeg command over every file in a folder, then announce it's done
batch-loop-with-notification.sh
The loop pattern behind most of these examples: process each matching file into out/, keeping the base name, and speak a notification on macOS when the batch finishes, so long renders can run unattended.
Render a set of five audio visualizers for every audio file in a folder
render-visualizer-set.sh
For each .aiff, renders five 1080p videos to pick from in an edit: two polar vectorscopes at different zooms, a Lissajous vectorscope, a constant-Q spectrum and a point-to-point waveform in soft gray and cream. Each output is named after the audio file plus a suffix.
Enlarge or shrink to 1080p, filling the frame and use baseline codec settings for wide compatibility and web presentation
standardize-batch.sh
Enlarge or shrink to 1080p, filling the frame and use baseline codec settings for wide compatibility and web presentation
Source: lucidbeaming/ffmpeg-utilities/batch at v1.0.1