Skip to content

Instantly share code, notes, and snippets.

View CThompson01's full-sized avatar

Chase Thompson CThompson01

View GitHub Profile
@CThompson01
CThompson01 / convert-dir.sh
Created January 29, 2026 19:49
Uses ffmpeg to automatically convert an entire directory to a specified format.
#!/bin/bash
conv_dir="$1"
format="$2"
for entry in "$conv_dir"/*
do
ffmpeg -i "$entry" "${entry%.*}.$format"
done