A shell script to automate the batch processing of video files using FFmpeg, complemented by a visual progress bar to monitor the encoding process. FFmpeg must be installed prior to running script.
- Batch Processing: Automatically processes all video files in a specified source directory.
- Progress Bar: Includes a visual progress indicator for real-time encoding status.
- CUDA Check: Checks if FFmpeg has been compiled with CUDA GPU support and adds argument.
- Download or clone the repo:
git clone https://github.com/bradsec/ffmpeg-batch.git
- Make excutable:
chmod +x ffmpeg-batch.sh
- Run the script with or without command line arguments.
# With no additional command line arguments we will be prompted to enter each required option.
./ffmpeg-batch.sh
# Alternate usage add arguments to command line
./ffmpeg-batch.sh [-src|--src-dir <source_directory>] [-dst|--dst-dir <destination_directory>] [-args|--ffmpeg-args <FFmpeg_arguments>] [-ext|--ffmpeg-file-ext <output_file_extension>]
- The progress bar component of this script is adapted from the script 'ffmprog' by Rendevior. Released under The Unlicense.