Skip to content

Instantly share code, notes, and snippets.

@RicoP
Created March 18, 2018 13:05
Show Gist options
  • Save RicoP/a2e13ec7afae1d1eaee16ddf7d2f5660 to your computer and use it in GitHub Desktop.
Save RicoP/a2e13ec7afae1d1eaee16ddf7d2f5660 to your computer and use it in GitHub Desktop.
Rip Audio CD with VLC
@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