Skip to content

Instantly share code, notes, and snippets.

@kolisee
kolisee / convertflacs.sh
Last active April 27, 2026 18:27
Linux ffmpeg flac-to-mp3 converter bash script (with subdirectories)
#!/bin/env bash
# converts .flac files to .mp3 (320kbps) using ffmpeg
# descends into subdirectories when using maxdepth of 2 or greater (default: 1)
# requirements: bash and ffmpeg
# run this script conveniently by adding an alias to ~/.bashrc
# alias convertflacs="path/to/your/convertflacs.sh"
# usage: