Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- SETLOCAL ENABLEEXTENSIONS
- COLOR 0A
- TITLE CONVERT FLAC TO MP3
- :-----------------------------------------------------------------------------------------------------------------
- REM Created By: SlyFox1186
- REM Profile: https://pastebin.com/u/slyfox1186
- REM Recursively converts all found FLAC files into MP3 using high settings at 320kbps.
- REM This will extract any embedded jpg files inside the FLAC files and embed them in the created MP3 file.
- REM The original FLAC file will remain untouched.
- REM You must point the 'FF' variable below to the path of ffmpeg.exe
- :-----------------------------------------------------------------------------------------------------------------
- PUSHD "%~dp0"
- IF NOT "%1"=="MAX" START /MAX CMD /D /C %0 MAX & GOTO :EOF
- :-----------------------------------------------------------------------------------------------------------------
- SET FF="FULL\PATH\TO\ffmpeg.exe"
- :-----------------------------------------------------------------------------------------------------------------
- FOR /R %%G IN (*.flac) DO (
- %FF% -hide_banner -y -i "%%~fG" "%AppData%\%%~nG.jpg"
- %FF% -hide_banner -y -i "%AppData%\%%~nG.jpg" -y -i "%%~fG" -ab 320k -map_metadata 0 -id3v2_version 3 "%%~dpnG.mp3"
- RECYCLE -f "%AppData%\%%~nG.jpg" >NUL 2>&1
- )
- COLOR 03
- ECHO=
- ECHO [92mFFMPEG COMPLETE![0m
- ECHO=
- TIMEOUT 300 >NUL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement