Created
September 27, 2022 16:13
-
-
Save asears/ea719e60ee3885d0fc56a40367757efc to your computer and use it in GitHub Desktop.
Spleeter + Wav to MP3 Command File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM spleeter to convert to wav with 4 stems, convert to mp3 with minimal loss. | |
spleeter separate -p spleeter:4stems -o output %1 | |
SET _file=%1 | |
SET _folder=%_file:.mp3=% | |
SET _folder=%_folder:"=% | |
ECHO %_folder% | |
ffmpeg -vn -ar 44100 -ac 2 -b:a 192k "output\%_folder%\vocals.mp3" -i "output\%_folder%\vocals.wav" | |
ffmpeg -vn -ar 44100 -ac 2 -b:a 192k "output\%_folder%\bass.mp3" -i "output\%_folder%\bass.wav" | |
ffmpeg -vn -ar 44100 -ac 2 -b:a 192k "output\%_folder%\drums.mp3" -i "output\%_folder%\drums.wav" | |
ffmpeg -vn -ar 44100 -ac 2 -b:a 192k "output\%_folder%\other.mp3" -i "output\%_folder%\other.wav" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment