VLC command line batch file to rip audio CD

vlc
14,603

Just replace the D: with your CD drive (2 bold italic occurrences):

@ECHO OFF

    setlocal ENABLEDELAYEDEXPANSION

    SET /a x=0

    FOR /R D:\ %%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\VideoLAN\VLC\vlc" -I http cdda:///D:/ --cdda-track=!x! :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access="file",mux=raw,dst="Track!x!.mp3"} --noloop vlc://quit

    :eof
Share:
14,603

Related videos on Youtube

user2574981
Author by

user2574981

Updated on September 15, 2022

Comments

  • user2574981
    user2574981 almost 2 years

    Anyone have a batch file to rip a CD using VLC player, so I don't have to rip one track at a time using the GUI?

    • abcdabcd987
      abcdabcd987 almost 11 years
      This should be on superuser.com