2013-07-12 41 views

回答

34

只需更換 d:與您的CD驅動器(2 粗斜體出現):

@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"} vlc://quit 

    :eof
+2

如果你有一個64位的Windows,變化VLC的CALL路徑爲:「C:\ Program Files(x86)\ VideoLAN \ VLC \ vlc」 –

+0

64位Windows有64位VLC – Motes

+0

這太棒了。找出如何自動添加相冊信息,這將是完美的批量! – ringstaff