Skip to content

A shell script to automate the batch processing of video files using FFmpeg, complemented by a visual progress bar to monitor the encoding process.

License

Notifications You must be signed in to change notification settings

bradsec/ffmpeg-batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffmpeg-batch.sh Video Encoding with Progress Bar Indicator

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.

Features

  • 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.

Screenshot

Terminal Screenshot

Usage

  1. Download or clone the repo:
git clone https://github.com/bradsec/ffmpeg-batch.git
  1. Make excutable:
chmod +x ffmpeg-batch.sh
  1. 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>]

Acknowledgments

  • The progress bar component of this script is adapted from the script 'ffmprog' by Rendevior. Released under The Unlicense.

About

A shell script to automate the batch processing of video files using FFmpeg, complemented by a visual progress bar to monitor the encoding process.

Topics

Resources

License

Stars

Watchers

Forks

Languages