11 listopada 2015

Konwersja płyt CD-Audio za pomocą VLC – skrypt

Konwersja płyt CD-Audio za pomocą VLC – skrypt batch

@echo off
setlocal enabledelayedexpansion

REM -------------------
REM Set your VLC path and drive letter you want to copy!!!
REM -------------------
SET VLCPATH="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
SET DRIVELETTER="E:"
REM -------------------

SET /a x=0

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

:eof

TrackBack

TrackBack URL dla tej wiadomości:
https://blog.kkthx.pl/2015/11/konwersja-plyt-cd-audio-za-pomoca-vlc-skrypt/trackback/

Napisz komentarz