Batch optimize videos in a folder using ffmpeg, without having to install ffmpeg on your machine. Uses Docker to isolate dependencies.
Install Docker Desktop, and make sure it is running.
Clone this repo (or download it).
In the "videos" folder in this project, place a folder containing all the MP4 videos you want to optimize.
Open a terminal, and navigate to this directory, ie:
cd /Path/to/ffmpeg-dockerRun:
docker compose up -dWhen it finishes building, run:
docker compose exec ffmpeg sh Then, in the interactive terminal for the running container, run:
cd videosand then:
./convert.sh