Mass MP3 to OGG conversion

Updated 2 weeks ago

Step by Step

(1) Create a .bat file with the following content:

@echo off
setlocal enabledelayedexpansion
for %%f in (*.mp3) do (
    echo Converting %%f...
    ffmpeg -i "%%f" -q:a 5 "%%~nf.ogg" >nul 2>&1
    if !errorlevel! == 0 del "%%f"
)

(2) Place the file inside the folder containing all your MP3s.

(3) Run it!

Behaviour

The script will take all the MP3 files from the folder it's placed in, convert them to OGG, and delete the originals.

I'm assuming you're using this tool for mixtape creation, that's why we are deleting the original files. Otherwise sPEAKer will load duplicates.

It requires ffmpeg.exe to be in your PATH or be inside the same folder this script will be run from.

⚠️ Important ⚠️

Make sure to NOT include this .bat script or ffmpeg.exe in your Thunderstore package or it will be rejected.