Sometimes I need to convert LMMS files into MP3 because opening them one by one takes a lot of time. It’s pretty straightforward on Linux, but on Windows 11, I had to figure out a workaround for it.
Here is the Windows 11 solution using Windows Powershell and docker:
Code: Select all
docker run -it --rm --name ubuntu-app -v "C:/Examplefolder:/srv/app" ubuntu:24.04 bash
apt update
apt install lmms ffmpeg -y
for i in *.mmpz; do lmms --allowroot render "$i" -o "$i"_out; done
for i in *.wav; do ffmpeg -i "$i" -b:a 96k -y "$i".mp3; done && rm *.wav
Linux solution (Ubuntu):
Code: Select all
for i in *.mmpz; do lmms render "$i" -o "$i"_out; done
for i in *.wav; do ffmpeg -i "$i" -b:a 96k -y "$i".mp3; done && rm *.wav