Various shell utility functions for FFMPEG that might prove useful to someone.
ffmpeg-compress
- Compress a video close to a target size in bytes. Below are derivative functions.
ffmpeg-8mb
- Compress a video to ~8 MB.
ffmpeg-10mb
- Compress a video to ~10 MB.
ffmpeg-25mb
- Compress a video to ~25 MB.
ffmpeg-100mb
- Compress a video to ~100 MB.
ffmpeg-downmix-stereo
- Downmix two audio files into one stereo audio file at a given output path.
ffmpeg-mix-stereo
- Mix two mono (ideally left/right split) audio files into one stereo audio file at a given output path.
ffmpeg-filter-rate
- Applies a video filter, audio filter, and framerate to a media file as needed and a given suffix to the resultant file name. Exists solely as a utility for all of the following functions.
ffmpeg-speedup
- Apply a speed multiplier and framerate to a media file and a given suffix to the resultant file name. Still mostly exists as just a utility for the following two functions, but could have a legitimate use by itself.
ffmpeg-ntsc-speed
- Apply NTSC speed and framerate to a PAL media file.
ffmpeg-pal-speed
- Apply PAL speed and framerate to a NTSC media file.
ffmpeg-speedup-pitched
- ffmpeg-speedup
but with a pitch shift.
ffmpeg-ntsc-speed-pitched
- ffmpeg-ntsc-speed
but with a pitch shift.
ffmpeg-pal-speed-pitched
- ffmpeg-pal-speed
but with a pitch shift.
ffmpeg-check-dual-mono
- Check if a media file with stereo audio is actually dual mono.
ffmpeg-join
- Attempt to join a set of media files of the same type into one.
ffmpeg-rmjoin
- ffmpeg-join
but the given files are removed after being joined.
ffmpeg-remove-black-bars
- Attempt to crop out (remove) black bars from a video.
ffmpeg-still
- Produce a video from an audio file and still image.