Created
March 18, 2018 13:05
-
-
Save RicoP/a2e13ec7afae1d1eaee16ddf7d2f5660 to your computer and use it in GitHub Desktop.
Rip Audio CD with VLC
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 | |
setlocal ENABLEDELAYEDEXPANSION | |
SET /a x=0 | |
FOR /R H:\ %%G IN (*.cda) DO (CALL :SUB_VLC "%%G") | |
GOTO :eof | |
:SUB_VLC | |
call SET /a x=x+1 | |
ECHO Transcoding %1 | |
REM Here's where the actual transcoding/conversion happens. The next line | |
REM fires off a command to VLC.exe with the relevant arguments: | |
CALL "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I http cdda:///H:/ --cdda-track=!x! :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access="file",mux=raw,dst="Track!x!.mp3"} vlc://quit | |
:eof | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment